docs(natives): audit table of every native with a kernel verdict #409
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/407-natives-audit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #407 (step 1 of epic #52; does not close #52).
What
docs/design/NATIVES.md: one row perNativeEntryofcompiler/src/backend/c/natives.trb(527), grouped by owner type or std module, withNativeTargetkind and verdictkernel/rewrite/keep. The kernel is a closed list of eight groups (K1-K8),keeprows name an edge, eachrewriterow names its TorbScript shape, the kernel groups it needs and the deciding measurement (M1-M6). Counts: kernel 155, rewrite 200, keep 172.docs/design/index.mdlists it,docs/ROADMAP.md("The kernel of natives") links it.compiler/tests/natives-audit.test.trb: fails when a manifest entry has no row, a row has no entry, a verdict/group/need/measure is not in the record's own lists, the counts drift, or anative fndeclared instd/has no manifest entry.Deviation
The issue asks for pdisc frontmatter.
.pdisc.yamlexcludesdocs/*and design records carry no front matter, so NATIVES.md follows that convention.Test
Locally with a nightly torb: the new test file (11 passed),
torb format --check,docs index --check,docs skill docs skills(no change toskills/). Gates run in CI.Seed impact: none.
native fnandnative { }(step 1 of #53) #410Approved at
cda5bc4.compiler/tests/natives-audit.test.trbchecks manifest-vs-row both ways, duplicates, target kind, allowed verdict/group/need/measure values, written counts andnative fndeclarations ofstd/without an entry. CI green on this head (gates, tier A, bootstrap, pdisc).docs/design/index.mdand ROADMAP link the record. The missing pdisc frontmatter is a justified deviation (.pdisc.yamlexcludesdocs/*, pdisc check green).Non-blocking: none.