Repository navigation
feat(ledger): add immutable action history core - #511
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 12, 2026, 9:45 AM ET / 13:45 UTC. Summary Reproducibility: not applicable. This PR introduces a new durable subsystem rather than reporting broken current-main behavior; confidence comes from exact-head source, schema, documentation, and adversarial validation evidence. Review metrics: 4 noteworthy metrics.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Approve the isolated v1 core as an explicit durable-data contract, then land writer integrations incrementally with dual-write parity, legacy behavior preserved, and real workflow evidence before treating the ledger as authoritative. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR introduces a new durable subsystem rather than reporting broken current-main behavior; confidence comes from exact-head source, schema, documentation, and adversarial validation evidence. Is this the best way to solve the issue? Yes, conditionally: separating the reusable core from staged dual-write instrumentation is a controlled and maintainable rollout, but the permanent compatibility and privacy contract requires explicit owner approval. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3817dde287cb. Label changesLabel justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (17 earlier review cycles; latest 8 shown)
|
6c0d201 to
ff4ea59
Compare
ff4ea59 to
6fa4b86
Compare
Summary
Correctness Hardening
xox*tokens, and AWSAKIA/ASIAaccess keys with runtime/schema parity0000consistently in runtime and schema validationDesign
ledger/v1/events/YYYY/MM/DD/<producer-repo>/<producer>/<run-attempt-job-digest>.jsonlExact-Head Validation
Head:
255499c68fc69deeffca6b5fbba2cf177b9b7287Local runtime: Node
v26.5.0, pnpm11.10.0pnpm run build && node --test test/action-ledger.test.ts test/action-ledger-runtime.test.ts133tests:131passed,0failed,2Linux-only skipscbx_6ec6c62426e7, runrun_1d1ea2c65a59, Nodev24.18.03/3passed; disposable lease auto-stoppedpnpm run check01061passed,0failed,2Linux-only skips884/884884/884100.00%lines,86.90%branches,100.00%functions1945passed,0failed,2Linux-only skips74.26%lines,73.49%branches,84.41%functions358filesgit diff --check: passed6successful,0failing,0pending; one duplicate activity notification was skippedHardening Commits
08c3a120b5fix(ledger): reject service credentials and internal emailsd1ddbe1b5cfix(ledger): hide incomplete shard importsb22e12cdd1fix(ledger): reclaim stale locks atomicallyf397cbbfb0fix(ledger): register projections before finalization255499c68ffix(ledger): validate import marker field typesFollow-ups