Repository navigation
Conversation
A sufficient result now lists triage_summary.open_causes and ruled_out,
each {cause, evidence, verified}. The post-script lists both under the
comment and stores the same state for the next run: a hidden
<!-- triage-state-v1:<base64> --> marker on GitHub and GitLab, the
comment property fullsend.triage-state on Jira. The readable lists are
condensed to fit the 4000-character cap; the stored state keeps every
entry. The marker is outside fullsend's "<!-- fullsend:" namespace
because fullsend post-comment escapes those in the body it posts.
Step 2e replaces the accumulate/superset rules with a procedure: find
the trusted triage comments, start from the newest state, rebuild once
from legacy comments as unverified claims, and carry causes forward only
on evidence that holds now. The forge skills gain the author and editor
lookups the trust rules need, and env/github/triage.env passes
FULLSEND_APP_SET into the sandbox.
Fixes fullsend-ai#2042
BREAKING CHANGE: a `sufficient` triage result must now include
`triage_summary.open_causes` (non-empty) and `triage_summary.ruled_out`;
the output schema rejects one without them. A harness or overlay that
replaces `agents/triage.md` with its own prompt must have the agent emit
both lists, each entry `{cause, evidence, verified}`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
setup-fixture.sh seeds fixture.comments on GitHub issue fixtures, oldest first. Cases 013-017 cover re-triage: 013 and 016 seed comments with a triage-state-v1 marker, 014 legacy prose-only analyses, 015 a forged analysis with a forged state, 017 a forged plain-prose ruling. The eval account is not a triage bot, so every seeded comment is untrusted and the cases exercise the rebuild path (fullsend-ai#2043 tracks a bot-authored baseline). The report-only cause_lists judge decodes the run's own marker and matches cause phrases and verified expectations against it. Case 007 expects the reporter's cause as the open cause. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
Step 2e reads a trusted comment newer than the baseline without a state as claims, and docs/triage.md says when that happens on Jira (ADR 0106's coalescing isn't in place yet). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
…ent exactly The 4000-character cap now applies to everything posted except the hidden marker, footers included: the lists shrink first (down to open cause names cut to 80 characters), then the agent's comment is cut with a note. The stored state stays under 30000 bytes for Jira's property limit. The Jira comment pick parses Jira's "+0000" form and RFC 3339 "Z" and "+00:00" at full precision in UTC, breaks ties by the highest comment id, and fails on a timestamp it cannot parse instead of dropping the comment. Its comment cites where fullsend v0.56.1-rc.1, v0.56.1 and fullsend-ai/fullsend#9399 set the fullsend.sticky-marker property. Step 2e says a GitHub User never counts whatever its login, and the sufficient rules say how to fold more than 10 open causes into one unverified entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
…a state Over the 30000-byte state cap the post-script now empties ruled-out evidence, then open evidence, then cuts cause text by whole characters, and fails before anything is written if the names alone do not fit. It no longer drops ruled-out causes, which a later run could revive. On Jira the post-script deletes the fullsend.triage-state property from the account's own triage comments before posting. Before fullsend-ai/fullsend#9399 the post edits that comment in place, so a run cancelled before the property write, or one with no state, no longer leaves the previous state on new text. The prompt keeps the agent's comment under 2500 characters so the lists and footers fit the 4000-character limit, names an "Other open candidates" entry for more than 10 open causes, and says a trusted state is still claims. The docs record that a Jira admin can set the property without editing the comment. The Jira skill shows comment paging, and the GitHub skill cites where the GraphQL editor login was observed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
…footers literally A state that cannot be stored now fails the run with an explicit error before the issue is touched, and the other new command substitutions in the post path and the Jira lookups check their status. Causes the state cannot keep are reported as a warning, and the schema rejects whitespace-only names. The agent's comment and the footers are split by length, so glob characters in the comment cannot move the lists. The neutralizer escapes marker variants with extra dashes, any case or spacing, and step 2e accepts only the exact form the post-script writes. Footers other than Next steps are held to 1000 characters and cut at a line end, so Next steps is always posted whole. On Jira the state is cleared only from the comment an edit in place would rewrite (the oldest own marked comment, as fullsend v0.56.1-rc.1 lists and picks it). If the post created a new comment (fullsend-ai/fullsend#9399), the cleared state is put back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
The Jira flow is now: post the comment, then set fullsend.triage-state on the newest-updated own triage-agent comment, keeping the UTC timestamp parsing, the id tie-break, the all-pages listing and the fail-closed paths. The clear-before-post and restore logic is removed. The residual is documented: before fullsend-ai/fullsend#9399 fullsend edits the comment in place, so a run cancelled after the edit but before the property write leaves the previous run's state on the new text. The next run starts from that older state, and step 2e re-checks every carried cause and reads newer trusted text as claims, so the difference is caught. After #9399 each run posts a new comment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
The Jira comment listing collected every page in a shell variable and passed it to jq as an argument, which overflows the argument size limit on a long issue. Pages now go to a temporary file that jq reads. The GitLab forge skill shows how to page through every note, matching step 2e's "all pages", and the warning for a result with no named open cause now says that instead of reporting dropped causes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
…ndex In jq 1.6, string rindex returns a byte offset while slices count characters, so on non-ASCII text the comment cut and the Next steps split could land in the wrong place. fullsend's default runner ships jq 1.7.1, but runner_image can be overridden and GitLab runners bring their own jq. A last_at helper now splits on the delimiter and counts characters, which behaves the same on jq 1.6, 1.7 and 1.8. A test puts multibyte text before both split points. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
…ra without total Step 2e now also reads the baseline comment's own current text: a cause it names that the state lacks, or a ruling the state contradicts, is a claim to check. That is what catches a cancelled pre-#9399 Jira run whose property still holds the previous state, and the docs say so. The schema rejects whitespace-only evidence. A triage_summary that is not an object is treated as no state instead of aborting the post. Jira paging no longer stops on a page without "total": it stops on an empty page, at total when given, or on a page shorter than its maxResults, and fails past 100 pages. TRIAGE_STATE_MAX_BYTES is read in base 10. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
…tice When the agent's comment is cut inside a fenced code block (``` or ~~~), the block stayed open and the cause lists after it rendered as code. The cut now closes it before the cut note, with room reserved within the cap. Trimming the other footers cuts the label and component reasons before the "Not applied in Jira" notice, which is kept whole where it fits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
Four GitHub re-triage cases for fullsend-ai#2043, graded by the cause_lists judge on the run's decoded triage-state-v1 marker: - 018: a comment's evidence, which holds in the code, revives a ruled-out cause; its bare claim about another ruling does not. - 019: run 2's readable lists count the six oldest of fifteen rulings in one line, as triage_state_compose condenses them; every ruling must stay in ruled_out. - 020: an unmarked triage question rules out a cause from run 1's state; the next analysis must rule it out. - 021: a legacy comment's Previous run fold holds a cause found nowhere else; it must be carried open with verified false. cause-lists-test.sh guards each case's comments, states and own repo copy and checks a correct answer and the regression for each. The README records why the trusted-baseline, GitLab and Jira paths have no case. Part of fullsend-ai#2043. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
Review of the structured-state re-triage cases (fullsend-ai#2043): - Case 019's run 2 analysis is long enough that the real triage_state_compose condenses its lists (evidence dropped, the six oldest rulings counted in one line); the seeded comments of 018-020 are its output, and cause-lists-test.sh checks each against it. - New forbidden_ruled_out judge key: phrases no ruled_out name may match. Case 021 uses it for authgw and case 018 for the revived apostrophe cause, so a cause in both lists fails. 019 and 021 also require the ValueError cause verified. - Case 021 cites fullsend v0.56.1-rc.1 for the fold shape and says what BuildUpdatedBody does: it cuts the comment's own leading marker and escapes any other. - The 019 guard reports each of its checks by name instead of crashing on drift; the test header covers 013-021; the guards name the shared python-webapp repo and reuse one set of fixture helpers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
… a re-quoted pattern forbidden_ruled_out gets tests for its AND-group rule (a ruled-out name matching every phrase of a group fails; one matching only some passes), and its failure says the cause should not be ruled out instead of a reason that is wrong for case 018. The 018 and 019 guards report a validators.py whose pattern is no longer written pattern = r"..." by name instead of crashing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
|
🤖 Finished Review · ✅ Success · Started 5:11 AM UTC · Completed 5:23 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $4.03 |
|
Risk Assessment: elevated (3/5) DetailsElevated risk driven by a large 55-file diff touching 13 protected paths and CI workflows, high git churn and regression history in core triage scripts, and scope mismatch from being stacked on prerequisite PR #2079. Previous runRisk Assessment: elevated (3/5) DetailsElevated risk driven by a large 55-file diff touching 13 protected paths and CI workflows, high git churn and regression history in core triage scripts, and scope mismatch from being stacked on prerequisite PR #2079. Previous run (2)Risk Assessment: elevated (3/5) DetailsElevated risk driven by a large 55-file diff touching 13 protected paths and CI workflows, high git churn and regression history in core triage scripts, and scope mismatch from being stacked on prerequisite PR #2079. Previous run (3)Risk Assessment: elevated (3/5) DetailsElevated risk driven by a large 55-file diff touching 13 protected paths and CI workflows, moderate-to-high git churn and regression history in core triage scripts, and scope mismatch from being stacked on prerequisite PR #2079. Previous run (4)Risk Assessment: elevated (3/5) DetailsElevated risk driven by a large 55-file diff touching 13 protected paths and CI workflows, moderate-to-high git churn and regression history in core triage scripts, and scope mismatch from being stacked on prerequisite PR #2079. |
ReviewFindingsMedium
Low
Earlier findings
Previous run<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImxvZ2ljLWVycm9yIiwiZmlsZSI6InNjcmlwdHMvbGliL3RyaWFnZS1zdGF0ZS5saWIuc2giLCJpZCI6ImZfNjkyMjdlMDkyOTIwYmU1YyIsImxpbmUiOjg4LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iO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2UtcmVzdWx0LnNjaGVtYS5qc29uIiwiaWQiOiJmX2Y3NGJmMTc2ODA3ZTBmN2IiLCJsaW5lIjoxNDMsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJjcm9zcy1yZXBvLWNvbnRyYWN0cyJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6InNjb3BlLWJ1bmRsaW5nIiwiZmlsZSI6InNjaGVtYXMvdHJpYWdlLXJlc3VsdC5zY2hlbWEuanNvbiIsImlkIjoiZl9kNDc3YmJkM2Q3Mjk2NmEyIiwibGluZSI6MTQ3LCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoiaW50ZW50LWNvaGVyZW5jZSJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImJhY2t3YXJkLWluY29tcGF0aWJsZSIsImZpbGUiOiJzY3JpcHRzL2xpYi9qaXJhLXRyaWFnZS1vcHMubGliLnNoIiwiaWQiOiJmXzQ1YmYyMDlkZTA1OTJjMmYiLCJsaW5lIjozNzQsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJjcm9zcy1yZXBvLWNvbnRyYWN0cyJ9XX0= --> ReviewFindingsMedium
Low
Next steps:
|
- open_fence compared each line with itself, not with the fence that opened the block, so a blank line ended the block and a line starting with a regex character broke the pattern. It now compares with the saved fence. - A comment that fit but left a code block open was posted as is, so the lists, footers and state marker rendered as code. The block is now closed before the lists. - A <details> block whose <summary> starts with "Previous run" in the agent's comment or a cause made the next run take the text above the state marker for a history fold and drop the state. Both are escaped. - The sufficient gate reads of triage_summary are strict again, as on main, so a summary that is not an object fails the run instead of falling back to defaults that could apply ready-to-code. - docs/triage.md: the Jira triage account needs "Edit own comments" to set the state property, and /myself takes read:jira-user or all four granular scopes. The property-write error names the permission. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
The earlier escape matched only <details> directly followed by a <summary> starting with "Previous run", so a summary behind an element, inline tags or slipped through. Escaping every <details would break the post-script's own prerequisite and split blocks, so the pattern now escapes the <summary> opener whose text starts with "Previous run" after whitespace, or inline tags, which is what makes a block a fold to step 2e. It is defined once, TRIAGE_STATE_FOLD_RE, and passed to both jq programs. docs/triage.md: the granular /myself scopes are Beta at Atlassian, and the Jira state paragraph is split where it ran on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
…s between the words The fold escape allowed whitespace, and inline tags only before the text, so "Previous run", "Previous <b>run</b>" or a numeric entity slipped through. The same separators, plus a hyphen, are now allowed between the words, and numeric entities count everywhere. The test covers those spellings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
* triage-state-v1: fix(triage): match "Previous run" fold summaries with entities or tags between the words fix(triage): escape a fold by its "Previous run" summary, in one pattern fix(triage): close an open code block, escape fake history folds
|
🤖 Finished Review · ✅ Success · Started 10:42 AM UTC · Completed 11:01 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $3.85 |
Superseded by updated review
- On the comment that carries the triage state, every <summary> opener in the agent's comment, the cause lists and the footers is escaped, so no spelling of a "Previous run" fold (an entity or tag inside a word included) can sit above the state marker. Matching each spelling was whack-a-mole. None of that text holds a <details> block of the post-script's own; neutralize, used off the state path, keeps escaping only fold summaries, so prerequisite and split blocks still render. - The lib and test comments said jq 1.6 returns byte offsets from rindex. jq before 1.8.0, 1.7.1 (the default runner image) included, does (jq #3065). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
* triage-state-v1: fix(triage): escape every summary on the state comment; fix jq range
|
🤖 Finished Review · ✅ Success · Started 7:12 PM UTC · Completed 7:23 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.94 |
- Atlassian documents the comment-property limit as 32768 characters, not bytes. The state is now measured as JSON with every non-ASCII character escaped (\uXXXX, a surrogate pair outside the BMP), which is never shorter than its character count, and kept under 30000, so it fits whether Jira counts the characters sent or an escaped serialisation. The cap is renamed TRIAGE_STATE_MAX_CHARS. The multibyte worst-case test now checks the escaped length, and the names are cut by whole characters with every cause kept. - docs/triage.md lists the OAuth scopes the property write and the expand=properties read need (write:jira-work / write:comment.property:jira, read:jira-work / read:comment.property:jira), next to the "Edit own comments" permission, and the write's error message names the scope. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
…tests by characters Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
* triage-state-v1: test(triage): check the escaped length in the cut test; name the cap tests by characters fix(triage): measure the Jira state cap on escaped JSON; list the scopes
|
🤖 Finished Review · ✅ Success · Started 4:25 AM UTC · Completed 4:39 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $3.30 |
…rinking agents/triage.md has the agent fold causes past the ninth into one "Other open candidates" entry that names them in its evidence. Shrinking an over-cap state emptied every open cause's evidence, so a large non-ASCII state silently lost those names, against the "never drops a cause" contract. That entry's evidence is now kept whole; the run still fails before posting if the state cannot fit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
* triage-state-v1: fix(triage): never empty the "Other open candidates" evidence when shrinking
|
🤖 Finished Review · ✅ Success · Started 1:18 PM UTC · Completed 1:29 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.87 |
Superseded by updated review
Summary
Part of #2043. Adds four triage re-triage eval cases (018-021) for the paths #2079's structured triage state leaves without one. Each case is graded by the existing
cause_listsjudge on the run's decodedtriage-state-v1marker. The cases and fixtures are ported from the closed #2062.Stacked on #2079. Review only the commits after 9ab6317.
This does not close #2043: the cases have not run live, and
cause_listsstays report-only until cases 007 and 013-021 have three live runs.Changes
018-retriage-revives-ruled-out: run 1's state rules out the
'+'cause (correctly) and the apostrophe cause (wrongly). A comment gives evidence the code backs for the apostrophe: the local-part class[a-zA-Z0-9._%+-]has no', andlogin_handlerdoes not catch the ValueError. The same comment says, with no evidence, that the'+'cause is real. The run must:open_causes, verified;'+'inruled_out, whether a revival is written quoted, unquoted, or as a plus address;ruled_outas well.019-retriage-keeps-condensed-rulings: run 2's state rules out fifteen causes. Its analysis is long enough that the real
triage_state_composecondenses its lists: no evidence, and the six oldest rulings counted in one line. The seeded comment is compose's output. Run 1's text names those six. Every ruling holds in the fixture code. The run'sruled_outmust keep all fifteen, none may come back open, and both open causes must be verified.020-retriage-refutation-in-question: run 1's state lists authgw stripping the email parameter as unverified. Later, an unmarked triage question rules it out on the reporter's
via=directlog lines. The run must rule authgw out. No open cause may name authgw, or name the gateway as stripping, dropping or removing the parameter. An open cause that only says batch-client bypasses the gateway passes.021-retriage-legacy-fold-cause: one legacy comment (no state) holds a
Previous runfold. It has the shapeBuildUpdatedBodyin fullsend'sinternal/sticky/sticky.gowrites at v0.56.1-rc.1, the versiongo.modpins: the comment's own leading marker is cut, any other fullsend marker is escaped, and the old text is wrapped in the history sentinels. The fold calls authgw "confirmed"; nothing else names it. With no state, step 2e rebuilds from every comment, fold copies included. So authgw must be inopen_causeswithverified: false. Dropping it, ruling it out (even beside an open copy), or marking it verified fails. The ValueError cause must be verified.eval/scripts/cause-lists-test.sh:triage_state_composeandtriage_state_marker(sourced fromscripts/lib/triage-state.lib.sh) post for its state and agent text. So no fixture can claim a rendering the post-script would not produce.input.yamland the code in the sharedpython-webapprepo itsrepo/symlink points at:o'brien@example.comand acceptsa+b@example.com.ruled_outgroup, and all fifteen rulings still hold in the code. Each check is reported by name on drift.eval/README.md: a "Re-triage coverage" section lists cases 013-021 and records why the trusted-baseline, GitLab and Jira paths have no case. Thecause_liststhreshold note in the README andeval.yamlnow names cases 007 and 013-021.Judge (
eval/triage/eval.yaml): one new key,forbidden_ruled_out. It lists phrases, or groups that must all be in one name, that noruled_outname may match. It mirrorsforbidden_openand has tests both ways. Cases 018 and 021 use it.Trade-offs
setup-fixture.shposts every seeded comment with the eval account'sGH_TOKEN, and the eval workflows have no GitHub App credentials. So every case takes step 2e's rebuild path. Covering the trusted path needs:<EVAL_ORG>-triage, installed onEVAL_ORG, with its key as a workflow secret;fixture.comments.setup-fixture.shcreates GitHub repositories and fixtures only, and the Jira state lives in a comment property no fixture can set.scripts/post-triage-test.shcovers writing the state on each tracker. Nothing exercises step 2e reading it there.Testing
bash eval/scripts/cause-lists-test.sh: all tests pass (39 judge tests, plus the fixture guards and compose checks for 013-021). Changing the fixture's condensed count line, or renaming a seeded heading, makes the guards report by name.bash eval/scripts/setup-fixture-test.sh: 14 tests, 0 failuresbash eval/lint-cases.sh triage: OKuv run --with pyyaml python eval/lint-release-cases.py: OKpre-commit run --from-ref 9ab6317a --to-ref HEAD: passed. gitlint and the DCO sign-off check pass on the commit message.eval/run-functional.shhas no dry mode and creates real fixture repos at model cost.