chore(deps): take the cohort to agent-eval 0.140.1 so the runtime's own journal parses - #697
Merged
Merged
Conversation
…wn journal parses
`src/durable/spawn-journal.ts` writes each supervision event as
`{kind:'event', root, event}`. Through 0.140.0 `parseSupervisorTree` only read the
flat dialect, so `kind` was the literal string `event`, matched no tree event kind,
and every read of the runtime's own journal reported zero spawns. 0.140.1 adds
`readJournalRow`, which unwraps that envelope and tags the dialect
`runtime-envelope`. The previous peer range `>=0.139.2 <0.140.0` excluded the fix
for the runtime's own output format.
agent-knowledge moves 7.0.3 -> 7.0.4 in the same commit because
`verify-packed-cohort.mjs` asserts knowledge's agent-eval dependency EXACTLY equals
the packed agent-eval version; 7.0.3 pins 0.139.2 and 7.0.4 pins 0.140.1.
This was referenced Aug 1, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
src/durable/spawn-journal.tswrites every supervision event wrapped in an envelope:Through agent-eval 0.140.0,
parseSupervisorTreeread only the flat dialect — it tookrow.kindat face value, so it saw the literal stringevent, matched no tree event kind, and folded nothing into the tree. Every read of the runtime's own journal reported zero spawns.0.140.1 adds
readJournalRow, which unwraps{kind:'event', root, event}, ignores the{kind:'begin', root, at}header, and tags the sourcejournalDialect: 'runtime-envelope'.Runtime's peer range was
>=0.139.2 <0.140.0, which excluded the fix for its own output format.Measured, not assumed
Both versions installed side by side, fed the exact envelope
spawn-journal.tsemits (2spawned+ 1settledunder onebeginheader):runtime-envelopedist/integrity-*.jsis byte-identical between 0.139.3 and 0.140.0 (md5 7b10cb0fee10265d4245db65ee5c364f), andreadJournalRowappears in neither — 0.140.1 is the first version that can read this repo's journal.Places updated
The version is load-bearing in five source-of-truth files that must agree, plus two generated ones:
pnpm-workspace.yaml'@tangle-network/agent-eval': 0.139.20.140.1pnpm-workspace.yaml'@tangle-network/agent-knowledge': 7.0.37.0.4package.json">=0.139.2 <0.140.0"">=0.140.1 <0.141.0".github/workflows/ci.yml36de070…513f # v0.139.255d2faacc6ba2c92ad21b42b9b607ab16ae0fc7c # v0.140.1.github/workflows/ci.ymld932983…3635 # v7.0.3b67218f308ff0c8df6fe0cc8d8e47fa6351d0ecb # v7.0.4.github/workflows/publish.yml36de070…513f # v0.139.255d2faacc6ba2c92ad21b42b9b607ab16ae0fc7c # v0.140.1.github/workflows/publish.ymld932983…3635 # v7.0.3b67218f308ff0c8df6fe0cc8d8e47fa6351d0ecb # v7.0.4docs/canonical-api.md>=0.139.2 <0.140.0>=0.140.1 <0.141.0pnpm-lock.yamlpnpm install)0.139.2/7.0.3rowsdocs/api/primitive-catalog.mdpnpm run docs:api)Both cohort SHAs were resolved from the tags, not typed by hand:
gh api repos/tangle-network/agent-eval/commits/v0.140.1 → 55d2faa…,…/agent-knowledge/commits/v7.0.4 → b67218f….The agent-interface pin is untouched: eval 0.140.1 and knowledge 7.0.4 both depend on
0.40.0exactly.Why agent-knowledge moves too
This is not scope creep — the cohort is a four-package lockstep.
scripts/verify-packed-cohort.mjs:530runsassertExactDependency(agentKnowledge, agentEval), requiring knowledge'sdependencies['@tangle-network/agent-eval']to exactly equal the packed agent-eval version:agent-knowledge@7.0.3→"@tangle-network/agent-eval": "0.139.2"agent-knowledge@7.0.4→"@tangle-network/agent-eval": "0.140.1"Bumping eval alone would have failed cohort verification with
agent-knowledge requires @tangle-network/agent-eval@0.139.2, packed 0.140.1— the same class of multi-place drift that sank the v0.110.0 tag.controlAdapteris not a breaking change hereChecked before assuming.
controlAdapteris onDspyRlmTraceEngineOptionsand is optional (controlAdapter?: 'chat' | 'two-step' | 'tolerant', defaulttolerant) in both 0.140.0 and 0.140.1dist/skill-usage-*.d.ts— not required. Independently, agent-runtime has zero call sites:grep -rni 'dspy|controlAdapter'over the repo returns 3 prose mentions indocs/and 3 false positives on a localendSpyvariable intests/runtime/worktree-cli-executor.test.ts. Blast radius is zero, and typecheck agrees.Evidence
All run locally on this branch; the baseline was measured on
origin/main@56dd6ebbefore the change.origin/main@ 56dd6ebpnpm run typecheckpnpm run test— filespnpm run test— testspnpm run check:publish-workflowPublish workflow keeps package creation separate from npm authority.pnpm run lintpnpm run docs:freshnessZero new failures. The single failure is identical on both sides — same test, same 15000ms timeout, same
tests/knowledge-improvement-job.test.ts:296— a known flake under parallel load. Re-run isolated on this branch (i.e. against agent-knowledge 7.0.4): 3/3 green,3 passed (3)in 13.1s / 19.3s / 10.8s.docs/api/primitive-catalog.mdregenerated to a one-line diff (the version in the generated header), confirming the API surface agent-runtime consumes is unchanged across the bump: 2351 catalogued symbols, 0/0 undocumented own callables.Version number and tagging are deliberately untouched — this branch only moves the dependency cohort.