44 lines
2.9 KiB
Markdown
44 lines
2.9 KiB
Markdown
# CONTRACT: R5.5 closing corrections and R5.6 preparation
|
|
|
|
- date: 2026-10-24 | branch `feature/rust-r5-pipeline-core` | base dead546..13db553 (R5.5 checkpoint)
|
|
- brief: owner 2026-10-24 « Clôture R5.5, corrections ciblées et préparation R5.6 » §1 to §9
|
|
|
|
## Clauses
|
|
|
|
K1. **Owner result recorded.** RUST.md §11.18, TODO, journal and registries record `pnpm e2e:sheet-assets` PASS (11 checks) as
|
|
the owner's manual run, distinct from the simulated suite; no new measurement invented, no rerun with the service key, no secret
|
|
in any file or commit.
|
|
|
|
K2. **Retry.** `Protocol` errors are final (no retry); only `Io`, `Timeout`, `HostNotFound`, `ConnectionFailed` and 5xx are
|
|
retried; negative test proves one request on a malformed answer.
|
|
|
|
K3. **DEV address.** The DEV address counts only if it is an own unicast address; a subnet broadcast is refused; tests cover
|
|
loopback, the host's unicast and broadcast addresses, a public and a malformed value.
|
|
|
|
K4. **Serde hardening, three shapes only.** `sheet` and `practitioner` as non-objects and `severity` as a non-string are refused
|
|
with `ReadFailure::Invalid` (field named) at the v3 entries `read_report_document` and `parse_envelope`; no other contract,
|
|
version or field narrowed or widened; frozen N-1 copies, goldens, fixtures and oracles untouched; every R2-R4, PDF import,
|
|
rebase and envelope suite green unchanged.
|
|
|
|
K5. **SQL characterised, not changed.** No file under `supabase/migrations` or `supabase/tests` changes; RUST.md §11.18 states the
|
|
grants, the missing hash/existence check and why it is not exploitable from an API role.
|
|
|
|
K6. **DEV stack documented, not changed.** ENVIRONMENTS.md §3.6 lists the 54321 checks and the default-key finding; no firewall,
|
|
network or Supabase configuration changed.
|
|
|
|
K7. **R5.6 plan only.** `.claude/tasks/plans/2026-10-24-rust-r5-6-fingerprint-switch.md` covers the owner's 12 points and lists the
|
|
open decisions; no fingerprint code, no seed or `sheet-ref.json` change, `documentSha256` stays `27c7383c…2660`.
|
|
|
|
K8. **Gates.** `pnpm rust:check` and `pnpm check:all` green; security PASS on the diff; fresh verifier on this contract. No merge,
|
|
no release, no deploy, no R5.6.
|
|
|
|
## Clarifications
|
|
|
|
- 2026-10-24 (closing gates round 2, K4, orchestrator, submitted to the owner at the checkpoint): at `parse_envelope` the
|
|
refusal is a `serde_json::Error` naming the field (the function's existing signature), not `ReadFailure::Invalid`; its one
|
|
caller (`session.rs`, gated) drops the archive copy as before. Changing the signature would touch `session.rs`, outside this
|
|
go. Refusing a positional report, observation or envelope is part of K4: without it the three named shapes pass unseen
|
|
under a positional parent (Zod refused those containers too).
|
|
- 2026-10-24 (FLOOR): the R5.4 clarification (`.claude/audits/**` Markdown prose quoting a suppression keyword is a
|
|
descriptive mention) applies to this contract's audit reports; nothing else is requalified.
|