Skip to content

FE-542: Criteria-review mode#37

Merged
lunelson merged 16 commits into
mainfrom
ln/fe-542-criteria-review-mode
Apr 12, 2026
Merged

FE-542: Criteria-review mode#37
lunelson merged 16 commits into
mainfrom
ln/fe-542-criteria-review-mode

Conversation

@lunelson
Copy link
Copy Markdown
Contributor

feat: criteria grounding in approved requirements and first criterion round-trip through observer persistence

Amp-Thread-ID: https://ampcode.com/threads/T-019d762a-383e-77bb-a53e-d9c8768dceaf
Co-authored-by: Amp amp@ampcode.com

docs: mark slice 10.1 done, add I97 criteria-review grounding invariant

Amp-Thread-ID: https://ampcode.com/threads/T-019d762a-383e-77bb-a53e-d9c8768dceaf
Co-authored-by: Amp amp@ampcode.com

feat: explicit criterion review state and minimal criteria closeability

Amp-Thread-ID: https://ampcode.com/threads/T-019d76c6-3181-71a8-9d32-1e546f5a0f17
Co-authored-by: Amp amp@ampcode.com

docs: traceability for slice 10.2 — criterion review state and closeability

Amp-Thread-ID: https://ampcode.com/threads/T-019d76c6-3181-71a8-9d32-1e546f5a0f17
Co-authored-by: Amp amp@ampcode.com

feat: criteria closure and completed workflow state verification

Amp-Thread-ID: https://ampcode.com/threads/T-019d76c6-3181-71a8-9d32-1e546f5a0f17
Co-authored-by: Amp amp@ampcode.com

docs: traceability for slice 10.3 — criteria closure and completed workflow state

Amp-Thread-ID: https://ampcode.com/threads/T-019d76c6-3181-71a8-9d32-1e546f5a0f17
Co-authored-by: Amp amp@ampcode.com

docs: add batch pre-scoping to ln-scope and temporary-document retirement to ln-build

Amp-Thread-ID: https://ampcode.com/threads/T-019d76c6-3181-71a8-9d32-1e546f5a0f17
Co-authored-by: Amp amp@ampcode.com

chore: retire memory/CARDS.md — all slice 10 cards built

Amp-Thread-ID: https://ampcode.com/threads/T-019d76c6-3181-71a8-9d32-1e546f5a0f17
Co-authored-by: Amp amp@ampcode.com

docs: refactor plan — unify review seam duplication

Amp-Thread-ID: https://ampcode.com/threads/T-019d76c6-3181-71a8-9d32-1e546f5a0f17
Co-authored-by: Amp amp@ampcode.com

refactor: rename review → requirementReview on structuredQuestionSchema

Amp-Thread-ID: https://ampcode.com/threads/T-019d7708-5385-70ab-bb6e-9d9d10a0632f
Co-authored-by: Amp amp@ampcode.com

refactor: extract shared getReviewStatusesOnActivePath, collapse ReviewStatus type

Amp-Thread-ID: https://ampcode.com/threads/T-019d7708-5385-70ab-bb6e-9d9d10a0632f
Co-authored-by: Amp amp@ampcode.com

refactor: extract shared getReviewFromTurn, remove per-kind extraction functions

Amp-Thread-ID: https://ampcode.com/threads/T-019d7708-5385-70ab-bb6e-9d9d10a0632f
Co-authored-by: Amp amp@ampcode.com

refactor: extract shared recordReviewFromTurnResponse, remove per-kind recording functions

Amp-Thread-ID: https://ampcode.com/threads/T-019d7708-5385-70ab-bb6e-9d9d10a0632f
Co-authored-by: Amp amp@ampcode.com

refactor: extract shared validateReviewOptionPosition in structuredQuestionSchema superRefine

Amp-Thread-ID: https://ampcode.com/threads/T-019d7708-5385-70ab-bb6e-9d9d10a0632f
Co-authored-by: Amp amp@ampcode.com

chore: retire completed review-seam refactor plan

Amp-Thread-ID: https://ampcode.com/threads/T-019d7708-5385-70ab-bb6e-9d9d10a0632f
Co-authored-by: Amp amp@ampcode.com

chore: ln-sync — update coverage counts, refresh parallelism notes after review-seam refactor

Amp-Thread-ID: https://ampcode.com/threads/T-019d7708-5385-70ab-bb6e-9d9d10a0632f
Co-authored-by: Amp amp@ampcode.com

@linear
Copy link
Copy Markdown

linear Bot commented Apr 10, 2026

FE-542 Criteria-review mode

Synthesize verification conditions from approved requirements plus earlier criteria-like signals, then drive review turns until coverage is complete.

Acceptance

  • Criteria-review presents synthesized criteria
  • Explicit review state is recorded
  • The phase closes only when approved requirements have sufficient verification coverage

Copy link
Copy Markdown
Contributor Author

lunelson commented Apr 10, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@lunelson lunelson changed the base branch from ln/fe-568-requirements-review to graphite-base/37 April 10, 2026 11:54
lunelson and others added 10 commits April 10, 2026 15:40
@lunelson lunelson force-pushed the ln/fe-542-criteria-review-mode branch from 8365103 to 3d8eb1c Compare April 10, 2026 13:40
@lunelson lunelson changed the base branch from graphite-base/37 to main April 10, 2026 13:40
@lunelson lunelson changed the title feat: criteria grounding in approved requirements and first criterion round-trip through observer persistence FE-542: Criteria-review mode Apr 10, 2026
@lunelson lunelson marked this pull request as ready for review April 12, 2026 06:29
@augmentcode
Copy link
Copy Markdown

augmentcode Bot commented Apr 12, 2026

🤖 Augment PR Summary

Summary: Adds end-to-end “criteria-review mode” after requirements close, including grounding criteria turns in approved requirements, persisting explicit criterion review state, and supporting final criteria closure.

Changes:

  • Ground criteria interviewer context in the approved requirement inventory and add tests verifying the first criteria turn stays in criteria mode and can round-trip criterion persistence.
  • Introduce criterion review metadata in the structured question schema and reuse the existing response seam to record approve/reject actions.
  • Project per-criterion reviewStatus (approved/rejected/pending) from latest active-path actions and derive criteria closeability from full review coverage.
  • Enable proposing and confirming criteria phase closure via the shared phase-close transport, and verify completed-workflow projection (no stale active phase).
  • Refactor shared review utilities (extraction/validation/recording) to support both requirement and criterion review kinds.

Technical Notes: Criteria closeability is now computed from explicit criterion review coverage; interviewer context building and DB projection paths were expanded and covered with new integration tests.

🤖 Was this summary useful? React with 👍 or 👎

Copy link
Copy Markdown

@augmentcode augmentcode Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 1 suggestion posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

Comment thread src/shared/chat.ts
)
.min(2),
review: requirementReviewSchema.optional(),
requirementReview: requirementReviewSchema.optional(),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

structuredQuestionSchema currently allows both requirementReview and criterionReview to be present on the same question, and /turns/:turnId/response will attempt to record both. Consider enforcing mutual exclusivity here to avoid unintended cross-kind review persistence if a malformed tool payload includes both fields.

Severity: medium

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

Copy link
Copy Markdown
Contributor Author

lunelson commented Apr 12, 2026

Merge activity

  • Apr 12, 12:28 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Apr 12, 12:28 PM UTC: @lunelson merged this pull request with Graphite.

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