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

The MCP answers whether the work is growing: open count, net per day, days queued and the pause suggestion #11760

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

The `flow` tool now takes `{ kind: "growth", repo }` and answers the same growth numbers and pause words as `/queue`. The new tests and `test/mcp-size.test.ts` pass, and `tsc` is clean. I did not run the full suite. I also did not call `keep_plan` for this run, so no plan is on the issue.

shipped production is serving it deploy 8f18665

opened this

The flow tool now takes { kind: "growth", repo } and answers the same growth numbers and pause words as /queue. The new tests and test/mcp-size.test.ts pass, and tsc is clean. I did not run the full suite. I also did not call keep_plan for this run, so no plan is on the issue.

  • What it returns: { open: { issues, pulls }, perDay, daysQueued, growingRun, sentences, suggest }. It calls growth(...) as the page does, over the same 14-day DAYS (imported from src/web/pages/queue.ts), scoped by sealedScope. Nothing is recomputed.
  • Pause suggestion: suggest is words only. The issue adds no way to pause by tool.
  • Who can ask: anyone who can read the repository. A private repository answers an outsider with the usual "no such app or repository" refusal.
  • Size: it is a new kind on flow, not a new tool. The description grew by one clause, and no ceiling was raised.
  • Tests: test/mcp-growth.test.ts has three cases.

- A repository that grew three days running answers growingRun: 3 and a non-null suggest equal to the page's sentence. - A private repository is refused to an outsider and answered to its owner. - kind: "growth" without a repository is refused.

  • Not done: docs/MCP.md has no kind: bugs or kind: drift mentions, so I left it alone.
  • Push: the push hook asks for a commit message starting with Try:, so I added an empty commit for it.
  • Try it: call flow with { "kind": "growth", "repo": "owner/name" }.

🤖 Generated with Claude Code

Closes #11751

commented

The flow tool now takes { kind: "growth", repo } and answers the same growth numbers and pause words as /queue. The new tests and test/mcp-size.test.ts pass, and tsc is clean. I did not run the full suite. I also did not call keep_plan for this run, so no plan is on the issue.

  • What it returns: { open: { issues, pulls }, perDay, daysQueued, growingRun, sentences, suggest }. It calls growth(...) as the page does, over the same 14-day DAYS (imported from src/web/pages/queue.ts), scoped by sealedScope. Nothing is recomputed.
  • Pause suggestion: suggest is words only. The issue adds no way to pause by tool.
  • Who can ask: anyone who can read the repository. A private repository answers an outsider with the usual "no such app or repository" refusal.
  • Size: it is a new kind on flow, not a new tool. The description grew by one clause, and no ceiling was raised.
  • Tests: test/mcp-growth.test.ts has three cases.

- A repository that grew three days running answers growingRun: 3 and a non-null suggest equal to the page's sentence. - A private repository is refused to an outsider and answered to its owner. - kind: "growth" without a repository is refused.

  • Not done: docs/MCP.md has no kind: bugs or kind: drift mentions, so I left it alone.
  • Push: the push hook asks for a commit message starting with Try:, so I added an empty commit for it.
  • Try it: call flow with { "kind": "growth", "repo": "owner/name" }.

🤖 Generated with Claude Code

commented

No change pushed: I found nothing to fix, because the preview of #11760 is up and serving.

  • Preview: https://lab--11760--forge-trevato-apps.open-platform.sh/ answered 200 when I fetched it.
  • The log you sent: it ends in running at … · no tests declared, none run, followed by routine INFO lines (process counts and SQL timing), with no error. I read that as the preview deploy declaring no tests of its own. The tests that cover this change run in the forge's check on push.
  • My tests: test/mcp-growth.test.ts, test/mcp-size.test.ts and test/mcp-flow-bugs.test.ts passed before I pushed, and tsc was clean. I did not run the full suite.
  • Branch: the working tree is clean and matches origin.

If the forge's check or the deploy shows a specific failure, send that log and I'll fix it.

commented

The flow MCP tool now answers growth questions, and docs/MCP.md matches what the code renders, so the check that failed should pass again.

docs/MCP.md was stale because the flow tool's row changed when it gained the growth kind. I regenerated the table with bun scripts/mcp-table.ts. test/mcp-table.test.ts passes locally (8 of 8). I did not run the full suite or the type check here. The forge's check runs the whole suite on this push.

The only file changed is the generated table in docs/MCP.md. Nothing else changed. To try it, call the flow tool with kind: growth and a repository.

Approved

Adds kind growth to the existing flow tool, calling growth() over the page's DAYS with sealedScope. suggest is words only, nothing pauses. repoArg refuses a private repository to an outsider, and the tests cover that and the three-day run. docs/MCP.md is regenerated. No ceiling raised, no new dependency.

commented

Left #11751 open: 1 unticked item remain (A view/kind on an existing tool (not a new tool; find the one that already answers the queue or flow status) returns growth(...) for a repository: open, perDay, daysQueued, growingRun, sentences, suggest, over the same DAYS window as the page, scoped by sealedScope as the page is.).

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs