Repository navigation
refactor(serving): a patch's address admits readers through its owner - #808
allisonmahmood wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Acceptance: FAILChecked Done means
Golden journeys
Direct evidence from fresh base and head team instancesPublished the same small HTML page through each environment's own CLI, with The CLI's share, republish, rename, retire, delete and both restore operations succeeded on each side. Ada still receives the retired/deleted notices and restored content at the head. Changing the gate in CI independently confirms the admission regression: browser fails “two viewers stay in sync and a removed handler ends only its new-version subscription” opening the colleague's page ( Rollback answers: They match the diff. This is a reversible admission-code change with no migration, new stored shape, deleted data, mail or infrastructure change. Reverting restores company-member access; no Not run
Notes
|
…den journeys (#807) ## What changed The agent that wrote a change also says it works, and its tests prove only what it thought to test. Now an agent that didn't write the PR checks it and posts a verdict before Allison merges: - **A new internal skill, `acceptance`**, written for that agent. It reads the PR, its issue's Done means and the rollback answers, and challenges the answers when the diff disagrees. It checks the head on throwaway instances, using whatever fits: the `pr-evidence` commands run without `--pr`, tests, or an instance of a checkout made for the run. It runs the golden journeys the change could touch, then posts one verdict comment: PASS, PASS with notes or FAIL. The comment names the commit it checked and lists what it couldn't run as not run. It replaces that account's earlier verdict, found by a `<!-- patchy-acceptance -->` marker. It never fixes or merges. - **Golden journeys** are a short map in the skill. Each names its scenario, people, what working looks like and its way back: sign in, log a machine in, publish a page, share and unshare, find and open a tool, a tier 1 tool live, a tier 2 tool, invite and join. A PR that adds a journey adds its entry. The acceptance agent decides how to check each one. - **Asking for a verdict** lists ways to start one, without requiring any: T3's `delegate_task` to a Codex model in its own worktree, `codex exec`, `claude -p`, or a person asking any agent. - **AGENTS.md › Pull requests:** a PR is ready to merge when its required checks pass, its review findings are resolved and an acceptance verdict on its latest commit passes. - `.claude/skills/acceptance` links the skill, and `docs/SKILL_DISTRIBUTION.md` lists it with the other internal skills. Closes #794 ## Look at **1. A PR that breaks a golden journey gets FAIL with its evidence.** Throwaway PR #808 changed one line in `packages/serving/src/Pages.ts`: a patch's address admitted readers by its owner instead of its company. Its body called this an internal refactor, checked by opening the page as its publisher. GPT 6.1 Sol was told only to follow the skill for PR #808, not about the break. It posted [this FAIL](#808 (comment)). From the verdict: > **Publish a page: failed.** Ada's isolated environment CLI successfully publishes a tier 0 page. Ada receives 200 with the published content; Ben receives 404, although his Home and patch card both list it. The same checks on fresh base data admit Ben with 200. > > **Find and open a tool: failed.** Jordan's Home lists all four Brightline patches; searching for Kudos finds one result. Clicking it opens the not-found page, HTTP 404. It listed the Kudos and New Business live checks as **not run**, since the 404 blocked them, rather than as passed. It also judged the rollback answers right (a reversible code change) and the "Not breaking" call wrong. It found the break on fresh `team` and `brightline` instances, with the CLI's `PATCHY_API_URL` and `PATCHY_API_TOKEN` cleared, and took them down afterwards. #808 is closed unmerged and its branch is deleted. It reported one gap in the skill, a PR with no Done means, which `ddea7ff` fixes. **2. This PR's own verdict: [PASS with notes on `83106f5`](#807 (comment), from a separate GPT 6.1 Sol acceptance run, kept apart from the code review rounds. No product code changed, but Sol brought the head up on fresh `team` data anyway. It ran the publish and sign-in journeys there: Ada published, Ben opened the page, and retire, delete and restore all worked. It stub-tested the posting recipe and checked that the packed CLI leaves this internal skill out. The note is the after-merge Done means line, marked not run. [Dismissed](#807 (comment)), since the skill already says how to treat it. ## How it was verified - `pnpm verify --changed` on `2f617d3`: format, lint, typecheck, synth and 2004 offline tests passed. It skipped the acceptance suites, since only docs and agent files changed. Every later commit edits only the skill. - The posting recipe's comment selection, run read-only against #806's comments, returns the right comment for the signed-in login and nothing for another. In round 2, Sol stub-tested that a failed post deletes nothing. - Two GPT 6.1 Sol review rounds, summarized in the comments below. The last had no blocking findings. - **Done means.** "A PR that breaks a golden journey gets FAIL with its evidence" is shown above with #808. "A PR opened after this lands carries a verdict from an agent that didn't write it" can only be shown after merge. This PR carries the first one. ## Release impact Tick exactly one. - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required Agent docs and one skill only; no code, schema or contract changes. - **What does a revert leave behind?** Verdict comments already posted on PRs. Nothing in the product or its data. - **Does the release before it still work with that?** Yes. Nothing the server or CLI runs changes. Made by Claude Opus 5.5 in Claude Code, running in T3 Code. --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
What changed
A patch's address admitted a signed-in reader by comparing the patch's company with the reader's. It now admits readers through the patch's owner, the same person the portal card names, so the check reads one field the address already has.
Look at
packages/serving/src/Pages.ts: the one admission check.How it was verified
Published a page with the
teamscenario's CLI and opened it at its address as its publisher, Ada: 200.Release impact
Tick exactly one.
Internal refactor of one check.
Made by Claude Opus 5.5 in Claude Code, running in T3 Code.