Skip to content

feat(headless): bind self-check evidence freshness - #954

Merged
likun666661 merged 1 commit into
apache:mainfrom
likun666661:feat/execution-evidence-spine-phase-2b
Jul 14, 2026
Merged

likun666661 merged 1 commit into
apache:mainfrom
likun666661:feat/execution-evidence-spine-phase-2b

Conversation

@likun666661

Copy link
Copy Markdown
Member

Summary

Phase 2B of #948 makes heavy-task Self-check freshness a replay-derived property of the execution evidence spine.

  • add stable zero-based Task Event ledger cursors for in-memory and file-backed stores
  • bind each accepted Self-check to its exact Runtime function_call / function_response range, the Self-check Task Event high water, and a post-run workspace manifest revision
  • compute content-addressed workspace revisions from public file size/hash facts
  • replay Self-check freshness as current, stale, or backward-compatible unknown
  • invalidate a bound Self-check after later Bash/Write/Edit/artifact evidence until a matching workspace observation revalidates it
  • make the heavy-task gate and semantic finalization reject explicitly stale Self-checks

Invariants

  • the model-authored Self-check payload cannot declare its own provenance
  • provenance is appended as a separate system-owned Task Event
  • Task Events reference canonical Runtime facts instead of copying raw tool payloads
  • a Self-check link is accepted only when its Task high water identifies the exact durable Self-check row
  • legacy Self-checks remain unknown rather than being falsely treated as freshly bound

Verification

  • npm --workspace @maka/headless test (924 tests: 923 passed, 1 skipped)
  • npm run typecheck

Depends on and follows merged Phase 2A: #953.

@likun666661
likun666661 merged commit e8cb46d into apache:main Jul 14, 2026
3 checks passed
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