Repository navigation
feat(#555): detect prior assess markers — supersession + churn + conflict prompts - #558
Merged
admarble merged 3 commits intoMay 2, 2026
Conversation
…lict prompts Adds four pure parser functions for /assess to consult before posting: - findAllAssessComments: returns priors in chronological order - buildSupersessionHeader: 1-prior or N-prior header forms, null for 0 - detectChurn: warns on >=3 priors with no intervening exec phase marker - shouldPromptOnConflict: only prompts when prior PROCEED/REWRITE differs Documents the protocol in /assess SKILL.md (3-dir sync) under a new "Prior Assessment Detection" sub-section in Step 1, with an explicit read-only rule preserving the append-only audit trail. Tests cover all four AC cases plus edge cases (exec marker before/after first prior, missing actions, undefined inputs).
Closed
7 tasks
… + Output Verification QA verdict was AC_MET_BUT_NOT_A_PLUS because the new Prior Assessment Detection sub-section under Step 1 did not thread into the Persist Analysis section (where comments are constructed) or the Output Verification checklist (final integrity check). Closing the gap so a real /assess invocation reliably prepends the supersession header and emits the churn warning. 3-dir SKILL.md sync preserved.
…rker Bug surfaced during dogfood against issue #532 (the literal motivating example from the #555 issue body): findAllAssessComments returned 0 priors despite 3 real /assess comments existing. Root cause: isAssessComment matched only prose markers like "## Assess Analysis" — strings that production /assess output never contains. Real comments use the dashboard format `→ **PROCEED** — ...` with the durable HTML marker `<!-- assess:action=PROCEED -->`. The existing 17 tests passed because fixtures were synthetic (`## Assess Analysis\n\n→ ...\n\n<!-- assess:action=... -->`) — a body shape that doesn't exist in production. Fix: extend isAssessComment to also match ASSESS_ACTION_MARKER_PATTERN (`<!-- (assess|solve):action=... -->`), the durable contract written by every /assess comment regardless of prose format. Add a real-data test using verbatim #532 dashboard format (no prose header). Verified end-to-end against #532's 3 real comments: - findAllAssessComments → 3 priors (was 0) - buildSupersessionHeader → "Supersedes 3 prior assessments (most recent: 2026-04-26)" - detectChurn → isChurn=true, count=3, firstDate=2026-04-17 - shouldPromptOnConflict → correct on all 6 action permutations Full suite: 2712/2712 pass, no regressions.
admarble
deleted the
feature/555-feat-assess-detect-prior-assess-markers-supersessi
branch
May 2, 2026 03:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
findAllAssessComments,buildSupersessionHeader,detectChurn,shouldPromptOnConflict) so/assesscan consult prior<!-- assess:action=... -->markers before posting/assessSKILL.md across all three skill directoriesassess-prior-markers.test.tscovering each AC case plus edge casesAC Verification
findAllAssessCommentsreturns priors in chronological ordersrc/lib/assess-comment-parser.ts:194+ testbuildSupersessionHeader1-prior + count formsrc/lib/assess-comment-parser.ts:520+ testsdetectChurnfires only ≥3 priors + no exec markers betweensrc/lib/assess-comment-parser.ts:556+ testsshouldPromptOnConflicttrue only for PROCEED/REWRITE diffssrc/lib/assess-comment-parser.ts:597+ testsassess-prior-markers.test.tscovers all 4 enumerated cases[Unreleased] / ### AddedentryCHANGELOG.mdTest plan
npm run build— passesnpm run lint— passesnpx vitest run src/lib/— 1997 tests pass (75 files)assessnot in divergence list)Closes #555