ALZ-F01 Discovery sub-agent pattern: report phase and fetch in code

Orchestrator report phase (ADR 0013) and fetching in code (ADR 0014), with the report renderer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-05 22:13:25 +00:00
parent e22d037ab0
commit 8bb62a4a42
33 changed files with 1449 additions and 128 deletions

View File

@@ -158,7 +158,7 @@ def put(run: Run, name: str, content: Any, produced_by: str,
def get(run: Run, ref: str) -> Dict[str, Any]:
"""One stored record, by ref (<phase>/<name>), in the current run only."""
if not re.match(r"^(plan|collect|analyse|critique)/[a-z0-9][a-z0-9_.-]{0,95}$", ref or ""):
if not re.match(r"^(plan|collect|analyse|critique|report)/[a-z0-9][a-z0-9_.-]{0,95}$", ref or ""):
raise WorkspaceError(f"bad ref {ref!r}: expected <phase>/<name>, e.g. plan/scope")
path = run_dir(run) / f"{ref}.json"
if not path.exists():