Repository navigation
Description
Dear RecordWeb contributors,
Thank you, Nik, for the guidance on the mailing list. I revised the experiment against RWP 0.0.16 and treated it as an application-specific CaseRecord subschema rather than an RWP extension.
Fixed baseline:
- RWP 0.0.16, commit
1823691d1c4bd097e2d911354db55f9011746815 - Root CaseRecord Schema versionHash
sha256:3622a965594d5b9970f2e5c92c66f878ccfb5a972f61ac3b46ef41dbfa1116e9 - Root AssertionRecord Schema versionHash
sha256:fe06970166343fd7ca1c7c948617c7f1869d2273727a66333aa459cd7a123ef4
The application mapping is:
| Root field | Linked Records in this experiment |
|---|---|
trigger |
mandate and authorization decision |
context |
observed effects and evidence |
process |
execution Records |
decision |
criterion evaluations and work acceptance/rejection |
result |
acknowledged obligations, pending actions, and finite closure |
Specific relationships are expressed by separate Role AssertionRecords. The role-bearing Records and CaseRecord are finalized first; after the non-core predicates are published, Role AssertionRecords hard-link the specific finalized CaseRecord Version. The CaseRecord does not link those AssertionRecords through context.
Candidate discovery and authority are separate. The RecordReferrers service discussed in Issue #37 may discover finalized referrers within the target Record's namespace, but its trust section describes entries as pointers rather than evidence, and references from other namespaces are out of scope.
For application reliance, the Case proof signer must match the Case owner. An Assertion is selected only if its exact finalized Version has a verified owner proof; the verified signer/controller equals both the Assertion Record owner and assertedBy; and that DID is authorized for the exact Case Version by an authenticated policy or mandate. The Assertion proof creation time must be later than the Case proof creation time. Self-declared assertedAt is not the ordering authority.
For multiple Versions of the same Assertion Record DID, the verifier uses only the RWP parents graph and selects its unique latest finalized head. Proof time does not create version succession. Incomplete graphs, branches without a unique head, and missing heads fail closed. A successor Version may change the object and supersede its predecessor.
Separate Assertion Record DIDs are not silently treated as revisions. The validator checks each predicate's declared object type, the four singular predicate counts, and duplicate selected assertions. Conflicts among authorized separate Records fail closed. Without an explicit withdrawal/correction mechanism, an issuer error can therefore keep the Case invalid.
The maintainer reply initially mapped mandate and authorization to trigger, execution to process, observed effect and evidence to context or process, criterion evaluation and acceptance/rejection to decision, and obligation and closure to result. I followed that initial reading while retaining a placement question below.
Work outcomes (completed, denied, partial, aborted) remain values in the linked Closure Record, not RWP Version states. Each RWP Record remains a prov:Entity; execution and evaluation Records document separate prov:Activity resources.
The candidate materials include a mapping, two application subschemas, policy and simulated proof-verification fixtures, provisional predicate declarations, four projections, SHACL constraints, 32 negative cases, four resilience cases, a validator, and a hash-pinned reproduction lock. They are released at:
- immutable source release: https://github.com/trotro1/recordweb-work-closure-rwp016/releases/tag/draft-0.9
- fixed commit:
b4261971dfe37d611d5ce81ae5811c97e032a3fa - file-level SHA-256 manifest: https://github.com/trotro1/recordweb-work-closure-rwp016/blob/b4261971dfe37d611d5ce81ae5811c97e032a3fa/MANIFEST.sha256
- license allocation: https://github.com/trotro1/recordweb-work-closure-rwp016/blob/b4261971dfe37d611d5ce81ae5811c97e032a3fa/LICENSES.md
No third-party source snapshot or private correspondence is included. The release uses Apache-2.0 for software/schema/SHACL files and CC BY 4.0 for original explanatory documentation.
Local author-run result, including SHACL:
Positive projections: 4/4 passed
Negative suite: 32/32 rejected
Adversarial resilience: 4/4 passed
Important limits:
- example DIDs and hashes are illustrative and not resolvable;
- no real cryptographic proof is supplied; proof-verification results are simulated;
- the previous reviewer did not independently reproduce SHACL;
- provisional
wce:predicates are not published as resolvable declarations; - Issue Add
RecordReferrersservice: reverse lookup of RelationRecords per namespace #37 does not discover cross-namespace references under its stated scope; - conflicting authorized separate Assertion Records can block validation until corrected or withdrawn; and
- passing tests is not an RWP conformance, authority, evidence-truth, or legal-effect claim.
I would especially welcome correction on these RWP-specific points:
- Is the two-stage ordering appropriate: finalize the CaseRecord first, then use separate AssertionRecords hard-linked to that Version?
- Is requiring Case-owner proof and Assertion-owner-proof signer binding to
assertedBy, followed by Case-specific authorization, a reasonable application trust policy? - Is there a planned discovery mechanism for AssertionRecords issued in a namespace different from the Case namespace?
- For one Assertion Record DID, is selecting the unique latest finalized head exclusively from
parentsthe correct application interpretation? For corrections issued as a different Record DID, is there an intended withdrawal or supersession mechanism, or should applications fail closed on conflict? - Are the predicate-specific object-type and singular-cardinality constraints an appropriate application layer over Root AssertionRecord?
- Should authorization additionally appear in
decision, or observed effect additionally appear inresult? - Should an application SchemaRecord tied to this draft use
rwpSchemaVersion: "0.0.16", although the Root CaseRecord Schema carries"1.0"? Annex A's/schemas/rwp/1.0/record.jsonreturned HTTP 404 when checked on 2026-11-10.
If the structure is broadly consistent with the draft, I will keep it application-specific and use feedback only to refine the local subschema and validation layer.
Sincerely,
Shunjiro Ono
Independent Researcher, Japan
Activity
Jenziner commentedon Nov 10, 2026
Thanks for these details. I will answer every question with a seperate comment to track them.
7. rwpSchemaVersion and the Annex A schema URL
Thank you for checking this. The schema URL returned 404 because I had not yet finished reorganising the site. It is reachable now.
The "1.0" in the Root Schemas denotes their structure. It does not mean that RWP 1.0 has been adopted! I published and finalised them early because creating correct hashes and proofs is laborious, and I do not want to redo it for every pull request. The text and interpretation of the specification are still changing. I added a provisional-status note to Annex A, and the schemas may be republished as changed Versions when RWP 1.0 is adopted.
For your draft, I suggest you keep rwpSchemaVersion aligned with the schema you inherit from, and state the exact baseline hash as you already do. Please treat the current hashes as provisional.
Jenziner commentedon Nov 10, 2026
1. Two-stage ordering
Yes, this ordering is appropriate, and I think it is required by RWP rather than just convenient. A CaseRecord may only be finalised when all its links are hard links to finalised Versions (9.4). An AssertionRecord that refers to a specific Case Version must contain that Version's versionHash, which exists only after finalisation. If the Case linked the Assertions, the hashes would depend on each other. So the Case has to be finalised first, and the Assertions follow.
Two consequences are worth stating in your profile: a finalised Case alone does not establish that the role information is complete, and anyone may issue an AssertionRecord about a Case (10.1), so the Case-specific trust policy you describe is necessary rather than optional.
One question back to you: since each linked Record already has a record type and sits in a defined link group, what do the role assertions add beyond that? I can see the value of an attributable statement by a specific party, which RWP envisages for relationships beyond plain linking (9.1). But if the roles are largely determined by record type and link group, a simpler variant might be worth comparing. I would be interested in your reasoning.
A related open point (not specific to your profile). Your example shows a general limitation: information about an already finalised Record, such as the Assertions that refer to a specific Version, can only come into existence after finalisation. Today this information is discoverable only through a service (the referrers service discussed in #37). A service does not travel with the Record, which is a problem for custodian transfer, for example in archival use. It would be useful if the Record could carry a list of known referrers itself, outside the DID and outside what is covered by the
versionHashand the Versionproof, since this information may change later without changing the content. One possible place is an entry inmetadata.core, which is not part of theversionHashbut is covered by the unsignedrecordHash. Such a list would be a set of pointers, not evidence, and each referrer would still have to be verified independently. Open questions include who may write to the list, how its history is preserved, how it interacts with access control, and whether it belongs in the (still undefined) MigrationRecord. I intend to open a separate follow-up issue for this, so that it does not block your application profile.Jenziner commentedon Nov 10, 2026
2. Trust policy
Yes, this is a reasonable application trust policy, and you are free to tighten the requirements for your use case. RWP deliberately does not establish authority: a valid proof shows only that the key holder signed (7.7), and the verifier applies its own trust policy.
One distinction I would like to keep explicit, because it matters for how your rule should be read. In RWP, the owner of a Record is the party accountable for its content (5.2). The proof secures the integrity of a Version. It does not by itself mean that the signer is accountable for the content. These roles may be held by the same agent, but they do not have to be. A schema with signaturePolicy system allows an authorised system key to sign, and then owner is the only field that expresses accountability (5.2, 6.7.3). Similarly, assertedBy identifies the agent responsible for an assertion (10.1), which is not necessarily the signing party.
Your rule that the Case proof signer equals the Case owner, and that the Assertion signer equals both the Assertion owner and assertedBy, is therefore a stricter application-level requirement. It is legitimate for your profile, but it should be documented as such, because it excludes legitimate arrangements in which a system signs on behalf of an accountable agent. RWP itself should not be simplified in this direction, as many real-world cases would not work.
If you want to stay closer to RWP's model, an alternative would be for the policy to list which keys or systems are authorised to sign for which accountable agent, for the exact Case Version. This preserves the separation between accountability and integrity protection.
Three further suggestions:
Please also state whether your policy takes key status into account, for example via StatusAssertions (chapter 11), since RWP does not evaluate key state at signing time (7.5.2).
Jenziner commentedon Nov 10, 2026
3. Discovery of Assertions in other namespaces
There is currently no mechanism for this. The RecordReferrers service (#37) is complete only for the namespace of the target Record. References from other namespaces are out of scope, as you noted.
Why the scope is limited to one namespace
The design follows the analogy of the web. A web page can link to another site without that site ever knowing, which is why a link can later end in a 404. RWP assumes that a namespace is operated as one coherent whole: at the very least, one resolver can resolve everything in it. A service can therefore construct the references within a namespace reliably, and completeness can be a conformance requirement there.
Across namespaces, this assumption does not hold. A reference to another namespace is at best a courtesy: the referring party can inform the target namespace, but it has no influence on what the target does with that information. In addition, the other namespace may be globally registered or only locally scoped. For a local namespace, the referring party may not know what it is or how to reach it (4.4). Completeness across namespaces is therefore not achievable by design, not merely by omission.
What is planned
An optional extension is tracked in #38 (deferred). A producer that creates a RelationRecord referring to a Record in another namespace would notify the target namespace's LDN inbox, and the receiving custodian may add the reference to its referrers index after validating it. Such entries would have to be distinguishable from the namespace-complete ones. Obligation level, spam handling and the treatment of withdrawn referrers are open. Because #38 needs practical experience, I do not expect it to be actively worked on soon, and probably not for 1.0. It may become an extension later.
Consequence for your application policy
Even if implemented, this would be producer-driven and non-authoritative. I would therefore not rely on discovery for completeness. One option is to restrict the selected Assertions to the Case's namespace. Another is to name the permitted Assertion sources explicitly in the authenticated policy, so that the verifier looks there instead of discovering.
If you have a use case that needs cross-namespace Assertions, a comment on #38 would be welcome. Documented demand helps prioritise the work.
Jenziner commentedon Nov 10, 2026
4. Version selection and corrections
Selecting the head from
parentsYes. The version graph is authoritative for version succession (10.5), and an AssertionRecord cannot create or repair an edge. Using proof time only as a plausibility check and failing closed on branches or missing heads is consistent with this. Branches are permitted in RWP (6.8.4) and are resolved by a merge Version (6.8.5).
Corrections
RWP distinguishes two cases.
revokedorsuspended.revokedis final. This does not require the original issuer. RWP does not define who may issue StatusAssertions (11.7), so your authenticated policy would have to name the parties allowed to revoke Assertions for a Case, for example the Case owner.With this, an issuer error does not have to keep the Case invalid permanently: the policy excludes revoked Assertions (see the status determination in 11.8), and a new Assertion can follow. Note that StatusAssertions are discovered through the same referrers service, so the namespace limits discussed in question 3 apply.
An alternative to consider
StatusAssertions deliberately have only a root Version (11.6): a later statement is a new fact, not a correction. If you treat role assertions the same way, head selection and branch handling would not be needed. This sits in some tension with 6.7.4, depending on whether you regard a changed role assertion as a correction or as a new fact, so it is a modelling choice for you.
Jenziner commentedon Nov 10, 2026
5. Predicate-specific constraints
Yes, this is an appropriate application layer. The Root AssertionRecord permits any absolute IRI as predicate, and a subclass may restrict the permitted predicates and the kinds of subject and object (10.4). A SchemaRecord may also constrain a predicate more narrowly than its declaration, as long as it does not broaden, reverse or contradict it (10.4.2). Object-type and cardinality rules fit that.
Two points:
Also, 10.4.1 says a SchemaRecord must not permit a predicate whose semantics duplicate an applicable PROV-O predicate. Please document briefly why PROV-O predicates (for example for execution or derivation from evidence) do not express your intended semantics.
Jenziner commentedon Nov 10, 2026
6. Placement of authorization and observed effect
A Record may appear in more than one field (9.1), but I would not duplicate. It adds no information, and your validation rules would have to check several allowed fields and their consistency.
The mapping in my first reply was a first reading and I should refine it. The field descriptions in 9.1 are:
trigger: Records that triggered the Case;decision: Records documenting the decision;result: Records documenting the outcome.RWP assigns no further semantics to the field names, and the specific role of a linked Record is expressed by the Assertion.
On a literal reading, an authorization decision fits decision better than trigger, since it is a decision with a decider and an outcome, whereas the mandate is what triggers the Case. This is especially clear for the denied case. An observed effect, being what actually occurred, fits result by description, although context is also defensible where it serves as evidence for an evaluation.
Since the placement is a convention of your profile, either choice is acceptable. I would suggest placing the authorization in
decisionand the observed effect inresult, with exactly one placement per Record, and documenting the rationale in the profile. If you keep the current mapping, please document why.Jenziner commentedon Nov 10, 2026
A practical note on real hashes and proofs
Thank you for the detailed work and for your patience with the changes in the specification. One practical remark, in case you want to move from simulated to real Records.
The repository recordweb/recordweb-org contains scripts for hashing, key generation, signing and verification in the
toolsfolder (hash.js,keygen.js,sign.js,verify.js). The sources of the Root Schemas are in the same repository. You could use them to produce realversionHashvalues and proofs for your example Records.Signing is not trivial. A proof must be created by an AgentRecord, whose DID document publishes the Ed25519 verification method (7.7). This means you need an AgentRecord in a namespace and a key. For experiments, a locally scoped namespace is sufficient (4.4). It does not need to be registered in the Global Namespace Registry, but proofs then have meaning only within that local scope (16.4).
This is optional and no condition for further discussion. The scripts are a reference tool, not a normative part of RWP.
trotro1 commentedon Nov 12, 2026
Thank you very much for the detailed answers, and for opening #57. They clarify the intended RWP boundaries and change several application-level choices in my draft.
My understanding and planned revision are as follows.
I will retain the two-stage order: finalize the CaseRecord Version first, then issue AssertionRecords that hard-link that exact Version. I will state explicitly that a finalized Case alone does not establish role completeness.
I will no longer treat signer = owner =
assertedByas an RWP implication. In the application policy, accountability for a Record's content will remain withowner, and accountability for an assertion withassertedBy, while integrity may be provided by a key or system explicitly authorized to sign for that accountable agent and exact Case Version. The policy will define the reference point as finalization, use the Case hard link as the structural ordering fact, treat proof timestamps only as plausibility checks, and evaluate applicable StatusAssertions and key status. I will also examine representing the authorization policy as a hash-pinned RWP Record linked through the mandate.I will not rely on cross-namespace discovery for completeness. The authenticated policy will either restrict Assertions to the Case namespace or name the permitted external sources explicitly. I will keep [Deferred] Cross-namespace reporting of references via LDN #38 separate from this application revision.
For the same Assertion Record DID, I will retain
parents-graph head selection and use a successor Version for corrections. For separate erroneous Assertion Records, the policy will recognize authorized StatusAssertions withrevokedorsuspended, including an explicit rule for who may issue them. I will also compare an event-style variant in which each Role Assertion is a root-only new fact, analogous to a StatusAssertion, so that version-head and branch handling are unnecessary; the choice will depend on whether a changed relationship is a correction or a new fact.Predicate declarations will contain only relationship semantics and direction. Link-group placement, object type, cardinality and cross-Record invariants will remain in the application subschema and SHACL. Before any complete validation claim, the non-core predicate declarations must be published at stable, versioned, resolvable IRIs. I will also add a short comparison with potentially applicable PROV-O predicates and explain the remaining application-specific semantics.
I will revise the link-group convention to use one placement per Record:
triggercontextprocessdecisionresultrwpSchemaVersion: "1.0", inherit the exact Root Schema Version, record its baseline hash, and state that the current Root Schema hashes are provisional until RWP 1.0 is adopted.On your question about what Role Assertions add beyond record type and link group: my original reason was to make each Case-relative relationship attributable without changing the linked Record. A Record may be reusable across Cases, and broad application Record types do not always identify whether a particular link is evidence, an evaluated effect, an accepted obligation, or another relationship for that specific Case. The Assertion gives that relationship an accountable issuer and a separately verifiable lifecycle.
However, I agree that this is unnecessary when the combination of link group and a sufficiently specific Record type already determines the role unambiguously. I therefore plan to compare two application variants:
Within the attributable-relation variant, I will compare correction-style versioning with the root-only event-style approach described above.
This comparison may substantially simplify the profile. Does this distinction match the intended use of AssertionRecords in sections 9.1 and 10.1?
I will keep real Records and cryptographic proofs as a later implementation step. The
recordweb/recordweb-orgtools are helpful for that phase, but I will not present simulated fixtures as production proofs.Thank you again. I will keep the result application-specific and publish a revised draft only after the mapping and trust-policy changes are tested.
— Shunjiro Ono