Skip to content

Commit c989d59

Browse files
committed
ci: pin scoped CR-150 site identities and prove the bound gate both ways
The four docs/ci.md sentences that 48fb19d introduced (the index comparison, the exit-1 site conditions, the exit-2 manifest conditions, and how to add a bound) are replaced here by the scoped-site-identity text: the same rules now speak per (file, symbol) site identity rather than per manifest group. Naming them here is what check_doc_reverts.py requires of a commit that drops them.
1 parent b033574 commit c989d59

5 files changed

Lines changed: 36895 additions & 68 deletions

File tree

‎ci/cr150-source-bounds.yaml‎

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,31 @@
22
#
33
# Format: the restricted YAML subset the gate parses (maps, lists, flow maps).
44
# Every container-bearing site in the scanned set (scan.files + generated_files)
5-
# needs an entry keyed by (file, symbol); the gate fails on an unlisted site, a
6-
# stale entry, an op class the entry does not list, a bounded entry over a
7-
# computed reserve/resize, a codegen pin drift, or an OPEN count above its ceiling.
5+
# needs an entry grouped by (file, symbol). Each concrete occurrence is also
6+
# recorded in the companion JSON site inventory: lexical brace scope (tokenized
7+
# header + sibling ordinal), operation/type spelling and occurrence ordinal.
8+
# Lines remain diagnostics, never identity. New/missing identities fail closed,
9+
# even when their symbol and op classes already have an OPEN entry.
10+
# `site_inventory` is an optional root-relative path, defaulting to
11+
# ci/cr150-source-sites.json. Its file is required, read-only during verification
12+
# and reviewed separately; --emit-site-inventory only AUTHORS a proposed snapshot.
13+
# The existing entry rows need no scope fields or edits to retain their IDs.
14+
# The gate also fails on an unlisted/stale entry, an op class the entry does not
15+
# list, unsupported bounded growth, codegen pin drift or an OPEN ceiling excess.
816
#
917
# States
1018
# bounded bound = expression over declared fixed_inputs only (no bars,
1119
# trades, entries, decisions, history, no container size);
12-
# counted PASS(bounded). Needs lifetime, rollback,
13-
# hash_reader and tests.
20+
# counted PASS(bounded) only for the supported enforced
21+
# form: initially empty local scalar vector, every push
22+
# directly guarded by its own size() < the fixed bound,
23+
# one numeric-literal push per branch, no aliases/other
24+
# uses. reserve/assign/resize alone never enforce a cap.
25+
# Unsupported forms stay OPEN. Needs lifetime, rollback,
26+
# hash_reader and tests. Fixed inputs need an uncommented
27+
# namespace/class-scope const/constexpr integer definition
28+
# matching their required positive `value`; class inputs
29+
# must be static (an instance may override a const field).
1430
# pending-flat-memory the A-section inventory row (o1inv REPORT, `inventory`)
1531
# names the growth axis (`grows_with`); the flat-memory
1632
# implementation has not landed. OPEN, never PASS.
@@ -32,6 +48,7 @@
3248
# was marked bounded: no scanned container has a named fixed pre-bar-0 constant
3349
# in source that bounds it.
3450
schema: cr150-source-bounds/v1
51+
site_inventory: ci/cr150-source-sites.json
3552
codegen:
3653
pin: "52101f9b7b540fece4493ddc7495451b6d85fc07"
3754
pin_source: scripts/regen_corpus_cpp.sh

0 commit comments

Comments
 (0)