Skip to content

feat(cli): add unified execution evidence inspect - #959

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

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

Conversation

@likun666661

Copy link
Copy Markdown
Member

Summary

Phase 3B of #948 adds a single payload-safe inspection entrypoint across Maka's durable execution identities:

  • add maka inspect <id> for Session, AgentRun, and TaskRun
  • auto-resolve an id only when it has exactly one meaning
  • surface cross-kind collisions and duplicate AgentRun ids as explicit ambiguity
  • support --kind session|agent-run|task-run and --session <id> for deterministic disambiguation
  • add stable JSON resolution failures for not_found and ambiguous

Inspect documents

  • add maka.agent_run_inspect.v1
  • add maka.session_inspect.v1
  • reuse Phase 3A's maka.task_run_inspect.v1
  • render matching human-readable trees from the same bounded read models
  • expose identity, event coverage, source health, Tool Call/Response pairing, Compaction metadata, and diagnostics
  • never duplicate raw model messages, tool arguments, or tool results into the inspect surface

Read-only behavior

Inspection is observational:

  • add SessionStore.readHeaderSnapshot() so inspection cannot trigger connection-lock self-healing
  • make listing a missing Session store return an empty result without creating storage directories

Failure semantics

  • no silent kind precedence
  • no silent choice between duplicate AgentRun ids in different Sessions
  • unmatched Tool Calls explicitly report unknown outcome and external side effects
  • missing and inconsistent Runtime/operational ledgers remain visible as diagnostics

Validation

  • npm --workspace @maka/storage test
  • npm --workspace @maka/runtime test
  • npm --workspace @maka/headless test
  • npm --workspace maka-agent test
  • npm run typecheck
  • executable CLI contract test for maka inspect ... --json
  • contract tests for ambiguity, not-found output, payload hygiene, Session projection, and read-only storage behavior

This intentionally does not expand verifier behavior or Phase 4 AHE evolution lineage.

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