gen.py via SDS-021 (Aligned to 2026-01-25 Plan)Use this as the exact execution guide for an agent implementing Task 16.
Replace handwritten tools/codegen/gen.py with SDS-021-generated code so that codegen tooling is fully spec-owned and deterministic.
gen.py output.Verify:
tools/codegen/gen.py (contains handwritten markers?)docs/specs/shared/sds/021-* (current SDS-021 scope)tools/codegen/templates/ and generators/)tools/tests/If any of these differ, update this packet before coding.
gen.pyModify the SDS-021 spec to include tools/codegen/gen.py as a generated artifact.
Requirements:
gen.pyUpdate the generator/templates that produce codegen tooling so tools/codegen/gen.py is emitted from SDS-021.
Requirements:
tools/codegen/gen.py.Run the spec pipeline to regenerate outputs:
1
just pipeline shared
(If the repo uses a different target for SDS-021, use that instead.)
Add or update tests to prove gen.py is spec-generated and deterministic.
Required test file:
tools/tests/test_codegen_determinism.pyMinimum assertions:
gen.py does not contain HANDWRITTEN.gen.py output is deterministic across repeated generation.Run:
1
pytest tools/tests/test_codegen_determinism.py -v
Only mark Task 16 complete after tests pass.
HANDWRITTEN markers in tools/codegen/gen.py.gen.py to generate gen.py):