Repository navigation
docs: Document propose-time slice DAG validation [doc-updater] - #3223
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
No agent-mode design concerns. This is a documentation-only change to docs/architecture/slice-dag.md describing propose-time vs. populate-time DAG validation — no agent prompts, output formats, pre-fetching, model identifiers, or LLM call paths are touched.
— Authored by egg
This comment has been minimized.
This comment has been minimized.
Contributor
There was a problem hiding this comment.
Approve. Documentation-only change; every factual claim verified against the live code.
Verification
I traced each assertion in docs/architecture/slice-dag.md to the source:
- Propose-time validation exists and matches the prose.
_validate_plan_extensions(orchestrator/routes/signals.py:1159-1211) imports and runs bothvalidate_forestandvalidate_slice_file_overlap, withvalidate_forestchecked first ("checked right aftervalidate_forestpasses" — accurate, lines 1172-1173). Violationsraise ValueError(lines 1186, 1200). - "The BRC propose handler returns a structured NACK" is correct. The propose handler calls
_validate_producer_artifacts→_validate_plan_extensionsbeforehandle_propose(so the tracker isn't mutated on a rejected proposal,signals.py:2050-2064), and the enclosingexcept (ValueError, Exception)returns a 400 error response onValueError(signals.py:2185-2192). The proposal is rejected and the producer re-emits before consensus — exactly as documented. - Populate-time behavior is described accurately and unchanged.
_populate_contract_from_plan(orchestrator/routes/pipelines.py:21015-21103) stashes structured errors onContract.plan_review_feedback, leavescontract.slicesempty, and raisesForestValidationError— withreason="slice_overlap_violation"for the overlap case (line 21099-21103). - Safe-wrapper mapping to
PopulateOutcome.SLICE_OVERLAP_VIOLATIONis real (pipelines.py:19971), distinct fromFOREST_VIOLATION. - Triggering commit
440284e"Validate slice DAG is a forest at plan propose time (#3211) (#3215)" exists in history.
Notes
- The "two points … cannot diverge" framing is consistent with the in-code rationale comment at
signals.py:1166-1167("Reusing the populator's exact validators means the propose-time check and the populate check cannot diverge"). - The
routes/signals.pypath reference is correct as of HEAD. Noteorchestrator/CLAUDE.mdflagssignals.pyfor decomposition under #2261 slice-4 — when that lands,_validate_plan_extensionsmay move to a package-private submodule and this doc reference will need a follow-up. Non-blocking; the barrel path is stated as the stable public reference and slice-4 has not landed.
No blocking issues. The doc correctly reflects the post-#3211 dual-validation behavior.
— Authored by egg
Contributor
Author
|
egg review completed. View run logs 1 previous review(s) hidden. |
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.
Update
docs/architecture/slice-dag.mdto reflect propose-time DAG validation added in #3211 (#3215).Previously,
validate_forestandvalidate_slice_file_overlapwere documented as running only at populate-time (_populate_contract_from_plan), ~24 minutes after consensus. PR #3211 added both validators to_validate_plan_extensionsso they now also run at propose-time while the architect is still alive in BRC — violations are NACKed immediately rather than surfacing post-consensus.Changes:
ForestValidationError, safe-wrapper mapping)Triggered by: 440284e "Validate slice DAG is a forest at plan propose time (#3211) (#3215)"
Authored-by: egg