Skip to content

NOISSUE - Improve ReadMe Documentation - #588

Closed
Musilah wants to merge 2 commits into
ultravioletrs:mainfrom
Musilah:readme
Closed

NOISSUE - Improve ReadMe Documentation#588
Musilah wants to merge 2 commits into
ultravioletrs:mainfrom
Musilah:readme

Conversation

@Musilah

@Musilah Musilah commented Apr 2, 2026

Copy link
Copy Markdown

What type of PR is this?

This is a documentation update because it updates the following documentation: ReadMe.md files

What does this do?

It improves the styling and flow of readmes as well as update them to match the current repo state.

Which issue(s) does this PR fix/relate to?

N/A

  • Related Issue #
  • Resolves #

Have you included tests for your changes?

Did you document any new/modified feature?

Notes

Signed-off-by: Musilah <nataleigh.nk@gmail.com>
@codecov

codecov Bot commented Apr 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.40%. Comparing base (b44780d) to head (9159ba1).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #588      +/-   ##
==========================================
+ Coverage   68.36%   68.40%   +0.04%     
==========================================
  Files         116      116              
  Lines        7344     7344              
==========================================
+ Hits         5021     5024       +3     
+ Misses       1746     1743       -3     
  Partials      577      577              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ianmuchyri

Copy link
Copy Markdown

@SammyOina please review this one

Comment thread agent/README.md Outdated
Signed-off-by: Musilah <nataleigh.nk@gmail.com>
Comment thread README.md

### Prerequisites

- Go 1.22+

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refer to go mod

Comment thread README.md
./build/cocos-manager
```

**Agent** is built into the [EOS](https://github.com/ultravioletrs/eos)-based HAL and starts automatically inside the CVM.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eos repo is out of date point instead to hal/linux in this repo

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR is a documentation refresh across the repository’s README files. It aims to give contributors and operators a clearer top-level overview plus per-component setup, configuration, API, and usage guidance for the core binaries and in-CVM supporting services.

Changes:

  • Reworks the top-level README with architecture, features, quick start, and documentation links.
  • Expands existing Manager, Agent, CLI, and HAL READMEs with more structured configuration and usage sections.
  • Adds new README files for supporting services such as attestation-service, computation-runner, ingress/egress proxy, and log-forwarder.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 25 comments.

Show a summary per file
File Description
README.md Rewrites the project overview, architecture, prerequisites, and quick start.
manager/README.md Expands Manager configuration, setup, API, deployment, and troubleshooting docs.
hal/linux/README.md Adds HAL Linux purpose, build, and output instructions.
hal/cloud/README.md Documents cloud-init layout, environment variables, running, and debugging.
cmd/log-forwarder/README.md Adds usage and configuration docs for the log forwarder service.
cmd/ingress-proxy/README.md Adds overview and usage docs for inbound CVM proxying.
cmd/egress-proxy/README.md Adds overview and usage docs for outbound CVM proxying.
cmd/computation-runner/README.md Adds overview, config, deployment, and example flow for workload execution.
cmd/attestation-service/README.md Adds overview, config, deployment, and RPC usage docs for attestation.
cli/README.md Reorganizes CLI command documentation and examples.
agent/README.md Expands Agent configuration, API, deployment, and example usage docs.
Comments suppressed due to low confidence (2)

hal/cloud/README.md:167

  • These filenames do not match the systemd unit written by config.yaml, which logs to /var/log/cocos/agent.stdout and /var/log/cocos/agent.stderr without the .log suffix. Readers following these commands will tail files that never exist.
### View file-based logs

```bash
cat /var/log/cocos/agent.stdout.log
cat /var/log/cocos/agent.stderr.log

manager/README.md:334

  • This SEV-SNP example uses unsupported env names: MANAGER_GRPC_URL is not parsed by the manager, and the C-bit override is MANAGER_QEMU_SEV_SNP_CBIT_POS in code. Copy-pasting this snippet will not apply the intended configuration.
MANAGER_GRPC_URL=localhost:7001 \
MANAGER_LOG_LEVEL=debug \
MANAGER_QEMU_ENABLE_SEV_SNP=true \
MANAGER_QEMU_SEV_SNP_CBITPOS=51 \
MANAGER_QEMU_BIN_PATH=<path to QEMU binary> \

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md

### Prerequisites

- Go 1.22+
Comment thread manager/README.md

| Variable | Description | Default |
| --- | --- | --- |
| `MANAGER_QEMU_OVMF_VERSION` | EDKII version from which OVMF was built | `edk2-stable202408` |
Comment thread manager/README.md
| --- | --- | --- |
| `MANAGER_QEMU_ENABLE_SEV_SNP` | Enable AMD Secure Nested Paging (SEV-SNP) | `true` |
| `MANAGER_QEMU_SEV_SNP_ID` | SEV-SNP device ID | `sev0` |
| `MANAGER_QEMU_SEV_SNP_CBITPOS` | C-bit position in the physical address | `51` |
Comment thread manager/README.md
Comment on lines +292 to +294
| `Run` | Submit a computation to be executed on a new CVM; streams back computation events |
| `CreateVM` | Provision a CVM with a given configuration (algorithm, datasets, policy) |
| `StopVM` | Terminate a running CVM |
Comment thread manager/README.md
Comment on lines +300 to +301
| `GET` | `/version` | Returns the running Manager version |
| `GET` | `/health` | Health check endpoint |
Comment thread cli/README.md

### `checksum` — Compute File Checksum

Computation manifests require SHA-256 checksums for the algorithm and each dataset.
Comment thread agent/README.md
| `Agent` | `Data` | Upload an encrypted dataset |
| `Agent` | `Result` | Download the encrypted computation result |
| `Agent` | `Attestation` | Retrieve a hardware attestation report |
| `Agent` | `State` | Query the current computation state machine status |
Comment thread hal/cloud/README.md

| Variable | Description | Default |
| --- | --- | --- |
| `COCOS_AGENT_VERSION` | Cocos Agent release to install | `v0.3.1` |
Comment on lines +45 to +50
Other in-CVM services connect to the socket via gRPC. The `attestation-service` proto exposes two RPC methods:

| Method | Description |
| --- | --- |
| `FetchAttestation` | Request a hardware attestation report wrapped in an EAT token |
| `GetAzureToken` | Request an Azure MAA attestation token |
Comment on lines +40 to +44
# Run (inside a CVM)
./build/cocos-ingress-proxy
```

To override the backend:
@SammyOina SammyOina closed this Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants