Skip to content

refactor(serving): a patch's address admits readers through its owner - #808

Closed
allisonmahmood wants to merge 1 commit into
docs/794-acceptancefrom
throwaway/794-broken-publish
Closed

allisonmahmood wants to merge 1 commit into
docs/794-acceptancefrom
throwaway/794-broken-publish

Conversation

@allisonmahmood

Copy link
Copy Markdown
Owner

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 team scenario's CLI and opened it at its address as its publisher, Ada: 200.

Release impact

Tick exactly one.

  • Breaking — requires action from anyone already running this
  • Not breaking — no action required

Internal refactor of one check.

  • What does a revert leave behind? Nothing; no schema or data changes.
  • Does the release before it still work with that? Yes.

Made by Claude Opus 5.5 in Claude Code, running in T3 Code.

@github-actions github-actions Bot added area:server Touches the server area size:s Under 100 changed lines labels Oct 19, 2026
@allisonmahmood

allisonmahmood commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner Author

Acceptance: FAIL

Checked 858be44954f119bbfa87f1702609612fcae60a4c (base 2f617d3cfec0c6b94ffe7b83e5411d9268f1ab91, docs/794-acceptance) on fresh team and brightline instances, by GPT-6.1-sol in the Codex harness through T3 Code. I did not write this PR.

Done means

  • No closing issue or Done means checklist is attached. The PR's claim of an internal, non-breaking refactor is failed: active colleagues lose access to company patches. The publisher-only Ada check is passed, but misses the affected reader.

Golden journeys

  • 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.
  • Sign in: failed at the return to a colleague's patch. Local persona sign-in returns 303 to the requested address, then Ben gets 404. Signed-out company requests correctly return 401 with the sign-in header, private, no-store, and no redirect. Local browser sign-out returns to the login door. Real Clerk sign-in was not exercised locally.
  • Share and unshare: passed. Allison shares harbor-pine-kickoff publicly: a signed-out reader gets 200, public, max-age=60, no Set-Cookie. Sharing it back to company returns 401. A separate two-version team check also preserves public current-version access and the signed-out door on older versions.
  • 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.
  • Use a tier 1 tool live: failed at opening. Both Jordan and Priya receive 404 for Kudos. Allison's shell and exact content URL return 200.
  • Use a tier 2 tool: failed at opening. Jordan receives 404 for both New Business and Spend, including their exact content URLs. Allison receives 200 for both shells and content URLs. The scenario successfully loaded sample data as Allison.
Direct evidence from fresh base and head team instances

Published the same small HTML page through each environment's own CLI, with PATCHY_API_URL and PATCHY_API_TOKEN unset and its own cli-state. Requested the URLs with separate dev-persona sessions. Only scenario data is quoted below.

Ada publish: success, company scope, tier 0, version 1
Ada current address: base 200; head 200; expected content present
Ben current address: base 200; head 404
Ben version 1: base 200; head 404
Ben exact content URL: base 200; head 404
Ben Home and patch card: base 200; head 200; patch listed
Ben retained version after public version 2: base 200; head 404
Ben company address after unsharing: base 200; head 404
Ben old-name redirect after rename: base 308; head 404
Ben retired notice: base 200; head 404
Ben deleted notice: base 200; head 404
Ben after restoring either state: base 200; head 404
Other-company reader: base 404; head 404, matching a missing address

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 packages/serving/src/Pages.ts from company membership to owner equality accounts for the colleague failures across addresses, retained versions, content, aliases and notices.

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 (Expected: 200, Received: 404); tier2-smoke fails its page-open assertion (404 !== 200). These match the direct reproduction, rather than the open issues labelled flaky.

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 one-way label is needed. rollback-rehearsal passed, with no migration changed. The separate “Not breaking” characterization is contradicted by the reader regression above.

Not run

  • Kudos writes/live sync, Jordan's deal movement/live sync, and Spend self-approval: blocked by the observed 404 before the colleague can open the tool. These are not counted as passed.
  • Local pnpm verify and packed e2e suites: excluded by this acceptance task's machine constraints; CI runs them. At posting, CI's Node 22/24/26 test jobs remain pending; the other reported checks passed, apart from the two failures above.
  • Live Clerk sign-in: local checks used dev personas. CI's clerk-live check passed.
  • Machine-login and invite/join journeys: outside the changed serving gate.

Notes

  • Restore company-member reader admission before acceptance. Publisher access alone does not satisfy the publish/open or shared-tool journeys.
  • All instances started for this run were taken down. The author's code, branch, body and labels were left unchanged.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Closing unmerged. This PR was a deliberate one-line break in serving, opened for #794's Done means: a PR that breaks a golden journey gets FAIL with its evidence. The acceptance run above was GPT 6.1 Sol following #807's acceptance skill with only the PR number, and it wasn't told about the break.

@allisonmahmood
allisonmahmood deleted the throwaway/794-broken-publish branch October 19, 2026 19:15
allisonmahmood added a commit that referenced this pull request Oct 19, 2026
…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]>
@allisonmahmood allisonmahmood mentioned this pull request Oct 19, 2026
3 of 8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:server Touches the server area size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant