Skip to content

feat: settle-roadmap, notes in the body, and infrastructure CI re-runs - #179

Merged
Ardnived merged 6 commits into
mainfrom
claude/settle-roadmap-notes-ci-triage
Oct 11, 2026
Merged

Ardnived merged 6 commits into
mainfrom
claude/settle-roadmap-notes-ci-triage

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Summary

This bundles four behaviours, one commit each, as the owner asked:

  1. settle-roadmap — a new skill for answering a goal's open questions in the terminal with AskUserQuestion instead of replying on GitHub. It writes decisions straight into the body (shown as a diff first, re-read before writing), posts one roadmap.settledMarker comment with no bot mention, and offers @sydevs-bot implement when nothing is left open.
  2. Reopened questions say what they reopen. format-ticket adds a Reopened <date> by <who>. Was: <answer> line. revise-roadmap writes it, and settle-roadmap marks "(your previous)" from it.
  3. Technical notes live in a collapsed block in the roadmap body, not in a comment.
    • It's scannable: TL;DR, tables, one <details> per topic, replace rather than append.
    • It has a soft budget, writing.budgets.notes.
    • notesMarker moves to v2.
  4. CI triage.
    • An infrastructure failure gets re-run by the dispatcher, at most ceilings.ciInfraReruns per head, and then a person takes over, with no fix-ci spent. A failure counts as infrastructure when it timed out, never started, was cancelled with no newer run, or is annotated infrastructure-failure.
    • The re-run uses the caller's GITHUB_TOKEN, through actions: write.
    • Also two fix-ci fixes: a person's push resets a capped repair count, and fix-ci reads the record's head.sha.

The version goes to 3.2.0.

The failures this prevents

  • Answers that disappear. A verb posted while a session holds the lock is dropped when that session replies. SahajCloud#902's answers were lost on 2026-10-09.
  • Notes that sprawl. A session can't edit a comment, so each revise posted another notes comment. #902 had five.
  • Repair sessions spent on outages. Six fix-ci fires came from one Railway outage (claude-workflow#164).
  • A cap that never lifts. The comment's promise "a push from you starts me again" was false.

⚠ Rule waived

AGENTS.md says never to ship a skill change and a ceiling change in the same PR. This PR adds ceilings.ciInfraReruns beside the skill changes. The owner waived the rule for this bundle. The ceiling moves CI re-runs and the skills move ticket writing, so a change in the next run's output can still be traced to one or the other.

Merge order

The four product repos' callers already grant actions: write: sydevs/SahajCloud#923, sydevs/SahajAtlasWeb#278, sydevs/WeMeditateWeb#182 and sydevs/SahajAtlasWordpress#67, all merged. This repo's caller is in this PR. Once dispatcher.yml's act job asks for the permission, a caller without it would fail.

Checks

  • claude plugin validate ./workflow --strict passes.
  • node --test dispatcher/test/*.test.mjs passes 214. That includes new tests for infra classification, re-run caps, the re-run action and the count reset.
  • The budget and parse-questions tests pass 25.
  • payload.test.mjs fails 2 locally, in a worktree only. Those tests assume the checkout layout, and this change doesn't touch them.
  • rule-delta.mjs reports 82 → 87 directives, 4 added and none removed:
    • Never answer for the person.
    • Never write a body you have not shown as a diff…
    • Never write to a goal while labels.lock is on it.
    • Never post a bot verb…

🤖 Generated with Claude Code

Ardnived and others added 6 commits October 11, 2026 10:03
… the right head

Two defects in the fix-ci loop.

- The cap comment promises "a push from you starts me again", but
  rec.fixCi was never reset, so a capped PR stayed capped whatever a
  person pushed. A head a respondTo person pushed since the last fix-ci
  now resets the count and fires fix-ci. The bot's own pushes never do.
  gather fetches the head commit's author only once the cap is reached.
- fix-ci compared the PR's head.sha with `ci.head_sha` in the record.
  The record carries `head.sha`, so its stale-failure check read a
  missing field.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every red required check fired fix-ci, whatever caused it. A Railway
outage, a job limit or a preview that never published spent repair
attempts on nothing (six fires from one outage, claude-workflow#164).

- gather sorts failing required checks: timed out, startup failure, a
  lone cancellation, or an error annotation titled `ci.infraLabel`
  ("infrastructure-failure") is infrastructure; anything else is the
  change. It reads annotations only for failed checks.
- When every red check is infrastructure, decide re-runs the failed
  Actions jobs, at most `ceilings.ciInfraReruns` (2) per head, then
  hands the PR to a person with a plain comment. No session is spent. A
  mix still fires fix-ci.
- apply re-runs a job with the calling repo's GITHUB_TOKEN
  (ACTIONS_TOKEN), since the bot PAT has no Actions scope. The act job
  asks for `actions: write`; every caller grants it, this repo's own in
  this commit and the four product repos in their own PRs, merged first.
- fix-ci leaves infrastructure checks alone.

⚠ This adds a ceiling in the same PR as skill changes, which AGENTS.md
forbids. The owner waived it for this bundle: the cap moves CI re-runs
and the skills move ticket writing, so their effects do not overlap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…answers are marked

- format-ticket: a decision moved back to `## Open questions` keeps a
  `Reopened <date> by <who>. Was: <answer> (<who>, <date>).` line
  before its options. Nothing recorded the previous answer, so showing
  it meant inferring it from prose (four reopened on 2026-10-10).
- format-ticket: answers given through settle-roadmap are written into
  the body, then recorded in one comment opening with
  `roadmap.settledMarker`. revise-roadmap reconciles around those and
  never re-applies them.
- revise-roadmap writes the Reopened line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… body

The notes were "one comment, edited in place", which a session cannot
do: the MCP surface edits a body, never a comment. So each revise run
posted another notes comment; SahajCloud#902 carried five by
2026-10-11, and a reader merged them by hand.

- format-ticket: the roadmap template ends with the
  `roadmap.notesMarker` line and one collapsed `Technical notes` block.
  The style rules: TL;DR first (3 bullets max), facts in tables, one
  <details> per topic, replace superseded facts in place, and cite
  evidence instead of quoting it.
- `writing.budgets.notes` (8000) is measured with budget.mjs and never
  refused; OVER means prune first and say so in the journal.
- notesMarker moves to v2. A goal's v1 notes comments are folded into
  the block once by the next writer.
- revise-roadmap, implement-roadmap, write-ticket, file-ticket and
  adoption.md read and write the block instead of the comment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…erminal

Answering on GitHub costs a fixed-shape reply, a cloud session and a
wait, and a verb posted while a session holds the lock can be dropped
(SahajCloud#902's answers were, on 2026-10-09).

settle-roadmap is the preferred alternative:
- finds every open Roadmap goal with unticked questions (or one ticket,
  or one milestone), skips any a session holds, and orders blockers
  first;
- briefs each goal in five lines, then asks with AskUserQuestion:
  recommendation first, the earlier answer marked from its Reopened
  line, conditional questions only when they apply;
- researches a question asked back and re-asks it;
- drafts one change across every body it touches (decisions, dependent
  lines, notes, other tickets, relationships), shows it as a diff, and
  writes it on a yes, re-reading first;
- posts one `roadmap.settledMarker` comment with no bot mention, and
  offers `@sydevs-bot implement` when nothing is left open.

parse-questions.mjs reads the Open questions section into JSON, with a
test. README gains the row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
An installed plugin is keyed by version, so the skill changes reach a
maintainer's session only with a new one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Ardnived
Ardnived merged commit b5d49af into main Oct 11, 2026
5 checks passed
@Ardnived
Ardnived deleted the claude/settle-roadmap-notes-ci-triage branch October 11, 2026 17:12
sydevs-bot pushed a commit that referenced this pull request Oct 11, 2026
Resolves the one conflict: `version` in `workflow/.claude-plugin/plugin.json`.

Both sides advance the plugin cache key for the same reason, so neither side
could be taken wholesale. The merge base read `3.1.2`. This branch bumped it to
`3.1.3` for its `workflow/lib/**` fix; `main` took it to `3.2.0` for #179's new
`settle-roadmap` skill. Taking `3.1.3` would reinstate a stale cache key against
the new base, and taking `3.2.0` would ship this branch's lib change with no
bump at all — the exact failure `cut-release/SKILL.md:30-32` exists to prevent.
`3.2.1` keeps both: `main`'s minor bump for the new skill, plus a patch for the
fix that rides on top of it.

Everything else merged clean, `docs/why.md` included — #179 touched no `--base`
call site, so this branch's `origin/main` invariant still holds across the tree.

Gate: `claude plugin validate ./workflow --strict` passes.
`node --test dispatcher/test/*.test.mjs` 214/214.
`node --test workflow/lib/*.test.mjs` 55/57 — the two failures are
`payload.test.mjs`'s worktree-path tests, which pass from the main checkout and
fail inside `.claude/worktrees/<slug>` on `main` too. Pre-existing, tracked as
 #176.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BeswvK5JHWgfd6hLdnb9Zu
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