Skip to content

Commit ab12325

Browse files
EslaM-XEslaM-X
andauthored
docs(acp): record two-field not_checked direction, no silent remapping (#131)
Captures thread direction: observer/access and record/provenance axes as two named fields; Appendix A remains wired as-is pending final field names/schema. Co-authored-by: EslaM-X <eslam@coreguard.dev>
1 parent 3c26883 commit ab12325

3 files changed

Lines changed: 19 additions & 12 deletions

File tree

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

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,16 @@ A `not_checked` caused by access refusal is an authorization/read event, not a r
8686

8787
`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.
8888

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.
89+
**Reconciliation direction (from thread, draft — not ratified):** the two six-reason sets are not vocabulary drift; they answer different questions. The direction is **two named fields, no silent remapping** (per [zambodotdev, issue #59 comment 7146471149](https://github.com/coreguard-global/CoreGuard/issues/59#issuecomment-7146471149)). Appendix A remains wired as-is while the field split is drafted.
9090

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 |
91+
| Axis | Proposed field | Reasons | Question it answers |
92+
|---|---|---|---|
93+
| **Observer/access lifecycle** | `observer_reason` (draft name) | `not_attempted`, `access_refused`, `access_revoked`, `outside_scope`, `unsupported_family`, `schema_not_implemented` | Did the observer run the check, and if not, why from the observer/access side? |
94+
| **Record/provenance availability** | `record_reason` (draft name) | `provenance_not_present`, `not_yet_materialized` | Did the record/provenance exist in a checkable form? |
9595

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`.
96+
**Overlap in current text:** `access_refused`, `outside_scope`, `unsupported_family`, `schema_not_implemented` appear in both source texts; in the two-field model they belong to the observer/access axis. A consumer reading only one axis must still get an honest answer. One normative set would make the second axis borrow labels — silent remapping with better presentation — so it is rejected as the direction.
9997

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.
98+
**Still open (field naming/final schema):** exact field names, whether `record_reason` is required/optional when the observer axis explains the non-check, and how existing CG-OBS/1 events map forward without breaking pinned rows. No implementation should guess a mapping.
10199

102100
---
103101

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,16 @@ An implementation may publish its own observer column over the same 143 rows, jo
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.
3535
- **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.
3636

37-
## Reason-set reconciliation (open)
37+
## Reason-set reconciliation (draft direction)
3838

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.
39+
The CG-OBS/1 reference implementation and the Appendix A compact profile text currently use different six-reason `not_checked` sets. They are not vocabulary drift — they answer different questions. The thread direction is **two named fields, no silent remapping** (observer/access axis + record/provenance axis). Appendix A remains wired as-is while field names and schema are finalized.
40+
41+
| Axis | Draft field | Reasons |
42+
|---|---|---|
43+
| Observer/access lifecycle | `observer_reason` (draft name) | `not_attempted`, `access_refused`, `access_revoked`, `outside_scope`, `unsupported_family`, `schema_not_implemented` |
44+
| Record/provenance availability | `record_reason` (draft name) | `provenance_not_present`, `not_yet_materialized` |
45+
46+
One normative set would make the second axis borrow labels (silent remapping), so it is rejected as the direction. Exact field names and forward mapping for existing CG-OBS/1 rows remain open.
4047

4148
## Current CoreGuard observer scope
4249

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
"provenance_not_present",
3737
"not_yet_materialized"
3838
],
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."
39+
"reconciliation": "Direction (thread, draft): two named fields, no silent remapping. Observer/access axis: not_attempted,access_refused,access_revoked,outside_scope,unsupported_family,schema_not_implemented. Record/provenance axis: provenance_not_present,not_yet_materialized. Appendix A remains wired as-is until field names/schema are finalized.",
40+
"direction": "two_named_fields_no_silent_remapping",
41+
"directionSource": "https://github.com/coreguard-global/CoreGuard/issues/59#issuecomment-7146471149"
4042
},
4143
"runLevelOutcomesUntouched": true
4244
},

0 commit comments

Comments
 (0)