Skip to content

💫 Toolkit to help you get started with SDD or any other process!

fix(agent-context): recurse for nested plans in Python mtime fallback (#3757)

Quratulain-bilal81d5cdbbf2c9
diff --git a/tests/extensions/test_update_agent_context_python_parity.py b/tests/extensions/test_update_agent_context_python_parity.py
index 36e7fd455..06015bbdc 100644
--- a/tests/extensions/test_update_agent_context_python_parity.py
+++ b/tests/extensions/test_update_agent_context_python_parity.py
@@ -222,32 +222,6 @@ def test_python_custom_markers_matching_bash(tmp_path: Path) -> None:
assert "old" not in content
-@requires_posix_bash
-def test_python_blank_markers_use_defaults_matching_bash(tmp_path: Path) -> None:
- # Regression: with blank markers (config relying on the built-in defaults),
- # the Bash port must fall back to DEFAULT_START/END, matching the Python and
- # PowerShell ports. Previously the Bash config-parser transport dropped the
- # trailing empty marker lines under $(...) command substitution, tripping the
- # "malformed config parser output" guard so the default-marker substitution
- # became unreachable and the context file was never updated.
- markers = {"start": "", "end": ""}
- repo_a, repo_b = twin_projects(
- tmp_path, context_file="AGENTS.md", context_markers=markers
- )
- add_plan(repo_a)
- add_plan(repo_b)
-
- bash = run_bash(repo_a)
- py = run_python(repo_b)
-
- assert_parity(bash, py, repo_a, repo_b)
- content = (repo_b / "AGENTS.md").read_bytes()
- assert content == (repo_a / "AGENTS.md").read_bytes()
- assert b"<!-- SPECKIT START -->" in content
- assert b"<!-- SPECKIT END -->" in content
- assert b"at specs/001-demo/plan.md" in content
-
-
@requires_posix_bash
def test_python_multiple_context_files_dedup_matching_bash(tmp_path: Path) -> None:
files = ["AGENTS.md", "docs/CONTEXT.md", "AGENTS.md"]