From cbd9e9258b2d8db540830f76422d307b3fd293fc Mon Sep 17 00:00:00 2001 From: Daniel Casper Date: Fri, 8 May 2026 15:12:27 -0500 Subject: [PATCH] chore: fully adopt xml and md hybrid [OS-076] --- docs/product/current_run.md | 46 ++++++++++++++++-------------------- engine/runtime.py | 5 ++-- tests/engine/test_cli.py | 7 +++++- tests/engine/test_runtime.py | 2 +- 4 files changed, 31 insertions(+), 29 deletions(-) diff --git a/docs/product/current_run.md b/docs/product/current_run.md index 6a89885..ea4a9bf 100644 --- a/docs/product/current_run.md +++ b/docs/product/current_run.md @@ -1,27 +1,23 @@ # Current Run -## Active Feature - -- Name: System Status (Golden Exemplar) -- Backlog ID: B-000 -- Goal: Provide a robust, end-to-end full-stack slice that proves the frontend, backend, and testing architectures are fully operational and correctly mapped. -- Operating Mode: Build - -## Linked Artifacts - -- Brief: docs/product/briefs/system_status.md -- Contract: docs/product/contracts/system_status.md -- Architecture: docs/product/architecture.md -- Launch Checklist: docs/ops/launch_checklist.md - -## Definition Of Done - -- [x] Feature brief is current and accepted. -- [x] Contract covers success, error, loading, and security-sensitive behavior. -- [x] UI states are defined for configuration and validation. -- [x] Live delivery path is implemented and tested. -- [x] Failure path is explicitly tested end-to-end in the browser. - -## Active Tasks - -Golden Exemplar is complete and verified. Factory is ready for the next feature. \ No newline at end of file + + System Status (Golden Exemplar) + Provide a robust, end-to-end full-stack slice that proves the frontend, backend, and testing architectures are fully operational and correctly mapped. + + + + docs/product/briefs/system_status.md + docs/product/contracts/system_status.md + docs/product/architecture.md + + + + Feature brief is current and accepted. + Contract covers success, error, loading, and security-sensitive behavior. + UI states are defined for configuration and validation. + Live delivery path is implemented and tested. + + + + Golden Exemplar is complete and verified. Factory is ready for the next feature. + \ No newline at end of file diff --git a/engine/runtime.py b/engine/runtime.py index dbee1a7..0bd6dcf 100644 --- a/engine/runtime.py +++ b/engine/runtime.py @@ -215,8 +215,9 @@ def run_os(user_input, flags=None): agent_queue.append("Engineering") teardown_prompt = user_input.replace("[TEARDOWN]", "").strip() current_prompt = teardown_prompt + "\n\nCRITICAL: Execute Teardown." - elif "[START:" in user_input: - match = re.search(r"\[START:\s*(.*?)\]", user_input) + elif "', user_input, re.IGNORECASE) if match: agent_queue.append(match.group(1).strip()) current_prompt = user_input diff --git a/tests/engine/test_cli.py b/tests/engine/test_cli.py index fcdf1eb..7bc0c56 100644 --- a/tests/engine/test_cli.py +++ b/tests/engine/test_cli.py @@ -4,10 +4,15 @@ def test_cli_requires_prompt(monkeypatch, capsys): + from engine.cli import main monkeypatch.setattr("engine.cli.boot", lambda: None) + + # SHIFT-LEFT: Prevent the test from reading a stale handoff.md file on disk + monkeypatch.setattr("os.path.exists", lambda path: False) + # ADD "as excinfo" HERE: with pytest.raises(SystemExit) as excinfo: - main([]) # No args + main([]) captured = capsys.readouterr() assert "Usage: python engine/cli.py 'Your prompt'" in captured.out diff --git a/tests/engine/test_runtime.py b/tests/engine/test_runtime.py index e78809b..f05dcd3 100644 --- a/tests/engine/test_runtime.py +++ b/tests/engine/test_runtime.py @@ -143,4 +143,4 @@ def call(self, agent_name, sys_prompt, user_prompt): runtime.run_os("[TEARDOWN] Remove the new feature") # 4. Test START OVERRIDE routing - runtime.run_os("[START: Design] Make it pretty") + runtime.run_os('Make it pretty')