Skip to content

feat(native): close out M3 shipped-stage ports and delete their Python fallbacks - #1077

Merged
kvlonge merged 41 commits into
mainfrom
feat/native-model-config-closeout
Oct 10, 2026
Merged

kvlonge merged 41 commits into
mainfrom
feat/native-model-config-closeout

Conversation

@kvlonge

@kvlonge kvlonge commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Why

M3 close-out: shipped stages handed work to Python; each port deletes it.

Changes

  • Native-only: templates, declaration files/scopes, @enum/@const, macro args, refs, model config/headers, cursor intrinsics, audit rendering, function headers/types, SQL test/scenario scans, independence check, path-only contexts. bridge_independent removed.
  • Rejected with help: b'', 2j, f-strings, ..., repeated keywords, lone surrogates, \N{}, missing commas; non-ASCII digits (D013; MODEL D002); comments beyond --,//,#; ints beyond i64 in cursor_start, batch_concurrency, max_microbatches, max_batches, minimum_samples, evidence_limit, lookback, batch_size (watermark-only errors first). Pre-hook errors first. CTE keys use Unicode lower-case.

Verification

Focused/Rust tests, make check-ci, make test, differentials, hygiene. Gates fail under sabotage; 0 mismatches vs old Python.

Expectation changes:

  • Goldens: 2 changed (location, help); 32 new error cases.
  • Allow-list: each gone Python fallback matched by native answers (audit_renderings +16, scenario_ctes, cursor_intrinsic_validations, declaration_contexts, relationship_scans, header_metadata_parses); restored audit/intrinsic/function/omitted-SELECT/scenario answers; python section; mocks → mocked_evaluation. From feat(native): assemble project resource facts natively behind the preview engine #1066/test(native): count remaining native-to-Python fallbacks and add golden compile outputs #1060: preview project_assembly syntax_error 3, unsupported_dialect 1, assembly rescoped, fewer template_expansions.
  • Surrogate --vars exit 0→1; '\udcff' cases dropped; D016 replaces lossy names.
  • Engine counters: python 0→1 scope/refs/headers; templates python 0→14, native 1→1; header metadata 1→2.
  • Config unit tests: native. Worst-case reference scan bound 0.5→1.5 s CPU (CI flake).
  • Gate sabotage: attachments/macro_calls (refs/config: no Python).
  • Header int key 1→zone; native typed-ref wording; parity counts ≤ i64.
  • Deleted oracle suites (templates, scan, refs, decl parsers, intrinsics, presence; function headers→5 failure cases).

…tively only; delete their Python fallbacks
…utput enter; delete the fallbacks they forced
…ed macro argument errors, honest native counts
…gine; delete the Python config builder and validators
…y model; delete the Python header metadata fallback
…lationship scans natively (baselines pending)
…dependence check; delete the Python scanners and fallbacks
@kvlonge
kvlonge enabled auto-merge October 10, 2026 00:30
@kvlonge
kvlonge added this pull request to the merge queue Oct 10, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 10, 2026
@kvlonge
kvlonge added this pull request to the merge queue Oct 10, 2026
Merged via the queue into main with commit 2cec8a4 Oct 10, 2026
43 of 44 checks passed
@kvlonge
kvlonge deleted the feat/native-model-config-closeout branch October 10, 2026 07:18
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