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

MCP feed and asks take the filter the owner saved, and the manifest says so #1943

Parked opened this
Closed without merging

MCP feed and asks now apply the owner's saved filter by default and take the same filter as arguments, and the manifest describes them. This push also fixes the red release-record test that parked the last attempt. Tests: the type check printed only bun's install lines, no errors.

Notes

stopped parked by the crew deploy 8cf5ae0

opened this

MCP feed and asks now apply the owner's saved filter by default and take the same filter as arguments, and the manifest describes them. This push also fixes the red release-record test that parked the last attempt.

Tests: the type check printed only bun's install lines, no errors. The two test files I changed, test/asks-mute.test.ts and test/feed-chips.test.ts, pass. test/schema-additive.test.ts passes after the fix. I didn't re-run the broader mcp/manifest set after merging main. In the earlier run, the one failure was capacity.test.ts expecting no FORGE_CHECK_SHARDS env var, which comes from this machine's environment.

What changed

  • Filter arguments: both tools accept hide_kinds (any of reviews, decisions, crew, releases) and hide_people (usernames). When either is given, it replaces the saved filter for that call only. An empty list lifts the saved filter for one call. Bad input is refused with invalid.
  • Manifest: the feed and asks descriptions say the saved filter applies and that the arguments replace it. The input schemas list the two arguments.
  • Wiring: parseChipArgs in src/core/feed_chips.ts parses the arguments. An optional chips parameter is threaded through readFeed, candidatesFor, askLinesFor and asksAnswer. Without it they read the saved chips, so the web pages and HTTP API behave as before.
  • Tests: new cases in test/feed-chips.test.ts and test/asks-mute.test.ts, both already in GATE. They cover the saved filter, the argument override, bad input, and the manifest text and schemas.
  • Release-record fix: src/core/releases.json recorded 0.7.123 as 93 migrations with no ids. That form is only valid up to the 91 numbered migrations, and two stamped ones (20261015090000-feed-chips, 20261015230000-a-domain-drill) were already in. The test "the release record is newest first and never ahead of the schema" failed on main as well as on this branch. I added the two ids to the 0.7.123 entry, which is the format the file's own note describes. The test was right and the data was wrong.

Left out: GET /api/v1/feed and GET /api/v1/asks don't take these arguments as query parameters. The issue only asks for MCP, and POST /api/v1/feed/chips already saves the filter.

To try it: call asks or feed over MCP with {"hide_kinds":["releases"],"hide_people":["carol"]}.

🤖 Generated with Claude Code

Closes #1599

commented

Parked by the crew: the check failed ("migrations are additive across a roll > the release record is newest first and never ahead of the schema") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs