Skip to content

feat(core): add Phase 0 execution evidence spine contract - #949

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

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

Conversation

@likun666661

Copy link
Copy Markdown
Member

Part of #948.

Summary

  • audit current Runtime Event, AgentRun, Session, Task Event, Compaction, Self-check, and AHE fact ownership
  • add the versioned maka.execution_evidence_ref.v1 contract in @maka/core/execution-evidence
  • separate Runtime and Task identity lanes so AgentRun and TaskRun cannot be confused
  • define comparable log cursors as (ledger, streamId, sequence) and explicitly forbid ordering by event id
  • add validation, cursor comparison helpers, contract tests, and a stable documentation entry point

Phase boundary

This is Phase 0 only. It defines the shared vocabulary and invariants without changing persistence or runtime behavior. Stable sequence materialization, TaskRun/Attempt to AgentRun linkage, Self-check freshness, Compaction coverage integration, inspect surfaces, and AHE lineage remain follow-up phases in #948.

Verification

  • npm --workspace @maka/core run typecheck
  • npm --workspace @maka/core test — 926 passed, 0 failed
  • package subpath import smoke for @maka/core/execution-evidence
  • git diff --cached --check

Repository-wide check note

npm run typecheck was also attempted. The affected @maka/core workspace passed, but the repository-wide command is currently blocked later by checkout/environment issues outside this diff: unavailable Runtime optional dependencies (@ai-sdk/cohere, node-pty, xterm packages) and downstream workspaces resolving stale generated exports. No files in those failing workspaces are changed by this PR.

@likun666661
likun666661 merged commit 5ff88e2 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