โจ feat: propose posts a short pointer to a published page
Builds State #236 of P-40: propose posts a short pointer to a published page, by the guard's own rule for asks. The owner approved it with a ๐ (page https://claude.ai/artifact/UKSecSCvue9yfwcbA9nHGP).
What changes
niyam propose <issue>โฆ --page <url>(or--page=<url>, once per run) posts eachProposal:as three lines: the one-line proposal,Page: <url>, and the owner mention with how to answer (the Approvals batch included where the settings name one). The first#Nstill names the issue, so ๐ matching is unchanged.- Each body is checked with
askProblem(src/asks.ts) before any is posted; a title long enough to push it over 500 characters is refused, naming it. - Without
--page, a proposal still to be posted is refused, posting nothing, with the command to run:niyam propose N --page <page url>. A--pagethat is not a wholeclaude.ai/artifact/โฆorclaude.ai/code/artifact/โฆlink is refused before GitHub is asked anything. - Unchanged: no double posts, the
needs-ownerlabel and its removal, the batch line, the printed comment URLs. A rerun that only links proposals already posted needs no page. - Hints that print
niyam propose Nadd--page <page url>. The guard's comment, the README anddocs/decisions.mdsay the same.
Proved: pnpm typecheck, pnpm test (1162 pass, 0 fail; 99.50% lines, 97.47% branches), pnpm build, pnpm smoke. New tests: both kinds' three-line bodies pass askProblem; refusal without --page (one and two waiting); refusal of four non-page links with no request made; a 450-character title refused; a no-page rerun that only links; --page argument parsing (six bad forms, exit 2).
๐ค Generated with Claude Code
Summary by cubic
Posts each propose proposal as a short pointer to a published page instead of the full proposal body, matching the guard's rule for owner asks.
- Each comment is three lines: the proposal,
Page: <url>from the new required--page <url>argument (optional in help and hints, since a rerun that only links needs none), and how to answer; the first#Nstill names the issue, so ๐ matching is unchanged. - Bodies are checked with the guard's own
askProblembefore posting; a proposal that would exceed 500 characters is refused, posting nothing. - Without
--page, or with a link that is not aclaude.ai/artifact/โฆorclaude.ai/code/artifact/โฆpage, proposals are refused; a missing page prints the command to run, a bad page is refused on its own before GitHub is asked anything. - The guard comment, README and
docs/decisions.mddocument the same rule.