fix: show the Orchestrator a validation only while it stands
After deployment guidance was reopened, the Orchestrator's context still carried the previous validation's verdicts, so it reopened the code for the same Check three times without a validation in between (evaluation run of 2026-10-07, case 01). Record that run in the iteration 6 plan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -41,7 +41,7 @@ from app.states.execution_state import (
|
||||
execution_dir,
|
||||
lessons_file,
|
||||
)
|
||||
from app.states.ledger import Ledger, LedgerRefusal
|
||||
from app.states.ledger import DeliverableStatus, Ledger, LedgerRefusal
|
||||
from app.states.lessons import collect_lesson_candidates, refusal
|
||||
from app.tools.execution import ORCHESTRATOR, OrchestratorToolbox, specialist_tools
|
||||
from app.workflows.chain import VERDICTS_FILE, validation_outcome
|
||||
@@ -515,7 +515,14 @@ def _orchestrator_context(
|
||||
pending_questions: Sequence[Mapping[str, Any]],
|
||||
notes: Sequence[str],
|
||||
) -> dict[str, Any]:
|
||||
validation = deliverables.get(DeliverableKind.VALIDATION_RESULTS.value)
|
||||
# Only a validation that still stands: once anything it judged is reopened, its
|
||||
# verdicts are about work that no longer exists.
|
||||
validation = (
|
||||
deliverables.get(DeliverableKind.VALIDATION_RESULTS.value)
|
||||
if ledger.status(DeliverableKind.VALIDATION_RESULTS)
|
||||
is DeliverableStatus.SUBMITTED
|
||||
else None
|
||||
)
|
||||
return {
|
||||
# The verdict on each Check, once validation is submitted: failed Checks are
|
||||
# faults in the code; the rest are gaps in the Target architecture.
|
||||
|
||||
Reference in New Issue
Block a user