Skip to content

Docs: document vg attest-actions local/offline expectations #260

Closed

Description

@vibgrate-team

Context

vg attest-actions sits next to supply-chain attestation workflows. Users coming from cosign-style verify flows expect clear docs on what runs on-device, what (if anything) needs network, and how failures should be worded when signatures or materials are missing in air-gapped environments.

What to do

  1. Document the command’s purpose, inputs/outputs, and local-first boundaries.
  2. Include a minimal try-it snippet with vg (happy path + one honest failure: missing attestation / unreadable material).
  3. Explicitly state: no secrets in examples; do not print tokens/credentials in error paths.

Acceptance

  • Docs cover local vs any optional remote steps without overselling offline guarantees
  • Actionable error examples (what failed + what to check)
  • DCO; examples use vg

Activity

  1. added
    documentation
    on Sep 23, 2026
  2. vibgrate-team commented on Oct 5, 2026

    @vibgrate-team
    ContributorAuthor

    Spec notes for implementers

    Important: there is no vg attest-actions command. src/commands/attest-actions.ts is the internal module behind vg build --attest and vg build --verify, and src/cli.ts redirects the old vg attest and vg verify verbs there. A bare vg attest-actions is not a registered command, so docs must use the vg build flags. Suggest retitling this issue to "Docs: document vg build --attest / --verify local and offline expectations".

    Shipped behaviour to document.

    • vg build --attest signs the built graph into a DSSE in-toto statement at .vibgrate/attestation.intoto.jsonl (--attestation <file> overrides). The key comes from --attest-key <path>, else VG_ATTEST_KEY, else .vibgrate/attest-key.pem.
    • With no key at the default path, the first run mints an Ed25519 key (attest-key.pem, mode 0600, plus .pub) and prints a notice to keep it and gitignore it. An explicit key path that does not exist is a usage error. A non-Ed25519 key is rejected.
    • vg build --verify checks a committed attestation against the on-disk graph without rebuilding, alongside a determinism check. --pub <path> pins the signer; without it, verification is integrity-only. A missing default attestation is reported as missing; a missing attestation that was explicitly asked for (--attestation or --pub) fails with "no attestation at ... sign one with vg build --attest".
    • Network: signing and verifying are local crypto. The only external process is git (HEAD, branch, dirty state) for commit metadata, and it is best-effort.

    Try-it snippet. A happy path (vg build --attest, then vg build --verify --pub .vibgrate/attest-key.pem.pub) and one honest failure (a tampered graph or the missing-attestation message, quoted exactly from the CLI).

    Never print key material in examples. DCO sign-off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions