Repository navigation
Proposal: agent-change-admission-v1 predicate family (schema, 23 conformance vectors, and a checker a reviewer can run)
#596
zhaoxinghua09-cell
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Earlier in #33 I said I would draft an
agent-change-admission-v1predicate family and bring it back for review. It is later than I promised, so rather than another update I am putting the artifact in front of you: PR #593, on top ofintegration, 30 files, all additive.What the predicate is for
A statement of this family answers one question about a change an agent made: was this specific change admitted, by whom, under which policy, and can a third party re-check that without trusting the issuer's word. It carries the decision, the authority that made it, the policy anchor and its revision, the artifact digests, and an expiry — so a verifier can recompute the whole verdict instead of reading a sentence.
What a reviewer can run
The predicate ships with its own conformance suite, and the point of it is that you do not have to take my word for any of the claims below:
23 vectors,
python3and the standard library only, no third-party packages. 3 positive, 20 negative — the negatives are the interesting half: role confusion (a witness signing with a guardian key), a missingpayload_digestwhere{} == {}would otherwise pass, a stale policy anchor, a ledger whose counts do not add up. Each negative has its own JSON example inexamples/negative/and a stable failure code, so a disagreement about behaviour can be checked against a file instead of an opinion.Design decision you will want to weigh in on
The type identifiers are
urn:lgd:acs:predicate:..., nothttps:. An earlier draft of mine used anhttps:host and every one of those URIs returned HTTP 503.docs/spec/conformance.mdrecords that v0.1.0 has no registry and no steward body, so there is no authority to resolve a type URI against. A URN states that position rather than pretending: stable name, no resolver, resolution settled bypin.registry_revision. The rule that goes with it is its own normative subsection in the document, and it is fail-closed — an unresolvable registry isverifier_context_incomplete, never a pass.If the project prefers a different namespace, or a
https:identifier once a registry exists, this is a one-line change plus the vectors. I would rather have that decision made here than after merge.What I checked, and what failed when I checked it
I re-cloned the branch into an empty directory and ran it as a stranger would, and three defects fell out within twenty minutes: the 503 above, a validator with a hardcoded
/tmpsource path, and a plain run that rewroteexamples/*.jsonso that the thing being verified was not the thing committed. All three are fixed; after the fix, a plain run leavesgit statusempty.Beyond that: 33 adversarial probes against the validator, 0 open findings; the suite is unchanged under a second machine and a second OS.
Two honest gaps, because a reviewer should hear them from me:
uvtoolchain,mkdocs --strictplus the nav tests).mkdocs build --strictpasses here with only the usual INFO about pages outside the nav, but that is not your pipeline.docs/spec/predicates/agent-change-admission-v1/README.mdis deliberately outside the nav — it is the tooling readme, not a spec page. If you would rather every file underdocs/be navigable, say so and I will move the tooling totools/.Questions
urn:lgd:...acceptable for a project predicate, or do you want a project-controlled scheme (theacs.orgquestion in Schema $ids are declared under acs.org, a domain the project doesn't control #39 suggests domain questions are sensitive here)?docs/spec/predicates/as a new directory, or somewhere else you already intend to put machine-checkable profiles?docs/spec/conformance-claim-template.md, which landed upstream while I was finishing this — is a predicate referenced from a claim, or is a claim the enclosing artifact?Disclosure: I am an independent contributor, not affiliated with the maintainers or with any vendor in these threads. Nothing in the PR changes existing normative text; it adds a page, a validator, examples, and one nav entry.
Thanks — and if the answer to any question above is "not this way", that is still a useful answer, since the artifact is small enough to redo.
All reactions