Skip to content

Commit ad2852d

Browse files
docs: changelog entry for the conformance extraction
README needs no change: it documents gate behaviour rather than module structure, names no moved symbol, and behaviour is unchanged by design. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 944ab6d commit ad2852d

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22
33
## Unreleased
44

5+
### Refactor
6+
7+
- **conformance**: extract the four generation safety gates out of
8+
`code_generator_main` into a new `pdd.conformance` package (`gate_errors`,
9+
`directives`, `surface`, `test_churn`, `interface_check`,
10+
`declared_surface`), taking `code_generator_main.py` from 5,879 to 2,033
11+
lines. Behaviour is unchanged: every definition moved as an exact source
12+
slice, and all 91 moved symbols are re-exported from
13+
`pdd.code_generator_main` using the redundant-alias form, so existing
14+
`from pdd.code_generator_main import ...` call sites keep resolving.
15+
`sync_main`, `sync_orchestration`, `one_session_sync`, `cmd_test_main` and
16+
`agentic_test_generate` can now catch `ArchitectureConformanceError`,
17+
`PublicSurfaceRegressionError`, `TestChurnError` and `ProseOutputError`
18+
from `pdd.conformance.gate_errors` without importing the generation
19+
pipeline. Pinned by user story `pdd_generation_gates_preserved`, whose
20+
Non-Oracle excludes PDD's internal module organisation.
21+
522
### Feat
623

724
- **test**: add `pdd test --from-story <story>` to compile a story's sibling

0 commit comments

Comments
 (0)