From 5335a9c14ffd40d0392aa1be591db61e4d053ffb Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Mon, 23 Nov 2026 12:03:00 -0700 Subject: [PATCH] wip --- docs/spec/conformance.json | 56 +++++++++++++++++++------------------- sisi/gate.py | 2 +- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/docs/spec/conformance.json b/docs/spec/conformance.json index a1d02a3..ef11413 100644 --- a/docs/spec/conformance.json +++ b/docs/spec/conformance.json @@ -506,15 +506,15 @@ { "id": "R-5.1-1", "status": "partial", - "how": "The rung ladder, canon/floors.json and contract invariants ask for stronger evidence than a passing test", - "evidence": "canon/floors.json", + "how": "The rung ladder, the risk table's requirements (canon/risk.json: covers, invariants, independent evidence) and contract invariants ask for stronger evidence than a passing test", + "evidence": "canon/risk.json", "gap": "A check still proves only that a command exited as expected; rung is agent-asserted and correctness kinds are not distinguished in any record." }, { "id": "R-5.1-2", "status": "partial", - "how": "The rung ladder, canon/floors.json and contract invariants ask for stronger evidence than a passing test", - "evidence": "canon/floors.json", + "how": "The rung ladder, the risk table's requirements (canon/risk.json: covers, invariants, independent evidence) and contract invariants ask for stronger evidence than a passing test", + "evidence": "canon/risk.json", "gap": "A check still proves only that a command exited as expected; rung is agent-asserted and correctness kinds are not distinguished in any record." }, { @@ -527,15 +527,15 @@ { "id": "R-5.1-4", "status": "partial", - "how": "The rung ladder, canon/floors.json and contract invariants ask for stronger evidence than a passing test", - "evidence": "canon/floors.json", + "how": "The rung ladder, the risk table's requirements (canon/risk.json: covers, invariants, independent evidence) and contract invariants ask for stronger evidence than a passing test", + "evidence": "canon/risk.json", "gap": "A check still proves only that a command exited as expected; rung is agent-asserted and correctness kinds are not distinguished in any record." }, { "id": "R-5.1-5", "status": "partial", - "how": "The rung ladder, canon/floors.json and contract invariants ask for stronger evidence than a passing test", - "evidence": "canon/floors.json", + "how": "The rung ladder, the risk table's requirements (canon/risk.json: covers, invariants, independent evidence) and contract invariants ask for stronger evidence than a passing test", + "evidence": "canon/risk.json", "gap": "A check still proves only that a command exited as expected; rung is agent-asserted and correctness kinds are not distinguished in any record." }, { @@ -548,8 +548,8 @@ { "id": "R-5.1-7", "status": "partial", - "how": "The rung ladder, canon/floors.json and contract invariants ask for stronger evidence than a passing test", - "evidence": "canon/floors.json", + "how": "The rung ladder, the risk table's requirements (canon/risk.json: covers, invariants, independent evidence) and contract invariants ask for stronger evidence than a passing test", + "evidence": "canon/risk.json", "gap": "A check still proves only that a command exited as expected; rung is agent-asserted and correctness kinds are not distinguished in any record." }, { @@ -597,8 +597,8 @@ { "id": "R-5.3-1", "status": "partial", - "how": "canon/floors.json sets a minimum rung by self-declared check kind and the contract splits fast and deep tiers", - "evidence": "canon/floors.json", + "how": "canon/risk.json sets what each risk profile requires of a contract (checks with covers, invariants, an approach, independent evidence) and the contract splits fast and deep tiers", + "evidence": "canon/risk.json", "gap": "Floors compare the rung label only, so cmd true at rung 1 satisfies a floor, and no impact, likelihood, blast-radius or reversibility assessment selects the depth." }, { @@ -611,57 +611,57 @@ { "id": "R-5.3-3", "status": "partial", - "how": "canon/floors.json sets a minimum rung by self-declared check kind and the contract splits fast and deep tiers", - "evidence": "canon/floors.json", + "how": "canon/risk.json sets what each risk profile requires of a contract (checks with covers, invariants, an approach, independent evidence) and the contract splits fast and deep tiers", + "evidence": "canon/risk.json", "gap": "Floors compare the rung label only, so cmd true at rung 1 satisfies a floor, and no impact, likelihood, blast-radius or reversibility assessment selects the depth." }, { "id": "R-5.3-4", "status": "partial", - "how": "canon/floors.json sets a minimum rung by self-declared check kind and the contract splits fast and deep tiers", - "evidence": "canon/floors.json", + "how": "canon/risk.json sets what each risk profile requires of a contract (checks with covers, invariants, an approach, independent evidence) and the contract splits fast and deep tiers", + "evidence": "canon/risk.json", "gap": "Floors compare the rung label only, so cmd true at rung 1 satisfies a floor, and no impact, likelihood, blast-radius or reversibility assessment selects the depth." }, { "id": "R-5.3-5", "status": "partial", - "how": "canon/floors.json sets a minimum rung by self-declared check kind and the contract splits fast and deep tiers", - "evidence": "canon/floors.json", + "how": "canon/risk.json sets what each risk profile requires of a contract (checks with covers, invariants, an approach, independent evidence) and the contract splits fast and deep tiers", + "evidence": "canon/risk.json", "gap": "Floors compare the rung label only, so cmd true at rung 1 satisfies a floor, and no impact, likelihood, blast-radius or reversibility assessment selects the depth." }, { "id": "R-5.3-6", "status": "partial", - "how": "canon/floors.json sets a minimum rung by self-declared check kind and the contract splits fast and deep tiers", - "evidence": "canon/floors.json", + "how": "canon/risk.json sets what each risk profile requires of a contract (checks with covers, invariants, an approach, independent evidence) and the contract splits fast and deep tiers", + "evidence": "canon/risk.json", "gap": "Floors compare the rung label only, so cmd true at rung 1 satisfies a floor, and no impact, likelihood, blast-radius or reversibility assessment selects the depth." }, { "id": "R-5.3-7", "status": "partial", - "how": "canon/floors.json sets a minimum rung by self-declared check kind and the contract splits fast and deep tiers", - "evidence": "canon/floors.json", + "how": "canon/risk.json sets what each risk profile requires of a contract (checks with covers, invariants, an approach, independent evidence) and the contract splits fast and deep tiers", + "evidence": "canon/risk.json", "gap": "Floors compare the rung label only, so cmd true at rung 1 satisfies a floor, and no impact, likelihood, blast-radius or reversibility assessment selects the depth." }, { "id": "R-5.3-8", "status": "partial", - "how": "canon/floors.json sets a minimum rung by self-declared check kind and the contract splits fast and deep tiers", - "evidence": "canon/floors.json", + "how": "canon/risk.json sets what each risk profile requires of a contract (checks with covers, invariants, an approach, independent evidence) and the contract splits fast and deep tiers", + "evidence": "canon/risk.json", "gap": "Floors compare the rung label only, so cmd true at rung 1 satisfies a floor, and no impact, likelihood, blast-radius or reversibility assessment selects the depth." }, { "id": "R-5.3-9", "status": "partial", - "how": "canon/floors.json sets a minimum rung by self-declared check kind and the contract splits fast and deep tiers", - "evidence": "canon/floors.json", + "how": "canon/risk.json sets what each risk profile requires of a contract (checks with covers, invariants, an approach, independent evidence) and the contract splits fast and deep tiers", + "evidence": "canon/risk.json", "gap": "Floors compare the rung label only, so cmd true at rung 1 satisfies a floor, and no impact, likelihood, blast-radius or reversibility assessment selects the depth." }, { "id": "R-5.3-10", "status": "partial", - "how": "canon/floors.json sets a minimum rung by self-declared check kind and the contract splits fast and deep tiers", - "evidence": "canon/floors.json", + "how": "canon/risk.json sets what each risk profile requires of a contract (checks with covers, invariants, an approach, independent evidence) and the contract splits fast and deep tiers", + "evidence": "canon/risk.json", "gap": "Floors compare the rung label only, so cmd true at rung 1 satisfies a floor, and no impact, likelihood, blast-radius or reversibility assessment selects the depth." }, { diff --git a/sisi/gate.py b/sisi/gate.py index e2f0f97..2bbdfcd 100644 --- a/sisi/gate.py +++ b/sisi/gate.py @@ -331,7 +331,7 @@ def _decide(payload): own = _own_changed(sess, sid, cwd, top, attr) own_floor, own_reasons = risk.assess(own, diff_text=_diff_text(project, sess.get("head")), patterns=risk.load_patterns(project)) - claimed = c is not None and _claims_unit(sess, path) + claimed = c is not None and (attr is None or _claims_unit(sess, path)) # no transcript: every change is ours if own_floor == "trivial" and not claimed and not (c is not None and sess.get("last_unit") == c.get("id")): return stop.allow(cwd) # documentation and the like, or nothing of this session's: nothing is asked if c is not None: