Skip to content

feat(agentjournal): a handoff is a goal another agent can pick up - #63

Merged
rldyourmnd merged 1 commit into
mainfrom
feat/agent-runtime-journal
Sep 1, 2026
Merged

feat(agentjournal): a handoff is a goal another agent can pick up#63
rldyourmnd merged 1 commit into
mainfrom
feat/agent-runtime-journal

Conversation

@rldyourmnd

Copy link
Copy Markdown
Contributor

Closes the estate ledger item agent-runtime-is-used-or-leaves on its own recommendation: integration.

  • go.mod gains github.com/NDDev-OpenNetwork/agent-runtime as a direct dependency.
  • core/agentjournal: a Recorder over agent-runtime's goal.Store and observability emitter. RecordCheckpoint creates the goal at genesis and CAS-completes the checkpoint-published item (commit + carried files as evidence); RecordVerified completes handoff-verified idempotently; both emit handoff lifecycle events (dispatched/completed) into handoff-events.jsonl through the library's own validation.
  • ApplyHandoff/VerifyHandoff wire it beside the operation state (<state dir>/agent-journals/); a recording failure is a medium finding on a successful envelope — the checkpoint is never rolled back for its journal.

Tests: full round trip validated by agent-runtime's own Validate, idempotent re-verify, refusal without a checkpoint, goal-id derivation against the library's pattern. validate_go_core.sh: PASS (full).

https://claude.ai/code/session_01LsGid6U5RrQdFvJmvYdGCF

agent-runtime was a tested library with zero estate consumers, linked to
GDS by gitlink and docs alone. Now the engine consumes it where its
contract fits exactly: gds handoff checkpoints unfinished work for a
next actor, and that is a Goal journal -- durable, revisioned,
validated by agent-runtime itself, never a private dialect. Apply
creates the goal (genesis create, then the store's own CAS update)
and completes the checkpoint item with commit and file evidence; verify
completes the verification item idempotently; both append handoff
lifecycle events to a JSONL stream through the library's emitter. A
journal failure is a finding beside a checkpoint that already exists,
never a rollback of it.

Claude-Session: https://claude.ai/code/session_01LsGid6U5RrQdFvJmvYdGCF
@rldyourmnd
rldyourmnd force-pushed the feat/agent-runtime-journal branch from bd3820f to 3eff819 Compare September 1, 2026 10:31
@rldyourmnd
rldyourmnd merged commit 563f27b into main Sep 1, 2026
7 checks passed
@rldyourmnd
rldyourmnd deleted the feat/agent-runtime-journal branch September 1, 2026 17:24
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