Skip to content

feat(loop): intake asks with options, docs fixes go to PRs, CI is required checks, mentions only, Dependabot-gated deps - #171

Merged
Ardnived merged 5 commits into
mainfrom
claude/intake-docs-ci-deps
Oct 10, 2026
Merged

Ardnived merged 5 commits into
mainfrom
claude/intake-docs-ci-deps

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Six behaviours, agreed one by one with the maintainer, shipped together at their request. Each commit names one or two; the PR is the revert unit.

What changes, and the failure each prevents

  1. file-ticket asks with options (553b71a). Every question goes through AskUserQuestion with a recommendation; each open question can be left on the ticket. An intake answer is folded into the body, not listed under ## Decisions — before filing it is the request itself. A filer whose gh login is not assignment.reviewer is treated as non-technical: technical questions go to the ticket unasked, the preview is plain, no hand-over. Prevents: open-ended prose questions, and fresh tickets that read as if argued over.
  2. A docs-only fix is a PR, not a ticket (184dc0c). Markdown, or comments comment-fingerprint.mjs proves comment-only, where the code is plainly right: first into the ticket/PR it belongs to, else its own ticketless PR from any handler, any size. Must it be a ticket → Bug. write-ticket never widens a docs fix into a guard. Prevents: 6 of the last 16 docs tickets (e.g. SahajCloud#901, SahajAtlasWeb#261, feat(dispatcher): note a skipped critic on a small member PR #264) — each a ticket, a verb and a session for a one-file doc change.
  3. CI, to the loop, is the ruleset's required checks (820a484). gather reads the base branch's rules; newest run per name; a missing required check counts as queued; a red non-required check is noted once and fires nothing; unreadable/empty ruleset → old behaviour. fix-ci fixes only what ci.reason names. Prevents: 19 of 53 fix-ci runs (Aug 28–Oct 9) that chased a red GitHub didn't require — Railway on SahajCloud#879/#880/#885 (claude-workflow#164), the cancelled duplicate on WeMeditateWeb#144.
  4. A bot PR answers a mention, a review or a thread reply (820a484). A plain comment no longer dispatches address-review; the derivation carries the rule so the sweep agrees. Prevents: an Opus session per "thanks" or "will look tomorrow".
  5. Shared dependency review (e9087d8). .github/workflows/dependency-review.yml, called from each product repo's CI (follow-up PRs), fails only on a high/critical runtime advisory a PR adds. Outside dispatcher.yml, so BOT_DISPATCH can't strand a required check. Prevents: SahajAtlasWeb#233/Tue — 10 dispatches · 0 failed · 0 anomalies #237/Fri — 14 dispatches · 1 failed · 1 anomaly #243/Sun — 0 dispatches · 0 failed · 0 anomalies #248 failing on main's advisories, and fix-ci rewriting overrides on unrelated PRs.
  6. The dispatcher checks Dependabot before spending a session; Mondays alternate (171fd66). A daily deps job fires audit-deps in a repo only when a high/critical runtime alert opened in the last day, or on Monday one with a fix is open, and no claude/chore-deps-* PR is open. New repo-scope record (kind: "repo", no lock) for handlers with scope: "repo". Mondays alternate audit-deps (routine updates) and audit-contracts; the 1st-Saturday override is gone. Prevents: a session every Monday whatever there is, and alerts waiting up to six days (SahajCloud's nodemailer alerts, open since Sep 30).

Checks

  • claude plugin validate ./workflow --strict — passed.
  • node --test dispatcher/test/*.test.mjs — 200 pass (new: required-only gather, mention rule, advisory note, deps due/in-flight/tick, Monday alternation).
  • node --test workflow/lib/*.test.mjs — 37 pass, 2 fail: defaultAttachedDir tests assume a checkout at <workspace>/claude-workflow; this ran in a worktree. Pre-existing and environmental.
  • rule-delta.mjs --base origin/main workflow/skills — no directive disappeared; 4 added. "Never weaken or extend an audit baseline" became "never silence an advisory to make a run pass", because the SahajAtlasWeb baseline is deleted in its follow-up PR.

Follow-ups (same session)

Product-repo PRs adding the Dependency Review caller (SahajAtlasWeb also drops its full-lockfile audit), then ruleset edits: remove SahajAtlasWeb's Dependency Audit, require Dependency Review / review in all four.

🤖 Generated with Claude Code

Ardnived and others added 5 commits October 9, 2026 18:43
…R answers a mention

The loop's CI verdict counted every check run and status except its own,
so a Railway outage, a stalled Cloudflare Pages build, or a cancelled
duplicate CI run read as red. 19 of 53 fix-ci runs between Aug 28 and
Oct 9 chased a red GitHub did not require (SahajCloud#879/#880/#885 on
Railway, WeMeditateWeb#144 on a cancelled duplicate). gather now reads
the base branch's ruleset and keeps only its required contexts, newest
run per name. A red check outside them is said once on the PR and fires
nothing. An unreadable or empty ruleset falls back to counting everything.

On a bot PR, a plain comment no longer dispatches address-review: only a
mention does, or a review or thread reply. The state check carries the
rule too, so the 30-minute sweep agrees with the event.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
SahajAtlasWeb's required Dependency Audit audited the whole lockfile, so
a new advisory against a dependency already on main failed every PR,
and fix-ci rewrote overrides on unrelated ones (#233, #237, #243, #248).
dependency-review-action compares only the dependencies a PR changes.
It lives here as a reusable workflow each product repo calls from its
own CI, outside dispatcher.yml, so pausing the loop never leaves a
required check unreported.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…on, and Mondays alternate

audit-deps ran every Monday across every repo, whatever there was to do,
and an alert opened on a Tuesday waited six days. A new `deps` job reads
each product repo's open Dependabot alerts once a day and fires
audit-deps in that repo only when a high or critical runtime alert
opened in the last day, or on Monday when one with a fix is still open,
and no dependency PR is already open there. It is a repo-scope fire: no
item and no lock, so payload.mjs and buildRecord accept kind "repo" for
a handler configured with scope "repo".

The calendar can now rotate a weekday through a list. Mondays alternate
audit-deps (routine updates) and audit-contracts, and the first-Saturday
override goes, so hygiene keeps every Saturday.

The dispatcher's skipped deps and contracts jobs join ignoreCheckNames.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…y, and spare a non-technical filer

file-ticket asked in prose and waited for a typed reply. Every question
now goes through AskUserQuestion with a recommendation, and each open
question can be left on the ticket for the review on GitHub. An answer
given before filing is written into the section it shapes, not listed
under Decisions: before filing, it is the request itself. A filer whose
gh login is not assignment.reviewer is treated as non-technical:
technical questions go to the ticket unasked, the preview is a plain
summary, and the hand-over is never offered. A docs-only request is
offered as a PR instead of a ticket.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…follow the new CI and deps rules

Sixteen docs-only fixes became tickets since Aug 15; the six since the
PR routes existed were routed exactly as the rules said. The handlers
that find most drift could not push, comment fixes fell outside
**/*.md, and write-ticket widened doc fixes into guard tests. Now a
docs-only fix (Markdown, or comments comment-fingerprint.mjs proves
comment-only) goes first to the ticket or PR it belongs to, and
otherwise to its own ticketless PR, whatever its size and whichever
handler found it. When one must be a ticket, it is a Bug.

Also: start-run and finish-run gain repo mode for the dispatcher's
repo-scope audit-deps fire; audit-deps splits into the dispatched
vulnerability job and alternate-Monday routine updates; audit-contracts
moves to alternate Mondays; fix-ci fixes only the required checks the
record names; write-ticket's local create path asks through file-ticket.
README, AGENTS.md and why.md carry the stories. Plugin 3.1.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant