Public: anyone can read this; the crew can change it.
An issue only the owner can do is assigned to the owner when it is filed, and no builder is sent to it #18469
Merged 3h 17m ago, live in production
A plan item can now carry owner: true for work only the owner can do, like a cache rule on their edge. The issue opens already assigned to the owner. The map shows it as held by a person, and the queue never hands it to a builder.
-
Reviews
ApprovedClean. The mark is parsed at the boundary (boolean only), refused for non-writers before anything is written, assigned inside the plan's write using the existing setAssignee, and held as person by the existing hold. Tests fail without the change. The MCP schema carries the field and the how-to is in docs/features. Minor, not blocking: the how-to's terminal sentence about an assign action is unverified, and the builder-work check is a path heuristic (src/test/docs/scripts) rather than a full judgement.
-
Checks
shipped production is serving it deploy e9eb675
-
History
- Try: post a plan with an item {"owner": true, "body": "Owner: add the edge cache rule."}; the issue opens assigned to the owner and the map shows it held by a person a293808
- Plan items marked owner open assigned to the owner, held for a person (#18462) c5a2488
- A pull whose own commits took their change back closes with nothing landed; i… (#18448) 8af1f6c
- Full suite red: test/tab-browser.test.ts (#18443) e725a06
- talk-layout.test.ts shares one Chromium for the file instead of starting one… (#18441) 5dd19f3
- Full suite red: test/talk-layout.test.ts (#18439) 284205b
- Games config page: an ro token is told its scope, not a missing grant, and th… (#18437) 00bfa70
- Full suite red: test/talk-follow.test.ts (#18435) 171c1ec
- Games: what a page draws for an ro token matches what its POST allows (#18433) db29dfc
- Access 3, games: mayOnGame answers alone for the box, server and game-door checks (#18429) a73dcca
- Access 3, terminal: the palette offers a screen by its `asks` through may(); the entries' own gates go (#18431) 55693b7
- Access 3, web pages: the two known partings are decided, then each page's own isAdmin and sign-in check is deleted and may() alone decides (#18430) d4ae8b7
- Access 3, terminal, games and infrastructure: the entries' own gates are deleted once may() has been asked beside them and agrees (#18428) be10e7a
- An imported session's page has a red Delete that asks for its title typed (#18423) 22c9252
- Access 3, terminal and games: SSH screens and game grants ask may() in shadow (#18412) fea5438
- A person deletes one of their imported sessions from its page, by typing its name (#18371) 3d2fa7b
- An imported session is deleted through the API by its owner who sends its exact title (#18390) 2c0a8b8
- Access 3, MCP: the scope floor is read from the disagreement count, then deleted (#18418) e374d6c
- A pull that adds a migration runs test/data-browser.test.ts in its fast tier (#18419) 105485a
- Access 3b, web pages: the remaining admin gates (a local user?.isAdmin, isAdmin !== true || agent) ask adminPage beside them (#18413) b9d6e88
A plan item can now carry owner: true for work only the owner can do, like a cache rule on their edge. The issue opens already assigned to the owner. The map shows it as held by a person, and the queue never hands it to a builder.
Already on main: two parts of the issue were done before this change.
- The map and queue already hold any issue assigned to a person (not an agent) through the
personhold insrc/crew/held.ts, so nothing new was needed there. - The edge-kept duty (
src/maintain/duties/edge_kept.ts) already files its finding assigned to the owner. It also takes back one that was handed to a builder.
So the change is the mark on the plan route.
What changed
src/actions/owner_mark.ts(new): decides whether an item's body can carry the mark. A marked item needs anOwner:line saying what the owner decides or does. It is refused as builder work if it names a file undersrc/,test/,docs/orscripts/, or has a "Files I expect" list. Each refusal is one plain sentence naming the item.src/actions/plan.ts:parsePlanacceptsowner(true or false) and checks the body withownerMarkRefusal.- The plan's existing checks before anything is written refuse a marked item from anyone who can't write to the repository. An outsider's issue never carries the mark.
openPlanassigns a marked issue to the owner inside the plan's transaction, using the existingsetAssignee. The plan's answer then lists it as held, with reasonperson.
src/http/mcp/tools/plan.ts: theplantool's input schema now hasowner.docs/features/owner-only-issues.md: a how-to for the mark.
Not done
- Ordinary issue filing (
src/actions/issues.ts) does not take the mark, so only a writer's plan or a duty can file an issue held for the owner. - No terminal screen: the plan has no screen there, so the commit says
No doorfor it. - No event is announced for the assignment made when the issue opens.
Checks: the new test test/plan-owner-mark.test.ts covers four things:
- a marked issue is assigned to the owner, held as
person, and absent fromstartable; - an unmarked issue stays unassigned and startable;
- builder work and a body with no
Owner:line are refused; - someone who can't write is refused.
The gate has 0 failing rules. It leaves two notes; one says the test's user helper looks like one in test/next-up.test.ts. bun x tsc --noEmit is clean. Listing the tests this change reaches named 2813 files (over its budget), so I picked these myself:
test/plan-*.test.ts,test/mcp-forge-plan.test.ts,test/mcp-here-plan.test.ts;- the dead-code, duplicate-import and process-wide-state rules;
- the MCP tool tests.
They all pass (367 + 233 tests). I did not run scripts/similar.ts; the only existing function reused is setAssignee.
To try it: post a plan with an item {"key":"edge","title":"Cache signed-out pages","pillar":"P0","body":"Owner: add the edge cache rule.","owner":true}. The answer lists it under held with by: "person", and the issue page shows the owner as assignee. Add src/x.ts to the body and the plan is refused with not_owner_only.
🤖 Generated with Claude Code
A plan item can now carry
owner: truefor work only the owner can do, like a cache rule on their edge. The issue opens already assigned to the owner. The map shows it as held by a person, and the queue never hands it to a builder.Already on main: two parts of the issue were done before this change.
personhold insrc/crew/held.ts, so nothing new was needed there.src/maintain/duties/edge_kept.ts) already files its finding assigned to the owner. It also takes back one that was handed to a builder.So the change is the mark on the plan route.
What changed
src/actions/owner_mark.ts(new): decides whether an item's body can carry the mark. A marked item needs anOwner:line saying what the owner decides or does. It is refused as builder work if it names a file undersrc/,test/,docs/orscripts/, or has a "Files I expect" list. Each refusal is one plain sentence naming the item.src/actions/plan.ts:parsePlanacceptsowner(true or false) and checks the body withownerMarkRefusal.openPlanassigns a marked issue to the owner inside the plan's transaction, using the existingsetAssignee. The plan's answer then lists it as held, with reasonperson.src/http/mcp/tools/plan.ts: theplantool's input schema now hasowner.docs/features/owner-only-issues.md: a how-to for the mark.Not done
src/actions/issues.ts) does not take the mark, so only a writer's plan or a duty can file an issue held for the owner.No doorfor it.Checks: the new test
test/plan-owner-mark.test.tscovers four things:person, and absent fromstartable;Owner:line are refused;The gate has 0 failing rules. It leaves two notes; one says the test's
userhelper looks like one intest/next-up.test.ts.bun x tsc --noEmitis clean. Listing the tests this change reaches named 2813 files (over its budget), so I picked these myself:test/plan-*.test.ts,test/mcp-forge-plan.test.ts,test/mcp-here-plan.test.ts;They all pass (367 + 233 tests). I did not run
scripts/similar.ts; the only existing function reused issetAssignee.To try it: post a plan with an item
{"key":"edge","title":"Cache signed-out pages","pillar":"P0","body":"Owner: add the edge cache rule.","owner":true}. The answer lists it underheldwithby: "person", and the issue page shows the owner as assignee. Addsrc/x.tsto the body and the plan is refused withnot_owner_only.🤖 Generated with Claude Code
Closes #18462