⨠feat: an ask reaches the owner as a page, and needs-owner keeps itself
Slice: #99
Builds State #176 of P-40. The owner approved this as athya_mono 0156 S-2 (athya-hq/athya_mono#3303) by labelling Work item athya-hq/athya_mono#3301 approved on 2026-11-07; decision 3 of the spec page (version 6) puts "the GitHub comment check and the label job" here. Since 24 Oct, 41 of 43 Proposal: comments in athya_mono linked no page.
What changes
process-rules guardreads each comment an agent session posts or edits throughgh:gh issue comment,gh pr comment, andgh apion a comments endpoint or in a GraphQL comment mutation. The body can be inline, a heredoc,$(cat file),--body-file,-F body=@fileor--input. A body that asks the owner is refused, with the rule and the fix, if it links nohttps://claude.ai/artifact/ā¦orhttps://claude.ai/code/artifact/ā¦page or runs over 500 characters. A body asks the owner when it opens withNeeds you:orProposal:(Markdown emphasis before the word is ignored) or names an owner login. A body the guard can't fully read, such as a variable, is judged by the part it spells out. It's refused only when that part asks the owner or the body opens with the unknown part.process-rules proposeis left alone. It posts its own generated text through GitHub's API, not throughgh, so the guard never sees it.process-rules needs-owneris a new command, andchecks.ymlgets a newneeds-ownerjob that runs it:- An agent comment opening with
Needs you:orProposal:labels its issueneeds-owner. - The owner's
approvedlabel orDecision:comment takes the label off at once. - An hourly sweep (
41 * * * *, or a run by hand) takes it off where the owner š'd the latest agent ask after its last edit, or wroteDecision:after it. - Issues with no agent ask, such as undo issues, are left alone.
- An agent comment opening with
onboardaddsprocess-rules-asksto a three-job client workflow. That covers theissue_commentandissuestriggers, the hourly cron and the job itself. Itsif:lets only comments that contain an opening word, theapprovedlabel and the hourly cron start a run. The weekly job, anddecisionsinchecks.yml, skip the hourly cron.- README and
docs/decisions.mdrecord it.
Evidence
pnpm check: 993 tests pass, coverage 99.42% lines and 97.47% branches. Tests that prove the done criteria:
src/guard.test.ts, "refuses a long ask that links no page, naming the rule and the fix".src/asks.test.ts, "takes the label off at the owner's Decision: comment, and at their approved label" and the hourly sweep test (š after the last edit clears; an older ask, someone else's š or an edit after the š does not).
The version is not bumped here. The release follows in its own PR.
š¤ Generated with Claude Code
Summary by cubic
An ask to the owner must now arrive as a published claude.ai artifact page of 500 characters or fewer, and a needs-owner label keeps itself on issues where the agent asks the owner.
Guard
- Reads the comment bodies
ghposts (inline, heredoc,$(cat file),--body-file,gh apifields,--input, and a GraphQL body in$namefrom the fieldghpasses) via a small shell reader, plus commands inside$(ā¦), backquotes andbash -lc, and refuses one that asks the owner ā opening withNeeds you:orProposal:, or naming an owner login ā with no artifact link or over 500 characters. - Heredoc delimiters are taken as written, inline GraphQL bodies are judged by their body string, a joined
--body=$Xcounts as opening with an unknown part, andghflags before the subcommand are skipped. A body it can't read in full is judged by what's spelled out; only an ask or a body opening with the unknown part is refused. A comment with no body (editor, prompt,--web) is refused as unreadable;--delete-lastposts none.proposeposts through the API and is unaffected.
needs-owner
- New
needs-ownercommand andprocess-rules-asksjob: agent asks label their issue, review-comment asks included; the owner'sapprovedlabel orDecision:comment takes it off at once. - An hourly sweep (and runs by hand) clears it where the owner š'd the latest ask after its last edit or wrote
Decision:after it; issues with no agent ask are left alone. onboardadds the job, its comment and label triggers, and the hourly cron to three-job workflows; the weekly and decisions jobs skip that cron. A decisions schedule of41 * * * *is refused.
The version isn't bumped here; the release follows in its own PR.