feat: scoping is the first Phase, completed in conversation (iteration 9 step 2)
Some checks failed
validation / verify (push) Failing after 10s
Some checks failed
validation / verify (push) Failing after 10s
Every Execution now begins by agreeing the scope, before requirements. - A new Phase and Deliverable, produced by a scope analyst with two tools: scope_read shows what is settled and what is not; scope_set records fields with where each value came from (the request, the customer's answer, or an assumption with its reason). Code checks each value against the catalogue. - With someone present the analyst asks for what is missing; with nobody present it assumes it, visibly. With no spec it drafts one from the request. A value the customer stated in the file is changed only by their own answer. - A submission cannot leave an essential field unknown. Code writes the completed spec, the data every later Specialist reads, and the information register, from what was recorded. - The spec's status follows the Execution: under review, approved, then locked as a Baseline. A Change request starts from the delivered scope. - The requirements analyst derives from the agreed scope and no longer asks for what it settles. About 80 tests assumed requirements came first; tests/scoped.py runs scoping ahead of a test's own script, and tests about order and counts are updated. Not run with real models. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -57,12 +57,11 @@ async def test_preview_mcp_servers_follow_the_setting(tmp_path):
|
||||
|
||||
async def test_the_assembly_routes_by_default_and_runs_without_a_jev_key(tmp_path):
|
||||
"""With no Jev key the router follows its playbook on rules alone."""
|
||||
from app.adk.fake_runtime import sample_submission
|
||||
from app.adk.fake_runtime import Call
|
||||
from app.adk.runtime import NoDecider
|
||||
from app.workflows.deliverables import DeliverableKind
|
||||
|
||||
runtime = FakeAgentRuntime(
|
||||
{"requirements-analyst": [[sample_submission(DeliverableKind.REQUIREMENTS)]]}
|
||||
{"scope-analyst": [[Call("needs_input", {"questions": ["Which region?"]})]]}
|
||||
)
|
||||
|
||||
async with open_assembly(
|
||||
@@ -74,9 +73,10 @@ async def test_the_assembly_routes_by_default_and_runs_without_a_jev_key(tmp_pat
|
||||
interaction = await assembly.engine.start("Design ingestion")
|
||||
|
||||
assert isinstance(assembly.decider, NoDecider)
|
||||
# The router delegated requirements with no Orchestrator model, then the
|
||||
# decomposer (unscripted here) stopped and its question reached the user.
|
||||
assert [run.role for run in runtime.runs] == ["requirements-analyst"]
|
||||
# The router delegated the scope with no Orchestrator model, and the scope
|
||||
# analyst's question reached the user.
|
||||
assert [run.role for run in runtime.runs] == ["scope-analyst"]
|
||||
assert "scope_set" in runtime.runs[0].tools
|
||||
assert interaction.status == "awaiting_user"
|
||||
assert "reply-writer" in assembly.roles
|
||||
|
||||
|
||||
Reference in New Issue
Block a user