You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a6f3c8c
Browse filesBrowse the repository at this point in the historyBrowse files
ci: close the delta read 2's fail-open inputs on the CR-150 source gate
Guarded bounded admission now refuses, on raw text rather than a lexed
view, every spelling where a lexer and a compiler can disagree: line
splices (including whitespace, FF and VT before the newline) inside
comments and literals, raw string literals and their prefixed forms, NUL,
BOM, non-ASCII text and brace digraphs. A define naming a proof-file
identifier is refused in every scanned file after splice joining,
regardless of lexical context, and blank inventory scope members are now
malformed (exit 2) instead of an ordinary finding.
Header entries under include/ are refused bounded admission: a consumer's
prior includes and build flags are not proven, so the form cannot be
enforced from the proof files alone.
Rewords the one admission sentence added by c989d59 in docs/ci.md
(replacing its "in the participating source and fixed-input files"
wording) to state the same rule the code now enforces.
Co-Authored-By: Claude Code <[email protected]>
Copy file name to clipboardExpand all lines: docs/ci.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1239,7 +1239,7 @@ jobs does not establish a runtime fix or dismiss a sanitizer failure.
1239
1239
1240
1240
The companion inventory is an explicitly reviewed snapshot, never generated by verification. On an authorized verification host, `python3 scripts/cr150_source_gate.py --root . --emit-site-inventory` prints a proposed JSON inventory to stdout; it is an authoring command, and its exit 0 is **not a tree verdict**. Capture it with the approved file workflow, inspect the identity additions/removals, and commit the reviewed file with the source change. Initial migration must use the unchanged scanned sources of the recorded baseline. `--emit-seed` continues to print missing entry groups; it does not authorize additions to the site inventory. Regenerating an inventory to hide a mutation is not verification.
1241
1241
1242
-
`PASS(bounded)` requires source enforcement as well as metadata. Admission is intentionally limited to one initially empty local `std::vector` of scalar values, whose every growth call is a standalone `push_back`/`emplace_back` with a numeric literal argument, directly inside `if (v.size() < FixedLimit) v.push_back(1);` (or a brace block containing just that push). The guard must name that vector and exactly the entry's single fixed bound identifier. Every other use of the container is refused, including alias creation, passing it elsewhere, other mutations and shadow declarations. This small supported form avoids trying to infer arbitrary C++ control flow or conversion side effects. Member/global containers, nonempty initializers, loops inside the guarded branch, range growth, compound guards, capacity-only guards, arithmetic bound expressions and reserve/assign/resize are not admitted as bounded. In the participating source and fixed-input files, only `#pragma once`, the standard `<vector>`/`<cstddef>`/`<cstdint>` includes and the source's direct include of the fixed-input definition header are supported; macros, conditionals and other includes are refused. Unsupported shapes must remain OPEN.
1242
+
`PASS(bounded)` requires source enforcement as well as metadata. Admission is intentionally limited to one initially empty local `std::vector` of scalar values, whose every growth call is a standalone `push_back`/`emplace_back` with a numeric literal argument, directly inside `if (v.size() < FixedLimit) v.push_back(1);` (or a brace block containing just that push). The guard must name that vector and exactly the entry's single fixed bound identifier. Every other use of the container is refused, including alias creation, passing it elsewhere, other mutations and shadow declarations. This small supported form avoids trying to infer arbitrary C++ control flow or conversion side effects. Member/global containers, nonempty initializers, loops inside the guarded branch, range growth, compound guards, capacity-only guards, arithmetic bound expressions and reserve/assign/resize are not admitted as bounded. Bounded entry files must live outside `include/` because header consumers' prior includes and build flags are unproven; the entry and fixed-input definition files are checked as raw text, refusing line splices, raw string markers, NUL/BOM/non-ASCII text, brace digraphs and every directive except `#pragma once`, the standard `<vector>`/`<cstddef>`/`<cstdint>` includes and the entry's direct include of its fixed-input header, and any define naming a proof-file identifier is refused in raw text joined across splices throughout the scanned files. Unsupported shapes must remain OPEN.
1243
1243
1244
1244
Declare a fixed input with `name`, `definition`, a required positive integer `value` and `fixed_before_bar0: true`. After stripping comments and literals, the definition must contain exactly one supported namespace/class-scope `const`/`constexpr` integer declaration initialized to that value. At class scope it must be `static`; a nonstatic const field can be initialized differently for each instance. A local constant, mutable declaration, or comment that merely spells a definition is insufficient. Bound names may not carry a growth axis. The entry needs `state: bounded`, `bound`, matching `bound_inputs`, and non-placeholder `lifetime`, `rollback`, `hash_reader` and `tests`. Expression syntax accepts integers, names, `+ - * /` and `min`/`max` for validation, but enforced admission currently supports only a single fixed name. A fixed name used outside its definition and recognized size guards is refused rather than resolving shadowing with a new parser.
0 commit comments