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

The review and build briefs say a preview's /__forge/ and pill come from the host forge, so changes to them are judged by test #16734

Merged opened this

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

Merged

Reviewer and builder briefs now say, in one line, that /forge/ and the forge pill on a preview come from the host forge. They say it only when the change touches the host door. The new test file and the three neighbouring brief tests pass, and tsc and the gate are clean.

Notes

opened this

Reviewer and builder briefs now say, in one line, that /__forge/* and the forge pill on a preview come from the host forge. They say it only when the change touches the host door. The new test file and the three neighbouring brief tests pass, and tsc and the gate are clean. I did not run the full suite; the forge runs it on push.

What changed

  • Rule line (src/crew/brief.ts): hostDoorRule is the line itself: judge such a change by the request-level tests that come with it, not by the preview.
  • Match (touchesHostDoor):
    • A diff is matched on its diff --git headers for src/apps/door.ts, toolbar.ts, feedback.ts and door_pulls.ts. proxy.ts counts only when __forge appears in the diff.
    • An issue's text is matched as free text for the same paths, with proxy.ts needing __forge.
  • Reviewer brief: hostDoorFor(reviewDiff) adds the line to the review list.
  • Builder brief: builderHostDoor(title, body) adds it to an assigned build.
  • Scope: both apply to the forge's own repository only. Every other brief is unchanged.
  • Docs: docs/CREW.md says it in one sentence in the previews section.

Tests (test/brief-host-door.test.ts) call the three production functions through taskPrompt:

  • door.ts in a diff: present.
  • src/web/ only: absent.
  • A docs-only diff that mentions door.ts: absent.
  • proxy.ts with and without __forge: present only with it.
  • Issue free text: present for a named door file, absent for a bare proxy.ts mention.

Not done:

  • Follow-up reasons (feedback, check_failed) don't repeat the line. Only the first build and the review carry it.
  • scripts/similar.ts was not run, so I reused no existing function and added three small ones.

To try: run bun test test/brief-host-door.test.ts.

Closes #6356

commented

Reviewer and builder briefs now say, in one line, that /__forge/* and the forge pill on a preview come from the host forge. They say it only when the change touches the host door. The new test file and the three neighbouring brief tests pass, and tsc and the gate are clean. I did not run the full suite; the forge runs it on push.

What changed

  • Rule line (src/crew/brief.ts): hostDoorRule is the line itself: judge such a change by the request-level tests that come with it, not by the preview.
  • Match (touchesHostDoor):
    • A diff is matched on its diff --git headers for src/apps/door.ts, toolbar.ts, feedback.ts and door_pulls.ts. proxy.ts counts only when __forge appears in the diff.
    • An issue's text is matched as free text for the same paths, with proxy.ts needing __forge.
  • Reviewer brief: hostDoorFor(reviewDiff) adds the line to the review list.
  • Builder brief: builderHostDoor(title, body) adds it to an assigned build.
  • Scope: both apply to the forge's own repository only. Every other brief is unchanged.
  • Docs: docs/CREW.md says it in one sentence in the previews section.

Tests (test/brief-host-door.test.ts) call the three production functions through taskPrompt:

  • door.ts in a diff: present.
  • src/web/ only: absent.
  • A docs-only diff that mentions door.ts: absent.
  • proxy.ts with and without __forge: present only with it.
  • Issue free text: present for a named door file, absent for a bare proxy.ts mention.

Not done:

  • Follow-up reasons (feedback, check_failed) don't repeat the line. Only the first build and the review carry it.
  • scripts/similar.ts was not run, so I reused no existing function and added three small ones.

To try: run bun test test/brief-host-door.test.ts.

commented

I fixed the misplaced comment and pushed it. The doc comment "Whether the issue's title or body names a path under src/http/mcp/ or the word MCP" is back directly above namesMcp. The host-door block (hostDoorRule through builderHostDoor) sits above it with its own doc comment. I changed nothing else.

bun x tsc --noEmit is clean. test/brief-host-door.test.ts and test/brief-mcp-size.test.ts pass.

What changed: a reviewer or builder brief now says that /__forge/* and the forge pill on a preview come from the host forge, so a change to them is judged by its request-level tests. It says so only when the change touches the host door (door.ts, toolbar.ts, feedback.ts, door_pulls.ts, or proxy.ts with __forge). Every other brief is unchanged.

Left out: follow-up briefs for feedback and failed checks don't repeat the line. I did not run scripts/similar.ts, so I reused no existing function.

To try: run bun test test/brief-host-door.test.ts.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs