Skip to content

Implement clarify-gate pattern#26

Merged
sigent-ai-dev merged 1 commit into
mainfrom
feature/8-clarify-gate
May 21, 2026
Merged

Implement clarify-gate pattern#26
sigent-ai-dev merged 1 commit into
mainfrom
feature/8-clarify-gate

Conversation

@sigent-ai-dev

Copy link
Copy Markdown
Owner

Summary

Implements the clarify-gate pattern — structured CLR-NNN questions that persist across phase re-runs. Supports three merge modes (merge/overwrite/skip) to control how new questions interact with existing resolutions.

Changes

  • src/adm_cli/clarify.py — raise_clr, resolve_clr, merge_clarifications, next_clr_id, get_clr_summary
  • tests/test_clarify.py — 14 tests covering all merge modes, ID sequencing, persistence
  • specs/008-clarify-gate/ — spec and checklist

Linked Issues

Closes #8

Test Plan

  • 73 tests pass
  • CLR IDs are sequential and never reused
  • Merge mode preserves existing resolutions
  • Overwrite mode discards all prior resolutions
  • Skip mode adds nothing new
  • resolve_clr marks as resolved and persists
  • Nonexistent domain/CLR raises ValueError

Checklist

  • Spec followed: specs/008-clarify-gate/spec.md
  • No secrets or credentials committed
  • Self-review completed

Adds clarify.py with:
- raise_clr() — create new CLR-NNN question (sequential IDs)
- resolve_clr() — mark a CLR as resolved
- merge_clarifications() — merge/overwrite/skip modes for phase re-runs
- next_clr_id() — compute next available ID
- get_clr_summary() — open vs resolved counts

Resolutions persist in .adm/project.json and survive phase re-runs
under default merge behaviour. Never silently discards analyst decisions.

73 tests pass (14 new for clarify).

Closes #8
@sigent-ai-dev
sigent-ai-dev merged commit a50418e into main May 21, 2026
2 checks passed
@sigent-ai-dev
sigent-ai-dev deleted the feature/8-clarify-gate branch May 21, 2026 00:44
@sigent-ai-dev
sigent-ai-dev restored the feature/8-clarify-gate branch May 21, 2026 00:56
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.

Implement clarify-gate pattern

1 participant