docs(pre-push-safety-net): record the provisional advisory scope for 15.2

Task 15.2 is implemented as a provisional record (commits b82b52f, d9b7aaa): one packaged scope record, one bounded Scope line per run, the artifact key and the wheel membership. Notes the dangling Requirement 5.6 citation (implemented against 3.1, 5.1, 7.1, 7.3), what must be decided before the scope takes effect, the registry that has been stale since 2026-09-13, and the reviewer suggestions left open.
This commit is contained in:
Marius Ciepluch
2026-11-23 15:02:59 +01:00
parent d9b7aaa6ac
commit 078692e903
+5 -1
View File
@@ -602,10 +602,14 @@ Preserve all completed task evidence below.
- _Frozen 2026-09-24._ `benchmarks/independent/freeze.py` verified every case with git and file reads only -- no analyzer, query or tooling: both pins present and ordered, the sink text present at the vulnerable pin (LearnPress's fix is source-side and recorded as `fix_site`; Mockoon's sink is recorded as `sink_evidence`), the fix touching the sink or its declared fix site, and SHA-256 of the sink file at both pins. Benign controls were proposed mechanically and REVIEWED by diff: the keyword filter alone let through an access-restriction, a filter check, API-token scopes, a login change and a TLS-verification option, all rejected; Ultimate Member's and alerta's controls were replaced by hand (a coding-standards reformat; a dependency-plumbing change with both sides still vulnerable). Record: `freeze-v1.json`. The guard test now requires a benign pair for every case of a frozen population. Nothing in it has been scanned; the first scan is the evaluation.
- _Boundary: Evaluation harness, corpus provenance_
- _Requirements: 8.1, 8.2_
- [ ] 15.2 Declare the v1 advisory scope as the families whose claims can be admitted
- [x] 15.2 Declare the v1 advisory scope as the families whose claims can be admitted
- **Admission requires the entailed rung.** Injection, untrusted destination and configuration entail with witnesses on the measured subjects. Access control does not: on an application that splits its route from its data access the obligation is carried, and a carried obligation corroborates by design, so shipping the family would ship silence. Output encoding, path, prototype and deserialization have not earned a place.
- Record the scope, the reason each excluded family is excluded, and what a contributor is therefore NOT told. M4 does not require every language or family to become eligible, and a published limitation is the honest form of a narrow release.
- Done when one record states the declared scope and every exclusion's reason, and the packaged advisory output names the limits it ships with.
- _Done provisional 2026-11-23 (maintainer decision: record the scope now, marked provisional until the first governed real number, valid-detection-benchmark 11.6, has been read; the dependency on 15.1 was set aside for the record only):_ one packaged record, `src/openultrasast/push/advisory-scope.json` (schema 1, status `provisional`; scope injection, untrusted destination, configuration; exclusions access control, output encoding, path, prototype, deserialization, memory, each with a reason and a `not_told` sentence), loaded by `push/advisory_scope.py` with a closed failure (an unreadable or invalid record gives `Scope: unknown. ...`, never an exception). Every advisory run prints exactly one bounded `Scope:` line beside the unchanged status line: provisional, not yet in effect, no family qualified for alerts yet, the intended scope, what is not reported as defects, and that listing a family is not a finding of safety. The artifact carries the record under `advisory_scope`. The record ships in the wheel beside `eligibility.json`. A test ties the record's status to the shipped registry: `provisional` if and only if the registry verdict is NO-GO with no enabled declaration. Docs sample updated (`docs/scanning.md`). Commits b82b52f and d9b7aaa. Tests: `tests/test_push_advisory_scope.py` (38). Gates at commit: five push modules 89 passed; ruff, format, mypy clean.
- _Requirement 5.6 cited above does not exist:_ Requirement 5 holds 5.1 to 5.5 and no 5.6 was ever in the file. Implemented against 3.1, 5.1, 7.1 and 7.3 (the artifact records scope and exclusions); the citation is left as approved.
- _Before the scope takes effect (not done here):_ (1) the loader accepts only status `provisional`, so an effective scope needs a deliberate code change with its line wording, most likely per family; (2) two of the three scope families (untrusted destination, configuration) have no declaration in the shipped registry while the excluded access control family has one, so decide whether scope entries must correspond to enabled declarations; (3) the per-exclusion `not_told` sentences reach the artifact only, not the terminal; (4) `eligibility.json` binds the code at commit b506516 (2026-09-13) and matches no binding at HEAD, so `load_registry` returns `stale` on every host with zero capabilities; regenerating it is release-milestone M5 work, not part of this task.
- _Reviewer suggestions left open:_ `tests/test_push_advisory_scope.py` exercises the loaded-scope guard for `None` only (parametrize over `None`, `str`, `dict`, `object`); the memory reason could say "evaluated on a supported population"; the 750-character pin on the `Scope:` line is asserted on the shipped line only and the worst valid record sits two characters under it.
- _Boundary: pre-push-safety-net admission, release validation_
- _Depends: 15.1_
- _Requirements: 3.1, 5.1, 5.6, 7.1_