Skip to content

feat: add ledger-backed trust status - #12

Merged
futuretyler merged 1 commit into
mainfrom
salvage/trust-status
Jun 28, 2026
Merged

futuretyler merged 1 commit into
mainfrom
salvage/trust-status

Conversation

@futuretyler

Copy link
Copy Markdown
Owner

Summary

  • add ledger evidence projection against current replay/journal shapes
  • add trust status evaluator for required clean-run policy
  • add read-only vernier trust status <loopId> [--last n] [--min-runs n] [--json]
  • cover evidence projection, trust evaluator, broken-config inspection fallback, and CLI positive/negative trust status behavior

Verification

  • npm run typecheck
  • npm run build
  • npm test -- test/evidence-projection.test.ts test/trust.test.ts test/cli.test.ts test/resume.test.ts test/tick.test.ts
  • npm run build
  • manual positive behavior: ran control-plane-smoke-test three times under a temp VERNIER_HOME, then vernier trust status control-plane-smoke-test --min-runs 3 --json returned exit 0 with report.status === "promotable" and cleanRuns === 3
  • manual negative behavior: ran one smoke loop under a temp VERNIER_HOME, then vernier trust status control-plane-smoke-test --min-runs 2 --json returned exit 1 with report.status === "not_promotable" and an insufficient evidence reason

Review notes

  • Correctness review findings fixed: default trust status now considers all evidence unless --last is provided, and registered loops with no matching evidence return a usage error.
  • Ponytail review simplification applied for missing effects: missing effects now project as effects: "unknown"; missing-contract fields stay because the plan keeps that evidence surface for required-contract handling.
  • Evidence/trust modules remain internal; src/index.ts does not export ledger internals today.

@futuretyler
futuretyler merged commit 7ee8b87 into main Jun 28, 2026
1 check passed
@futuretyler
futuretyler deleted the salvage/trust-status branch June 28, 2026 15:36

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ae1636270c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/ledger/evidence.ts Resolved
Comment thread src/ledger/evidence.ts Resolved
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.

1 participant