Skip to content

Commit 3c26883

Browse files
EslaM-XEslaM-X
andauthored
docs(acp): reconcile not_checked reason sets and separate verification axes (#130)
Documents the CG-OBS/1 vs Appendix A reason-set discrepancy as an open reconciliation item, adds three-check separation (receipt/bytes/reader authorization), and updates the fixture manifest/spec to carry the reconciliation explicitly. No silent remapping. Co-authored-by: EslaM-X <eslam@coreguard.dev>
1 parent 1d46452 commit 3c26883

3 files changed

Lines changed: 53 additions & 20 deletions

File tree

‎docs/ACP-VERIFICATION-PROFILE-V1-DRAFT.md‎

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,34 @@ Two consequences are load-bearing:
7070
- A `verified` outcome with `observed_digest = null` is invalid. Verification is a statement about bytes that were read.
7171
- A `reason` outside `not_checked` is invalid. A finding is described by `detail`; a non-event is described by a reason.
7272

73+
**Three checks that must not be collapsed:**
74+
75+
| Check | Question | Not the same as |
76+
|---|---|---|
77+
| **Receipt/record verification** | Does the record satisfy the profile/schema/binding checks it claims? | Bytes being intact |
78+
| **Bytes/integrity verification** | Do the bytes read now match the digest/bytes the record committed to? | The record being semantically valid or the described work happening |
79+
| **Reader/principal authorization** | Was this observer allowed to read/evaluate this scope at this time? | Receipt validity or byte integrity |
80+
81+
A `not_checked` caused by access refusal is an authorization/read event, not a receipt failure and not a byte-integrity failure. Implementations and profiles should name which check produced which outcome.
82+
7383
---
7484

7585
## 4. The reason set, frozen
7686

77-
`not_checked` is the one outcome whose remedy depends entirely on why, so the profile fixes the six causes that actually occur:
87+
`not_checked` is the one outcome whose remedy depends entirely on why, so the reason set is frozen. A profile MUST NOT introduce a new reason without a version bump, and MUST NOT use a free-text reason.
7888

79-
| Reason | Remedy |
80-
|---|---|
81-
| `not_attempted` | nothing to fix on the record — nobody tried |
82-
| `access_refused` | re-scope the caller, or read with another identity |
83-
| `access_revoked` | the credential is gone; obtain access again |
84-
| `outside_scope` | this verifier never claims that layer |
85-
| `unsupported_family` | a build limitation, named as one |
86-
| `schema_not_implemented` | upgrade the parser, then re-read |
87-
88-
A profile MUST NOT introduce a seventh without a version bump, and MUST NOT use a free-text reason.
89+
**Reconciliation note (open, to resolve before ACP submission/meeting):** the current draft carries two six-reason sets that must be reconciled into one normative set or an explicitly mapped pair.
90+
91+
| Set | Reasons | Where used |
92+
|---|---|---|
93+
| **CG-OBS/1 reference implementation** | `not_attempted`, `access_refused`, `access_revoked`, `outside_scope`, `unsupported_family`, `schema_not_implemented` | `packages/agent-commerce/observations.mjs`, current ledger/join implementation and tests |
94+
| **ACP compact profile text (Appendix A, wired as-is)** | `access_refused`, `unsupported_family`, `schema_not_implemented`, `outside_scope`, `provenance_not_present`, `not_yet_materialized` | Appendix A / issue #59 comment 7144044159 |
95+
96+
**Overlap:** `access_refused`, `outside_scope`, `unsupported_family`, `schema_not_implemented`.
97+
**CG-OBS/1 only:** `not_attempted`, `access_revoked`.
98+
**Appendix A only:** `provenance_not_present`, `not_yet_materialized`.
99+
100+
**Working interpretation (draft, not ratified):** `provenance_not_present` and `not_yet_materialized` describe record/provenance availability states; `not_attempted` and `access_revoked` describe observer/access lifecycle states. These may be different axes rather than competing labels. Before meeting/submission, we should publish one normative table that either (a) unifies them into one frozen set with clear definitions, or (b) splits them into two named fields (e.g. `reason` + `access_state`/`availability_state`) with no silent remapping. No implementation should guess a mapping.
89101

90102
---
91103

‎docs/AER1-ACP-INTEROP-FIXTURE.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ An implementation may publish its own observer column over the same 143 rows, jo
3232
- **No execution language** for fixture reads. Reading 143 vectors is 143 reads, not 143 runs.
3333
- **No gap-filling.** A column may only claim per-vector comparison where a per-vector verdict is actually measured. Family-level-only lines remain unclaimed.
3434
- **Widening rule.** When a per-vector kit emit lands for the remaining families, the column widens on evidence and the divergence count stays honest wherever it lands.
35+
- **Three checks, never collapsed.** Receipt/record verification, bytes/integrity verification, and reader/principal authorization are different checks. An access refusal is not a receipt failure and not a byte-integrity failure.
36+
37+
## Reason-set reconciliation (open)
38+
39+
The CG-OBS/1 reference implementation and the Appendix A compact profile text currently use different six-reason `not_checked` sets. The overlap is `access_refused`, `outside_scope`, `unsupported_family`, `schema_not_implemented`. CG-OBS/1 also has `not_attempted`, `access_revoked`; Appendix A also has `provenance_not_present`, `not_yet_materialized`. This is recorded openly in the manifest and must be reconciled before ACP submission/meeting: either one normative frozen set, or two named fields with no silent remapping.
3540

3641
## Current CoreGuard observer scope
3742

‎docs/aer1-acp-interop-fixture.json‎

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,25 @@
1919
"absent",
2020
"unresolvable_record"
2121
],
22-
"notCheckedReasons": [
23-
"access_refused",
24-
"unsupported_family",
25-
"schema_not_implemented",
26-
"outside_scope",
27-
"provenance_not_present",
28-
"not_yet_materialized"
29-
],
22+
"notCheckedReasons": {
23+
"cgObs1Reference": [
24+
"not_attempted",
25+
"access_refused",
26+
"access_revoked",
27+
"outside_scope",
28+
"unsupported_family",
29+
"schema_not_implemented"
30+
],
31+
"appendixAProfileText": [
32+
"access_refused",
33+
"unsupported_family",
34+
"schema_not_implemented",
35+
"outside_scope",
36+
"provenance_not_present",
37+
"not_yet_materialized"
38+
],
39+
"reconciliation": "Open before ACP submission/meeting: unify into one normative set or split into named fields with no silent remapping. Overlap: access_refused,outside_scope,unsupported_family,schema_not_implemented."
40+
},
3041
"runLevelOutcomesUntouched": true
3142
},
3243
"observers": [
@@ -58,7 +69,12 @@
5869
"noExecutionLanguageForFixtureReads": true,
5970
"scopeMustBePrinted": true,
6071
"wideningRule": "When a per-vector kit emit lands for remaining families, the column widens on evidence and the divergence count stays honest wherever it lands.",
61-
"comparisonRule": "An observer column may only claim per-vector comparison where that per-vector verdict is actually measured; family-level-only lines remain unclaimed."
72+
"comparisonRule": "An observer column may only claim per-vector comparison where that per-vector verdict is actually measured; family-level-only lines remain unclaimed.",
73+
"threeChecksSeparated": [
74+
"receipt_or_record_verification",
75+
"bytes_or_integrity_verification",
76+
"reader_or_principal_authorization"
77+
]
6278
},
6379
"artifacts": {
6480
"rowsJson": "docs/aer1-observation-rows.json",

0 commit comments

Comments
 (0)