feat: consult only the pillars a change affects directly (iteration 5 step 3)
A graded question per pillar (not at all, only indirectly, directly) picks the pillar advisors to consult again on a Revision or a Change request; the design advisor is told which, and keeps its earlier advice for the rest. As a yes or no the answer was yes for nearly every pillar of every change. A completed Execution now writes working.json with each pillar's advice and checklist review, and a Change request starts from its Baseline's, so only the pillars a change touches are consulted afresh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -17,6 +17,7 @@ from app.states.execution_state import UNASSIGNED_CASE, case_dir, execution_dir
|
||||
|
||||
MANIFEST_FILENAME = "execution.json"
|
||||
COMPLETED = "completed"
|
||||
WORKING_FILENAME = "working.json"
|
||||
_EXECUTION_ID = re.compile(r"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$")
|
||||
|
||||
|
||||
@@ -86,10 +87,21 @@ def load_baseline(
|
||||
}
|
||||
if not deliverables:
|
||||
raise BaselineError(f"baseline {execution_id} holds no Deliverables")
|
||||
working_path = folder / WORKING_FILENAME
|
||||
working: dict[str, Any] = {}
|
||||
if working_path.is_file():
|
||||
try:
|
||||
loaded = json.loads(working_path.read_text(encoding="utf-8"))
|
||||
except ValueError:
|
||||
loaded = {}
|
||||
if isinstance(loaded, dict):
|
||||
working = loaded
|
||||
return {
|
||||
"execution_id": execution_id,
|
||||
"customer_case": customer_case,
|
||||
"workflow_request": manifest.get("workflow_request", ""),
|
||||
"baseline": manifest.get("baseline"), # what it was itself changed from
|
||||
"deliverables": deliverables,
|
||||
# Working material worth starting from again, such as pillar advice.
|
||||
"working": working,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user