Skip to content

feat(headless): persist Phase 1 Runtime-to-Task lineage - #950

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

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

Conversation

@likun666661

Copy link
Copy Markdown
Member

Summary

Refs #948.

Phase 1 makes the Runtime-to-Task portion of the Execution Evidence Spine durable:

  • persist invocationId in new AgentRun headers while preserving legacy reads
  • expose the physical immutable Runtime Event stream separately from mutable partial snapshots
  • append task_attempt_execution_linked after every finished headless invocation, including bounded repair runs
  • project every linked AgentRun and its inclusive Runtime coverage onto the owning TaskRun and Attempt
  • validate replayed evidence references and ignore invalid cross-task lineage with explicit warnings
  • import legacy ResultRecord lineage as identity-only when Runtime coverage is unavailable
  • document the Phase 1 ownership and cursor boundary

Task Events store identities and cursor boundaries only. Raw model messages, Tool Calls, Tool Results, and other interaction facts remain owned by the Runtime Event ledger. Mutable partial snapshot files do not occupy cursor positions; immutable lifecycle rows do, even when they carry partial: true.

Verification

  • npm run build
  • npm run typecheck
  • npm --workspace @maka/core test — 926 passed
  • npm --workspace @maka/storage test — 262 passed, 1 skipped
  • npm --workspace @maka/runtime test — 1,542 passed, 7 skipped
  • npm --workspace @maka/headless test — 906 passed, 1 skipped
  • git diff --check upstream/main...HEAD

Phase boundary

This PR intentionally does not add Task Event cursors, self-check freshness, Compaction lineage, AHE lineage, or a general inspection command. Those remain later phases of #948.

@likun666661
likun666661 merged commit 32139e5 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