Skip to content

PoC: schema-driven doc-sync engine (3/70, tracks #1987)#1989

Draft
Th0rgal wants to merge 1 commit into
fix/typed-interface-abi-param-guard-1962from
refactor/python-sync-engine
Draft

PoC: schema-driven doc-sync engine (3/70, tracks #1987)#1989
Th0rgal wants to merge 1 commit into
fix/typed-interface-abi-param-guard-1962from
refactor/python-sync-engine

Conversation

@Th0rgal

@Th0rgal Th0rgal commented Jun 10, 2026

Copy link
Copy Markdown
Member

Draft / proof-of-concept — split out of #1971 to keep that PR focused.

Adds a schema-driven scripts/sync_engine.py + scripts/rules/docsync.yaml + design docs, reproducing 3 of ~70 check_*.py/generate_*.py scripts byte-for-byte.

Not yet usable as a replacement — the engine must subsume all 70 and the legacy scripts must be deleted with CI switched over. Completion plan tracked in #1987.

Base is the #1971 branch (not main) so the diff shows only the engine. Retarget to main once #1971 merges.

Adds step 1 of the schema-driven consolidation effort:

- scripts/CONSOLIDATION_INVENTORY.md: table of all 63 check_*.py / generate_*.py
  scripts (53 + 10), clustered into 9 families with per-cluster counts and
  source-of-truth / assertion columns. Includes verification section showing
  prototype parity.

- scripts/consolidation_schema.md: declarative YAML schema for a generic
  'sync rule' (id, extractor, output_format, target, json_options). Maps 4
  representative scripts onto the schema and outlines a 5-phase migration path.

- scripts/sync_engine.py: working prototype engine that loads rules from YAML,
  calls the declared Python extractor, serialises the result, and writes or
  diffs the target file (--check mode).

- scripts/rules/docsync.yaml: 3 rules reproducing generate_verify_sync_spec.py,
  generate_layer2_boundary_catalog.py, and generate_verification_status.py.
  All three produce byte-for-byte identical output to the originals (verified
  with diff). No originals deleted or modified.
@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
verity Ready Ready Preview, Comment Jun 10, 2026 2:45pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor
\n### CI Failure Hints\n\nFailed jobs: `checks`\n\nCopy-paste local triage:\n```bash\nmake check\nlake build\nFOUNDRY_PROFILE=difftest forge test -vv\n```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant