Public: anyone can read this; the crew can change it.

A crew run's page says how its model was fed, so a packed SubQ run compares with its explored run and with Claude #17925

opened this

Merged 20h 42m ago, live in production

A crew run now records how its model was fed. The run's page, the terminal, the runs list and the JSON answer all read that record. bun x tsc --noEmit is clean.

Notes

opened this

A crew run now records how its model was fed. The run's page, the terminal, the runs list and the JSON answer all read that record. bun x tsc --noEmit is clean. The gate was red until I added the migration pin and the Try: and Looks: commit lines. The tests I ran for this change pass. In the wider run of run, tui-, cost-, openapi* and dead* tests, two failed (a Chromium looks test and a terminal-migrate test). I re-ran the migrate test alone and it passes. I did not re-run the Chromium one. The forge's full check runs on the push.

What changed

  • Record: run.feed is a new column, and src/core/run_feed.ts holds the type, the parser and the words. Explored is {feed:"explored"}. Packed carries tokens, files, cached, rounds and roundMs. src/crew/run_prepare.ts records explored when the run starts. runPacked reports the packed feed through a new optional Hands.feed at the start and after each round, so a packed run that fails mid-way still keeps its pack and rounds so far.
  • Page and terminal: runFacts adds one "Fed" fact, so the web page and the terminal's run screen show the same line. A packed run reads packed 1.2M tokens (812 files), cached 1.1M · 3 rounds · 40 s, 35 s, 22 s. An explored run reads explored with tools. A run with no record shows nothing.
  • Runs list: each agent run's row, on the page and in the terminal, now leads with feed · steps or rounds · time · outcome (src/runs/run_compare.ts). Examples: packed · 3 rounds · 1m 37s · ok and explored · 12 steps · 4m 2s · ok. Steps for an explored run are its turns.
  • JSON: the run schema gains feed, which is null for runs from before this.
  • Reused: compact moved from packed_run.ts to run_feed.ts and is re-exported, so the existing test import still works. durationText and runFacts are reused for the time and the Fed fact.
  • Tests: test/run-feed.test.ts covers the packed record and its page line, the explored page, the terminal facts and rows, the JSON and the list, junk input to the parser, and runPacked reporting its feed each round. I added feed: null to the run() fixture in test/run-page-links.test.ts.
  • Docs: docs/features/model-feed.md has a new section.

Not done

  • I did not change how either feed runs, and I did not turn packed on for any model.
  • I did not add a model filter to the runs list. The rows compare side by side in the list as it is.
  • The feed is not recorded for runs that existed before the migration.

Try it: open any crew run's page on the preview and read its "Fed" line. Then open /trevato/forge/runs and read the feed, steps or rounds, time and outcome on each agent run.

[
  {"go": "/trevato/forge/runs?kind=agent", "look": "each agent run row", "expect": "starts with feed · steps or rounds · time · outcome, then the date"},
  {"go": "a crew run's page from that list", "look": "the facts list under the summary", "expect": "a Fed line: 'explored with tools', or the packed line with tokens, files, cached, rounds and times"}
]

🤖 Generated with Claude Code

Closes #17920

3 earlier comments · 1 event
commented

A crew run now records how its model was fed. The run's page, the terminal, the runs list and the JSON answer all read that record. bun x tsc --noEmit is clean. The gate was red until I added the migration pin and the Try: and Looks: commit lines. The tests I ran for this change pass. In the wider run of run, tui-, cost-, openapi* and dead* tests, two failed (a Chromium looks test and a terminal-migrate test). I re-ran the migrate test alone and it passes. I did not re-run the Chromium one. The forge's full check runs on the push.

What changed

  • Record: run.feed is a new column, and src/core/run_feed.ts holds the type, the parser and the words. Explored is {feed:"explored"}. Packed carries tokens, files, cached, rounds and roundMs. src/crew/run_prepare.ts records explored when the run starts. runPacked reports the packed feed through a new optional Hands.feed at the start and after each round, so a packed run that fails mid-way still keeps its pack and rounds so far.
  • Page and terminal: runFacts adds one "Fed" fact, so the web page and the terminal's run screen show the same line. A packed run reads packed 1.2M tokens (812 files), cached 1.1M · 3 rounds · 40 s, 35 s, 22 s. An explored run reads explored with tools. A run with no record shows nothing.
  • Runs list: each agent run's row, on the page and in the terminal, now leads with feed · steps or rounds · time · outcome (src/runs/run_compare.ts). Examples: packed · 3 rounds · 1m 37s · ok and explored · 12 steps · 4m 2s · ok. Steps for an explored run are its turns.
  • JSON: the run schema gains feed, which is null for runs from before this.
  • Reused: compact moved from packed_run.ts to run_feed.ts and is re-exported, so the existing test import still works. durationText and runFacts are reused for the time and the Fed fact.
  • Tests: test/run-feed.test.ts covers the packed record and its page line, the explored page, the terminal facts and rows, the JSON and the list, junk input to the parser, and runPacked reporting its feed each round. I added feed: null to the run() fixture in test/run-page-links.test.ts.
  • Docs: docs/features/model-feed.md has a new section.

Not done

  • I did not change how either feed runs, and I did not turn packed on for any model.
  • I did not add a model filter to the runs list. The rows compare side by side in the list as it is.
  • The feed is not recorded for runs that existed before the migration.

Try it: open any crew run's page on the preview and read its "Fed" line. Then open /trevato/forge/runs and read the feed, steps or rounds, time and outcome on each agent run.

[
  {"go": "/trevato/forge/runs?kind=agent", "look": "each agent run row", "expect": "starts with feed · steps or rounds · time · outcome, then the date"},
  {"go": "a crew run's page from that list", "look": "the facts list under the summary", "expect": "a Fed line: 'explored with tools', or the packed line with tokens, files, cached, rounds and times"}
]

🤖 Generated with Claude Code

commented

<!-- look-pages 9ce77e9089b5 --> Look pages for 9ce77e9, from the gate:

  • look pages (none): "Looks: /trevato/forge/runs" is not a page of app.looks in forge.json; this pull changes src/web/studio/lists.ts but the forge could not trace the route of /, /docs, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
the crew's run was interrupted: restart, resumes on the next pass — cancelled
commented

Nothing to rewrap or fix. The branch is already pushed and clean, so I made no new commits.

Each point from the feedback checks out on the branch as it stands:

  • Both doors: the Fed line is in the terminal run list (src/tui/screens/runlist.ts). docs/features/model-feed.md is updated too. The gate's both-doors rule passes.
  • Real input in tests: test/run-feed.test.ts has no as never, and bun x tsc --noEmit is clean.
  • Name the issue: the Direction commit reads "Direction: … (#17920)", and the gate's name-the-issue rule passes.
  • Dead code: test/unused-exports.test.ts passes. It only lists exports in src/http/crawl.ts, src/kernel/migrate.ts and src/spawn/ as "no longer dead"; none of them are mine.

test/run-feed.test.ts, test/unused-exports.test.ts and test/hollow.test.ts pass (38 tests).

The gate's two notes remain, and I left both alone:

  • Comment width: --fix rewrapped nothing, and the gate says the nightly rewrap handles those lines on main.
  • Looks line: the gate could not infer a page for Looks: /trevato/forge/runs, so it leaves the choice to the reviewer. It is a note, not a failure.

Pull description: A crew run now records how its model was fed (packed context or tools). The run page, the terminal run list, the run list, the run comparison and the JSON all show it as a "Fed" line. That lets a packed SubQ run be compared with the same task run through tools, and with Claude. The change adds the additive migration 20261203060000-run-feed and a small src/core/run_feed.ts. It also adds test/run-feed.test.ts and a how-to in docs/features/model-feed.md. To try it, open any crew run page on the preview, or /trevato/forge/runs, and read its Fed line.

commented

Each row in the runs list now starts with the run's model, so a packed SubQ run, its explored run and a Claude run can be told apart without opening them. It reads like subq-savant · packed · 3 rounds · 1m 37s · ok. bun x tsc --noEmit is clean, and test/run-feed.test.ts, test/model-feed.test.ts and test/unused-exports.test.ts pass.

  • Model in the row: compareWords in src/runs/run_compare.ts puts run.model first and leaves it out when it is empty. The page and the terminal rows both use compareWords, so both show it.
  • Test: the list test in test/run-feed.test.ts now gives the packed run subq-savant and the explored run claude-opus-5-5. It asserts both names in the terminal rows and on the page.
  • Cleanup: I removed the feedWord wrapper and inlined run.feed.feed. I also removed the export { compact } re-export from src/crew/packed_run.ts; test/model-feed.test.ts now imports compact from run_feed.ts.
  • Gate: it shows only the two notes from before (comment width and the Looks: line) and nothing new. This commit says No look: with a reason.

The pull description from my last turn still holds. Add that the runs list now leads each row with the model.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs