Skip to content

feat(fields): Critical/High/Medium/Low, Easy/Moderate/Hard, and no date fields - #12

Merged
Ardnived merged 1 commit into
mainfrom
claude/field-rename-and-created-date
Aug 31, 2026
Merged

Ardnived merged 1 commit into
mainfrom
claude/field-rename-and-created-date

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Summary

  • Documents the org-wide field rename (values preserved — options are stored by id): Priority tops out at Critical; Effort is Easy/Moderate/Hard so it can never again be confused with Priority
  • Start date/Target date deleted; the journal lookup moves to the issue's creation time in Vancouver
  • Records that PUT issue-field-values replaces the whole set — omitted fields are cleared

Contract impact

The renames are already live on GitHub (applied via PATCH /orgs/sydevs/issue-fields with admin:org); this PR is skills/config/docs catching up. The in-flight loop run predates this and may stumble on the missing Start date — expected, one-time.

Test results

  • Lean gate: ✓ claude plugin validate ./workflow --strict passes
  • Value preservation verified: SahajCloud#665 reads Priority=Critical, #661 reads High/Moderate

Notes for reviewer

The Effort/Priority confusion was real, not theoretical: a ticket meant to carry High priority got High effort, and with both fields offering High/Medium/Low nothing looked wrong.

…te fields

The org's issue fields are renamed in place (options are stored by id, so
every existing value survived): Priority's top rung is Critical instead of
Urgent, and Effort becomes Easy/Moderate/Hard so its options can never again
be mistaken for Priority's — that exact confusion put High EFFORT on a ticket
that wanted High PRIORITY, and with both fields reading High/Medium/Low the
mistake was invisible.

Start date and Target date are deleted org-wide; only Priority and Effort
remain. The journal lookup that used Start date now keys on the issue's
creation time converted to Vancouver — intrinsic, so it cannot drift, and one
less write per day.

Also records a freshly-burned gotcha: PUT issue-field-values REPLACES the
issue's whole field-value set. A PUT carrying only Priority silently clears an
existing Effort. Include every field you want kept.

Co-Authored-By: Claude Opus 5 <[email protected]>
@Ardnived
Ardnived merged commit 67f5fcb into main Aug 31, 2026
@Ardnived
Ardnived deleted the claude/field-rename-and-created-date branch August 31, 2026 21:52
Ardnived added a commit that referenced this pull request Sep 2, 2026
)

* feat(loop): discover branch preview aliases, compute journal titles

Two prompt-level rules become tools, because both had already failed as
instructions.

**Preview URLs.** SahajAtlasWeb#181 was fixed to use branch aliases and then
re-broken, the second time with a rationale: "these are per-deployment aliases,
so they stay pinned to this commit." That argument comes from
`get-cloudflare-preview-url.mjs`, which ranks a commit alias above a branch alias
on purpose — it feeds the CI smoke gate, which must test the exact SHA it was
handed. Correct there, exactly wrong in a PR body, and finalize-pr pointed at it
with a hedge ("when it gives you a branch alias") that the script can never
satisfy. One tool, two opposite requirements.

`branch-preview-url.mjs` is the second tool. It reads the alias out of the label
Cloudflare writes — `Branch Preview URL` in the Pages check-run summary and in
the Workers comment — so nothing is constructed. That matters beyond tidiness:
the documented slug rule (non-alphanumerics to `-`, truncate to 28) is a guess
about a host we do not own, and two branches agreeing in their first 28
characters produce one alias that answers 200 while serving the other branch.
Verified against both platforms: SahajAtlasWeb#181 (Pages, two projects) and
WeMeditateWeb#55 (Workers Builds + Pages). SahajCloud needs none of this —
Railway's preview host is per-PR and already stable.

**Journal titles.** Prose rewritten by the model nine times a day, each rewrite
re-reading the day to re-summarise it. `journal-title.mjs` prints
`Wed — 2 new, 1 revised, 2 merged, 1 closed` from queries instead.

Three things it had to get right, each found by testing rather than reasoning:

- A work item is an issue and its PR together, paired through
  `closingIssuesReferences` rather than a body regex — that is the resolution the
  merge itself uses, it catches sidebar links that leave no text, and it resolves
  cross-repo references without guessing which repo a bare `#12` meant.
- `updated:` filters on an item's CURRENT `updated_at`, not "was active in this
  range" — GitHub has no activity-range qualifier. Gating candidates on
  `assignee:<reviewer>` therefore dropped every item since reassigned, so the
  count would FALL through the day as work moved on. Replaced with each repo's
  reverse-chronological `issues/events` feed, which is the record itself.
- That feed's `actor` on an `assigned` event is the ASSIGNEE, not whoever
  assigned them: it reports SahajAtlasWeb#171 as `actor=Ardnived` where the
  timeline reads `->Ardnived by sydevs-bot`. So the feed finds candidates and the
  timeline confirms attribution. Trusting the feed alone would have counted the
  reviewer's own triage as the loop's work, silently and only ever upward.

Buckets are mutually exclusive with the terminal outcome winning, so a ticket
revised at 15:30 whose PR merges at 16:14 is one item finishing, not two moving.

Co-Authored-By: Claude Opus 5 <[email protected]>

* feat(loop): script the merge gate and census, free claude-workflow from tickets

Four changes that share one idea: a rule that can be evaluated should be
evaluated, and a value should not carry an essay.

**Review requests.** Opening a PR now requests review from `assignment.reviewer`,
always, including on drafts. Assignment and review request answer different
questions — who is working on it, versus who must look — and a PR that never
requests one waits in a list the reviewer has no reason to open.

**`claude-workflow` is ticketless.** `prAllowlistGlobs` becomes `**`. The ticket
gate exists so the loop does not write code nobody asked for, and it buys nothing
in a repo that ships prose and config: the PR body IS the proposal, and a ticket
restating it adds a round trip before the same reviewer reads the same argument.
What still gates the work is unchanged and is the part that matters — an
approving review, `wipCapPerRepo`, one behaviour per PR, and never a skill change
and a ceiling change together.

That last set binds harder now, so `mergePolicy.loopMayNotMerge` makes explicit
what CLAUDE.md only said in prose: the loop opens PRs here and never merges them.
Without it the new gate would have started merging them, because deriving "no CI
configured" as green (#29) turns every approved claude-workflow PR into a
candidate — in the one repo where merging is the deploy of the instructions every
subsequent run executes.

**The merge gate is a script.** `lib/merge-gate.mjs` replaces the prose table that
was wrong in two directions at once (#26):

  - `get_status` returns commit statuses; our CI reports check runs. On
    SahajCloud#672 the only status was Railway's deploy, green at 21:14, while
    `Lint, Test & Smoke` ran until 21:31 — seventeen minutes in which an approved
    PR read as green with its tests still running, and a run merging there would
    have been following the skill exactly.
  - The same call read SahajAtlasWeb#181, five of five checks green, as `pending`
    forever.

GraphQL's `statusCheckRollup` merges both surfaces, so the split that caused #26
does not exist here. Two clauses the merged reading still needs: at least one
CHECK RUN (a deploy status would otherwise stand in for a test job that was never
scheduled), and "this repo runs no Actions" is not "this PR's CI is unfinished" —
derived from the repo's workflow count, so it cannot go stale the day someone
adds a workflow. `/finalize-pr`'s CI watch shares the module, because a second
prose copy of "what green means" is how it stayed wrong in both places.

**The census is a script.** `worklist.mjs` prints every rung's candidates, WIP
against `wipCapPerRepo`, a merge verdict per PR, resolved blockers per ticket and
any cleared blocker still needing its line struck — in about five seconds, once,
where rung 0 was a dozen searches and a blocker read per ticket crossing the
context window nine times a day.

**loop-config.json holds values again.** It carried 7.9KB of prose across 27
`$comment` and `*Note` keys — 72% of its bytes — and an audit found every one of
those rules already stated in a skill or in docs/why.md. Two sources of truth for
every rule, in the repo whose entire failure history is duplication drifting
apart. Three homes, no overlap: the value here, the rule in the skill that
enforces it, the story in why.md. 11.0KB to 5.0KB, no rule lost.

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(loop): scripts decide, they never fetch — a routine has no GitHub API

The scripts shipped earlier in this branch cannot run in a routine. All of them
shell out to `gh`, and I verified them only where `gh` works.

Probed rather than reasoned about, twice:

  - `gh` is absent from the routine image. `docs/routine-setup.md` claimed it
    "ships in the image (/usr/bin/gh, v2.98.0)"; that line is wrong and is what
    licensed the whole approach. `loop-run/SKILL.md` had it right.
  - Installing it does not help. A downloaded gh 2.63.2 runs fine and then
    `gh api repos/...` returns 403 "GitHub access is not enabled for this
    session" — byte-identical with and without an auth header, so the proxy
    refuses the PATH, not the credential. curl to REST and to GraphQL 403 the
    same way. `curl /user` returns 200, which is the trap: the token looks
    healthy and the repository looks missing when neither is true.

Only `mcp__github__*` has a route, and a script cannot call MCP.

So the split is: **the run fetches, the script decides.** That is the better
boundary anyway. Neither merge-gate failure was in the fetching — both were in
deciding what the fetched values meant, and that half had no single home.

  - `lib/merge-gate.mjs` is now pure. `normalizeMcp()` accepts exactly what the
    three documented MCP calls return, so cloud and local reach the same code.
  - `merge-verdict.mjs` is the cloud-viable gate: MCP JSON on stdin, exit 0
    merge / 1 hold. Omissions fail SAFE — a missing reviewDecision reads as not
    approved, an unknown workflow count reads as "this repo has CI" so a missing
    check blocks. The only error that can merge something is one that invents an
    approval.
  - `branch-preview-url.mjs` gains `--stdin`, taking comment and check-summary
    text. The parser — where the bug was — is shared by both paths.
  - `worklist`, `journal-title`, `awaiting-review` and `ci-status` are labelled
    LOCAL ONLY in their own headers, and the skills now carry the MCP path for
    routines beside a note pointing at each script for local use.

Also in this commit, both found by running the code rather than reading it:

  - Every search was scoped `org:sydevs`, which drags in retired repositories.
    `awaiting-review` put seven-year-old Atlas and WeMeditate issues in the
    reviewer's queue on its first run. Everything now scopes by `repo:`
    qualifiers built from `repos`.
  - `📋 Awaiting you` becomes a table with a `Since` column. It is a triage
    surface, and a nine-day wait and a one-hour wait look identical in prose.

Co-Authored-By: Claude Opus 5 <[email protected]>

* docs(routine): the GitHub API proxy allowlists by path, not credential

Probed with a deliberately invalid PAT, which drew the same Anthropic 403 as
the harness token under both auth schemes, on REST and GraphQL. api.github.com
connects to peer=127.0.0.1 behind a cert issued by 'CCR Upstream Proxy CA
(staging); O=Anthropic'. So a self-managed token buys nothing, and the question
does not need asking again.

Also recorded what is NOT gated: example.com, de.sentry.io, Railway,
raw.githubusercontent.com and codeload.github.com all answer. Arbitrary HTTPS
egress is how the Sentry and Mailpit rungs already work.

Co-Authored-By: Claude Opus 5 <[email protected]>

* docs(why): record the decision not to build a GitHub relay

The relay is now a live option rather than a hypothetical, so the reasoning for
declining it needs to be on the record too — otherwise a future run rediscovers
that egress works and treats it as a licence.

Co-Authored-By: Claude Opus 5 <[email protected]>

* refactor(loop): delete the local-only scripts; a script here never fetches

Four scripts could only ever run where `gh` exists, and the loop does nearly all
its work in routines. Keeping them meant two implementations of every rule they
held — a local one exercised while developing, a prose one in the skill executed
eight times a day. That is the exact shape of the defect that made the merge gate
unsafe: `get_status` versus check runs was never a fetching bug, it was two
readings of "green" with no single home.

Deleted: worklist, journal-title, awaiting-review, ci-status, lib/gh.mjs (993
lines out). The rules they encoded are now specs in the skills — the census
queries, the four journal counts and their day boundary, the awaiting-you table.

Kept, and now stdin-only with every fetch path stripped:
  - lib/merge-gate.mjs + merge-verdict.mjs — the definition of green and
    mergeable, in one place. repoHasWorkflows is seeded by the caller and
    defaults to TRUE when unknown, because assuming CI exists blocks a merge
    while assuming it does not would call an untested PR green.
  - branch-preview-url.mjs — the alias parser, fed comment and check-summary text.

Both verified unchanged against their known cases after the refactor.

Why not make `gh` work instead: it was tried three ways and the ceiling is not
where it looked.

  - Installing `gh` works; `gh api repos/...` then 403s "GitHub access is not
    enabled for this session", identically with the harness token, an invalid
    token, and no token.
  - Connecting the Claude GitHub App for the org — which is what that 403 asks
    for — changed nothing.
  - The community recipe (gh-setup-hooks) sets GH_TOKEN to a personal token. The
    proxy answers before it reads a credential, so it never gets that far. It
    targets Claude Code on the web, which has a laxer proxy than Routines.

And the part that would survive any widening of repo access: `search/issues`
returns "sessions are bound to their configured repositories", and `graphql`
serves "only the pinned set of PR-review operations". Search is cross-repository
by nature, and the loop's worklist IS a search — so the three search-dependent
scripts could never have been cloud-viable, whatever happens to `repos/...`.

Also ignores .claude/worktrees/, which a running loop had just created and which
`git add -A` picked up as an embedded repository.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
sydevs-bot pushed a commit that referenced this pull request Oct 21, 2026
From the review of this branch. The first draft reported any live line that
started with the marker words and resolved nothing, which re-priced the
loose matcher's false positives as public comments. `blockerText` matches
`Blocked by the lack of staging credentials.`, so that author would have
been told to write an issue URL.
`docs/why.md#the-marker-reader-matches-words-not-punctuation` licensed the
looseness on the grounds that a false positive costs a run one skipped
ticket; a comment on a live ticket is dearer. Read loosely, report
conservatively — the asymmetry `format-ticket` already states.

So the reader now matches ref-shaped targets (an issue or PR URL in any
org, `owner/repo#N`, a bare `#N`) and reports `{ line, targets }` only for
a line that reaches for one and resolves no in-org issue. Three
consequences:

- The comment is keyed on the targets. The whole line made the reason prose
  part of the dedupe identity, so rewording after the em dash — the edit
  people actually make — re-posted advice already read, and any later
  tidying of `blockerText` would have re-nagged every open ticket carrying
  such a line. A corrected target still yields a key never reached.
- The quoted line is the line as written, bullet off. `bare` strips leading
  emphasis only, so the old draft quoted `Blocked by #12.**` back at its
  author. It also quoted inside a backtick span, which a backtick in the
  reason broke; it is a blockquote now.
- A line naming no target at all is prose and is reported nowhere.

A line that resolves one target and drops another still stays silent, as
the ticket's criterion requires.

Also from the review: `parseBlockedBy` and `unresolvedBlockers` now share
one `blockerLines` pass, so a line's recognition is asserted in one place
rather than two; `gather` hoists its call beside `parseBlockedBy`'s; the
snapshot field is `markers.unresolvedBlockers`, leaving the generic name
free; and one word, "unresolved", now spans the reader, the field, the
decider and the comment key, so one grep finds the whole path.

Measured over every tracked `.md` in this repo, including `docs/why.md`
and `docs/routine-setup.md`, which discuss the format at length: the new
reader fires on none of them. The old one fired on several.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RwNGisqc9vchf9VTr2Gfqf
sydevs-bot added a commit that referenced this pull request Oct 21, 2026
`unresolvedBlockers('Blocked by #12 and #13')` keyed on `#12 #13`, so
swapping the two on the line keyed on `#13 #12` and `commentOnce` posted a
second comment about the same targets. Rewording the reason is the edit
the key was designed around, but an author correcting one of two targets
often rewrites the pair.

Both keys sort now — the reader's own line dedupe and the comment key.
The message is untouched: it still names the targets in the order written.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XMybaRuVa8zwvVn4ZAVgE1
Ardnived pushed a commit that referenced this pull request Oct 27, 2026
* fix(dispatcher): refuse a Blocked by line that names no issue

sydevs/SahajCloud#987 carried `Blocked by: …/pull/912`, naming the PR
rather than the issue that PR closes (#907). `parseBlockedBy` returns `[]`
for that line — GitHub's relationship takes an issue — so no relationship
was created, no `blocked` went on, and nothing was said. `stripBlockedBy`
leaves the line, rightly: it is the only record of the author's intent. The
ticket therefore read as blocked to every human and as ready to the
machinery. The `block on` verb has refused loudly in exactly this
situation since it shipped (decide.mjs blockVerb); the body-marker path
had no equivalent.

`unresolvedBlockers(body, org, marker)` is a sibling of `parseBlockedBy`
over the same `blockerText` pass, returning the bare text of each live
line whose `parseRefs` is empty. `gather` puts it on `s.markers.unresolved`
and `derive` turns each entry into one `commentOnce` on `issues.opened`
and `issues.edited`, naming the line and the two accepted spellings. No
label, relationship or Status moves for it: the item really is not
blocked, and `blocked` follows the relationship. An outsider's own body is
skipped, as its markers already are.

The comment is keyed on the line's own text, not a comment id — there is
none on this path. A body edit elsewhere re-derives the same key and
`commentOnce` posts nothing; a corrected line yields a key never reached.

A line that resolved one target and dropped another stays silent. That
ticket is related and carries `blocked`, so the human and the machinery
agree, and a PR URL beside a resolved issue is as often reason prose as a
second blocker.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RwNGisqc9vchf9VTr2Gfqf

* docs(format-ticket): the blocker's target is an issue, never the PR that closes it

The Relationships section stated the accepted spellings only in its "Write
the format. Do not rely on it when reading" paragraph — under the reading
half, which a session writing a line has no reason to reach. The writing
instruction above it showed an `issues/632` URL and said nothing about what
the target must be, so the shape was there to copy and the rule was not.
sydevs/SahajCloud#987 named the PR.

One clause on the writing instruction says it, and the reading paragraph
now says the dispatcher comments on a line that names neither spelling
rather than dropping it in silence.

4.0.1: an installed plugin's cache directory is named after `version` and
never revisits the commit it recorded, so a skill edit reaches
`/plugin install workflow@sydevs` only when this string moves. The routines
read main fresh on every dispatch and do not need it.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RwNGisqc9vchf9VTr2Gfqf

* refactor(dispatcher): delete the dead LOCK_FREE_STATUS_ONLY constant

Nothing in `dispatcher/` or its tests has read it since it arrived dead in
#85. Its name states a rule — on a locked item only these action types run
— that `decide` does not implement: the lock strips `awaiting` and nothing
else. A reader trusting the name would believe comments and fires are
already suppressed on a locked item, which is the belief the part above
had to check against the code.

The rule itself may still be worth having. Suppressing comments and fires
on a locked item changes dispatcher behaviour in all five repos on the next
event, so it needs its own ticket; deleting the constant does not foreclose
it.

It joins #198 as the same file, the same reader and the same test command.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RwNGisqc9vchf9VTr2Gfqf

* docs(routine-setup): an unusable blocker line is commented on, not dropped

The Relationships section described the reader as generous about the line's
shape and stopped there, so it read as if every line either converts or is
ignored. One clause names the third outcome this branch adds.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RwNGisqc9vchf9VTr2Gfqf

* fix(dispatcher): report a blocker target, not a blocker line

From the review of this branch. The first draft reported any live line that
started with the marker words and resolved nothing, which re-priced the
loose matcher's false positives as public comments. `blockerText` matches
`Blocked by the lack of staging credentials.`, so that author would have
been told to write an issue URL.
`docs/why.md#the-marker-reader-matches-words-not-punctuation` licensed the
looseness on the grounds that a false positive costs a run one skipped
ticket; a comment on a live ticket is dearer. Read loosely, report
conservatively — the asymmetry `format-ticket` already states.

So the reader now matches ref-shaped targets (an issue or PR URL in any
org, `owner/repo#N`, a bare `#N`) and reports `{ line, targets }` only for
a line that reaches for one and resolves no in-org issue. Three
consequences:

- The comment is keyed on the targets. The whole line made the reason prose
  part of the dedupe identity, so rewording after the em dash — the edit
  people actually make — re-posted advice already read, and any later
  tidying of `blockerText` would have re-nagged every open ticket carrying
  such a line. A corrected target still yields a key never reached.
- The quoted line is the line as written, bullet off. `bare` strips leading
  emphasis only, so the old draft quoted `Blocked by #12.**` back at its
  author. It also quoted inside a backtick span, which a backtick in the
  reason broke; it is a blockquote now.
- A line naming no target at all is prose and is reported nowhere.

A line that resolves one target and drops another still stays silent, as
the ticket's criterion requires.

Also from the review: `parseBlockedBy` and `unresolvedBlockers` now share
one `blockerLines` pass, so a line's recognition is asserted in one place
rather than two; `gather` hoists its call beside `parseBlockedBy`'s; the
snapshot field is `markers.unresolvedBlockers`, leaving the generic name
free; and one word, "unresolved", now spans the reader, the field, the
decider and the comment key, so one grep finds the whole path.

Measured over every tracked `.md` in this repo, including `docs/why.md`
and `docs/routine-setup.md`, which discuss the format at length: the new
reader fires on none of them. The old one fired on several.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RwNGisqc9vchf9VTr2Gfqf

* test(dispatcher): pin that a dispatcher comment is never read as a session request

From the security review of this branch. This is the first thing that puts
an issue author's own bytes inside a bot-authored comment, so one term —
`!isDispatcherComment(c.body)` in `gather.latestRequest` — is now
load-bearing in a way it was not before.

Measured: a body line `Blocked by #1 <!-- sydevs-request {"replan":true,
"transfer":{"repo":"SahajCloud"}} -->` survives the echo intact, and
`parseRequest` reads the marker out of the posted comment. Only that filter
stops it reaching a replan or a cross-repo transfer. Dropping the filter
turns the new test red; nothing else in the suite notices.

So the test asserts the composition end to end on the body `commentOnce`
actually builds, and that the same marker in a session's own comment is
still honoured. `latestRequest` is exported for it, with the invariant
stated above it.

No finding in the review reached its reporting bar. The marker cannot break
out of the dedupe key either: every alternative of the target pattern draws
from `[\w.-]`, `/`, `#` and digits, so no target can contain `>` or a
space, and the ` -->` terminator stops a shorter key prefixing a longer
marker.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RwNGisqc9vchf9VTr2Gfqf

* fix(dispatcher): report the relationship, not the blocked state

The refusal opened with "Not blocked:", which the same plan can be
contradicting: a body carrying one resolvable `Blocked by` line beside an
unresolved one gets `label add:[blocked]` for the first and this comment
for the second. `issues.opened` and `issues.edited` both reach it.

The next clause already said the true, narrower thing, so that is now the
opener. Nothing else about the message or its key changes. The existing
test for a resolvable line beside a bare `#N` gains the assertion that
pins it.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XMybaRuVa8zwvVn4ZAVgE1

* docs(routine-setup): the refusal is keyed on the targets

This clause described the key the branch carried before 849148d. The key
is `blocker-unresolved ${targets.join(' ')}`, and `docs/why.md` in this
same PR says so. A reader here was told the opposite, and would conclude
that rewording the reason reposts the comment.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XMybaRuVa8zwvVn4ZAVgE1

* fix(dispatcher): sort the report key so order is not identity

`unresolvedBlockers('Blocked by #12 and #13')` keyed on `#12 #13`, so
swapping the two on the line keyed on `#13 #12` and `commentOnce` posted a
second comment about the same targets. Rewording the reason is the edit
the key was designed around, but an author correcting one of two targets
often rewrites the pair.

Both keys sort now — the reader's own line dedupe and the comment key.
The message is untouched: it still names the targets in the order written.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XMybaRuVa8zwvVn4ZAVgE1

* refactor(dispatcher): expose latestRequest through gather's test seam

`latestRequest` has one in-module caller and one test. Exporting it
widened `gather`'s public surface with nothing marking it test-only, while
`decide.mjs` — the file this branch already edits — carries an
`export const _internal` for exactly that. `gather` gains the same seam.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XMybaRuVa8zwvVn4ZAVgE1

* docs(why): the refusal reports the relationship, and sorts its key

Two clauses this branch's own section now got wrong. It claimed "the item
really is not blocked", which is the false assertion the message dropped —
a sibling line that resolved can be applying `blocked` in the same plan.
And the keying bullet did not say the key sorts its targets.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XMybaRuVa8zwvVn4ZAVgE1

---------

Co-authored-by: sydevs-bot <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
Co-authored-by: sydevs-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant