feat(cpp-object-oriented-modular-refactoring): step 0 - coding-style-agent-contract

This commit is contained in:
KOKO\Mimi
2026-08-16 03:10:54 +09:00
parent 2ab2e0c641
commit cd2b0afc6d
2 changed files with 22 additions and 0 deletions
+5
View File
@@ -21,6 +21,11 @@ Mission:
Skill references:
- Use $fesa-cpp-msvc-tdd when writing C++17/MSVC tests first, verifying RED failures, implementing minimal solver code, registering CMake/CTest targets, running validation, or preparing implementation reports.
Mandatory global input:
- Before every C++ implementation Step, read docs/CODINGSTYLE.md as a mandatory global
input and apply it to production and test code.
- Doxygen coverage applies only to production code.
Mandatory Harness reading:
- Read .agents/skills/harness/SKILL.md, docs/HARNESS.md, docs/HARNESS_WORKFLOW.md, and
.codex/hooks.json before executing a Harness Step; inspect the relevant phase indexes and
@@ -302,6 +302,23 @@ def test_implementation_steps_keep_final_comparison_in_a_final_gate():
assert "reference-comparison.md" in text, path
def test_p_agent_001_implementation_agent_reads_coding_style_before_cpp_steps():
parsed = tomllib.loads(read(AGENT_DIR / "implementation-agent.toml"))
instructions = parsed["developer_instructions"]
section_match = re.search(
r"Mandatory global input:\n(?P<section>.*?)(?=\n[A-Z][^\n]+:\n)",
instructions,
re.DOTALL,
)
assert section_match is not None
section = section_match.group("section")
assert "Before every C++ implementation Step" in section
assert "read docs/CODINGSTYLE.md" in section
assert "apply it to production and test code" in section
assert "Doxygen coverage applies only to production code" in section
def test_agent_hierarchy_is_explicit():
coordinator = read(AGENT_DIR / "coordinator-agent.toml").lower()
assert "main agent" in coordinator