Skip to content
Myr

Integrate W5 group B: the dev world's landed answer discloses the harness bram pushed through

Before adoption: this commit came in with the history the project adopted, so no landing records it.

W5 group 2 integration (issues 509, 510, 515 merged above with --no-ff, in the index's order; all three merged without a conflict and verify was green straight after). This is the one cross-issue fix the merges opened; verify is green. - 515 x 502: the dev seed reports bram's push to his claim's fork with the harness custody would name (`audit: {harness: "claude-code", model: "haiku"}` on `recordPush`), so datekit's landed answer carries `Assisted-by: claude-code:haiku (claimed)` and the project and answer pages have the trailer to show. The seed's header no longer lists the trailer among what it can't reach. New dev-backend case at 502's seam (the dev world over `/rpc`): the landing's `assisted` names the harness and no credit names it; red by assertion (`[]`) before the seed line. - Kept, as the reviews advised: 509's edits outside its territory (`apps/platform/test/world.ts`'s additive `sessions`/`checker` options, the new `apps/platform/test/serve-world.ts`, and the `tsconfig.base.json` override for the two seed files, which sits after `scripts/**` and repeats `effect/process`, since overrides don't stack); 510's four (`apps/platform/src/{surfaces,ports}.ts`, `apps/platform/test/project-do.test.ts`, `apps/web/src/surfaces.ts`). - No provenance rows (nothing ported in 509, 510 or 515); no new fence for AGENTS.md's "Held by". - Budgets: platform entry 1,617,774 of 1,665,000; web JavaScript 2,332,362 of 2,500,000; debt at baseline.

authored by oscabriel · committed by oscabriel · parent 964b141 · Browse files · 2 files+39 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+39 added−8 removed

  • tests:+15 added−0 removed
  • other:+24 added−8 removed

2 files+39 added−8 removed

modified:apps/web/src/dev/seed.ts+24 added-8 removed
2 unmodified lines
3 * a state where every page has something to show, by the project service's4 * own methods, in the order people would act. The seed plays the people and5 * the platform's other parts: the initializer's first push and the gateway6 * that reports it, a decider opening asks, a contributor claiming one,7 * pushing an answer to the claim's fork and offering it as custody does8 * (it lands, through the answer's run, in the same call), people proposing7 * pushing an answer to the claim's fork through a harness and offering it8 * as custody does (it lands, through the answer's run, in the same call,9 * with the harness disclosed as `Assisted-by:`), people proposing10 * and flagging, the decider declining two, and someone pushing straight to11 * `main`, reported as the push event would be.12 *13 * Each step happens at its own whole minute after the world's start
1 unmodified line
15 * and two seeds give the same world. The world then serves at the last16 * step's minute.17 *18 * What the service can't be brought to through its methods is left out18 * (502's `## Comments`): a `Finish` decision (nothing opens one yet), an19 * answer refused `OutOfScope` (a refused answer is never recorded) and an20 * `Assisted-by:` trailer (no answer carries one yet, 515).19 * (502's `## Comments`): a `Finish` decision (nothing opens one yet) and an20 * answer refused `OutOfScope` (a refused answer is never recorded).21 */22import { RefName, RefOutcome, RepoHost } from "@repo/artifacts/repo-host";23import type { ProjectApi } from "@repo/project/project";24import { Projects } from "@repo/project/projects";25import type { HarnessAudit } from "@repo/protocol/audit";26import { DecisionSubject } from "@repo/protocol/domain/decision";27import type { Decision } from "@repo/protocol/domain/decision";28import { AskId, Handle, RepoName, RequestId } from "@repo/protocol/ids";29import type { CommitSha, ProjectName, ProposalId } from "@repo/protocol/ids";
28 unmodified lines
58];5960const as = (handle: Handle) => Person.make({ handle });6162/**63 * The harness bram answers through, as the CLI's credential helper names it64 * to the gateway and custody reports it: audit metadata, never a credit.65 */66const bramsHarness = {67 harness: "claude-code",68 model: "haiku",69} as const satisfies HarnessAudit;7071/** A commit of `files` on `parent` (or a first commit), by `author`, at the world's time. */72const commitOf = (input: {73 readonly author: Handle;74 readonly files: Files;
93 unmodified lines
168 );169170/**171 * An answer to `ask` from `answerer`, who holds its claim: a commit of162 * `files` on the claim's base, pushed to the claim's fork, reported as the163 * gateway's custody reports it, then offered as the answer.172 * `files` on the claim's base, pushed to the claim's fork through `audit`'s173 * harness, reported as the gateway's custody reports it, then offered as174 * the answer.175 */176const answered = (177 api: ProjectApi,178 answerer: Handle,179 input: {180 readonly ask: AskId;181 readonly audit: HarnessAudit;182 readonly files: Files;183 readonly message: string;184 }185) =>
14 unmodified lines
200 });201202 const refusals = yield* api.recordPush({203 after: head,204 audit: input.audit,205 before: Option.some(claim.base),206 eventId: `${claim.fork}@${head}`,207 pusher: as(answerer),208 ref: mainRef,
41 unmodified lines
250 yield* at(6);251 yield* api.claim(as(contributor), datekit.answer.ask);252253 yield* at(7);241 yield* answered(api, contributor, datekit.answer);254 yield* answered(api, contributor, {255 ...datekit.answer,256 audit: bramsHarness,257 });258259 yield* at(8);260 yield* api.claim(as(contributor), AskId.make("parse-iso-week"));261
90 unmodified lines
modified:apps/web/test/dev-backend.test.ts+15 added
218 unmodified lines
219 landing.credits.map(({ handle, role }) => `${role}: ${handle}`)220 ).toStrictEqual(["Asked-by: ines-v", "Signed-off-by: bram"]);221 })222 );223224 it.live(225 "discloses the harness bram pushed through as Assisted-by, credited to nobody",226 () =>227 Effect.gen(function* () {228 const { landing } = yield* landedAnswer;229230 expect(landing.assisted).toStrictEqual([231 { harness: "claude-code", model: "haiku", verified: false },232 ]);233 expect(landing.credits.map(({ handle }) => handle)).not.toContain(234 "claude-code"235 );236 })237 );238});