Skip to content

docs: fix trust level taxonomy, add missing CLI commands (P1-2, P1-11, P2-13)#68

Merged
beonde merged 2 commits intomainfrom
fix/docs-p1-cli-reference
May 2, 2026
Merged

docs: fix trust level taxonomy, add missing CLI commands (P1-2, P1-11, P2-13)#68
beonde merged 2 commits intomainfrom
fix/docs-p1-cli-reference

Conversation

@beonde
Copy link
Copy Markdown
Member

@beonde beonde commented May 2, 2026

Summary

Fix trust level taxonomy across README and CLI reference. Add missing command documentation for envelope, policy, badge request, and badge dv.

Documentation Audit Reference

Phase: P1-2, P1-11, P2-13
Severity: High

Changes

  • README.md: Fix trust level table (SS/DV/OV/EV/CV → SS/REG/DV/OV/EV per RFC-002 and actual CLI)
  • README.md: Fix go.work example Go version (1.24.0 → 1.25.9)
  • docs/reference/cli.md: Fix badge issue level description
  • docs/reference/cli.md: Fix badge keep flags (add --agent-id, remove stale --sub/--iss)
  • docs/reference/cli.md: Add badge request command (RFC-003 PoP)
  • docs/reference/cli.md: Add badge dv command (ACME-Lite DV orders)
  • docs/reference/cli.md: Add envelope command with all subcommands (RFC-008)
  • docs/reference/cli.md: Add policy command with validate/context subcommands

Verification

  • All flag names verified against go run ./cmd/capiscio <cmd> --help
  • Trust levels verified against CLI output: 0=SS, 1=REG, 2=DV, 3=OV, 4=EV
  • No self-sign + level > 0 examples remain

…, P2-13)

- Fix trust levels from SS/DV/OV/EV/CV to SS/REG/DV/OV/EV per RFC-002
- Fix badge keep flags (--agent-id, remove stale --sub/--iss, mark --ca/--api-key as working)
- Add missing commands: badge request, badge dv, envelope (all subcommands), policy (validate/context)
- Fix Go version in workspace example (1.24.0 → 1.25.9)

Ref: DOCS_REMEDIATION_PLAN P1-2, P1-11, P2-13
Copilot AI review requested due to automatic review settings May 2, 2026 18:01
@codecov
Copy link
Copy Markdown

codecov Bot commented May 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates project documentation to align trust-level taxonomy and CLI reference with current capiscio command set and flags (including newly documented subcommands).

Changes:

  • Correct trust level naming/mapping (SS/REG/DV/OV/EV) in README and CLI reference.
  • Expand docs/reference/cli.md to document additional CLI commands/subcommands (badge request, badge dv, envelope, policy) and update existing command options.
  • Update the README go.work example Go version to match the repository toolchain version.

Reviewed changes

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

File Description
docs/reference/cli.md Fixes trust-level wording and updates/extends CLI command documentation (badge/envelope/policy).
README.md Updates trust-level taxonomy mentions and refreshes the go.work Go version example.

Comment thread docs/reference/cli.md
- `--domain <string>`: Agent domain (optional).
- `--exp <duration>`: Expiration duration (default 5m).
- `--key <path>`: Path to private key file (required for `--self-sign`).
- `--level <0-4>`: Trust level: 0 (SS), 1 (REG), 2 (DV), 3 (OV), 4 (EV) per RFC-002 (default "1").
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed in 3d0d3c2 — updated to <1-4> with a note that level 0 (SS) is implied by --self-sign.

Comment thread docs/reference/cli.md
- `--subject <did>`: Subject DID (required).
- `--capability <string>`: Capability class (must be within parent scope).
- `--depth <int>`: Delegation depth remaining (must be less than parent).
- `--key <path>`: Path to issuer private key file (JWK).
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

These flags (--issuer and --badge-jti) are already present in the file at lines 380–381 — they were included in the original commit. The reviewer may have been looking at a cached version of the diff.

Address review comment: Level 0 (SS) is implied by --self-sign,
CLI help only documents 1-4 for CA mode. Added clarifying note.
@beonde beonde merged commit d840740 into main May 2, 2026
4 checks passed
@beonde beonde deleted the fix/docs-p1-cli-reference branch May 2, 2026 18:14
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.

2 participants