Codex/obligation 1.0 models - #196
Open
niallroche wants to merge 2 commits into
Open
Conversation
This was referenced Aug 19, 2026
Signed-off-by: Niall Roche <niall.roche@gmail.com>
Signed-off-by: Niall Roche <niall.roche@gmail.com>
niallroche
force-pushed
the
codex/obligation-1.0-models
branch
from
August 19, 2026 21:23
d97595e to
e90c2f9
Compare
This was referenced Aug 23, 2026
mttrbrts
added a commit
that referenced
this pull request
Aug 27, 2026
Builds on the contract, runtime and obligation 1.0 models from #197, #198 and #196, which are included here unchanged as the commits beneath this one. This commit is the delta: it keeps their type inventory and reworks the structure underneath it. This is a design target, not a migration-ready change. It settles the structural questions that a stable 1.0 release needs answered, so that the answers can be reviewed together rather than one PR at a time. - Rename contract@1.0.0 to agreement@1.0.0, and model an agreement as a set of documents rather than a single instrument, so that a master agreement with schedules and confirmations is expressible. - Add party@1.0.0 defining Party and its portable PartyRef projection, so the 1.0 family has one party representation instead of three. - Address clause instances by TemplateMark instance path in a map, rather than by a static tree, since clause instances are data-driven: a list block yields one instance per element and a conditional may yield none. - Carry template data by composition in TemplateData rather than by subclassing the agreement envelope, so the envelope's type and its relationship URIs stay stable across template versions. - Hold runtime state as one revisioned document per agreement, with per-clause state keyed by the same instance paths. - Point obligation@1.0.0 at the shared PartyRef and AgreementReference in place of its local equivalents. contract@1.0.0 is deleted rather than kept alongside agreement@1.0.0. Model URLs are permanent, so it must never be published if this direction is taken: a dead namespace is worse than the rename. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: Matt Roberts <code@rbrts.uk>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes accordproject/apap#57
Introduces reviewable 1.0 obligation models based on the working-group proposal. The PR separates durable obligation state, lifecycle transition events and operational fulfilment attempts, and adds settlement and evidence as the first extension profile.
Changes
org.accordproject.obligation@1.0.0with:Obligationasset;ObligationTransitionevents;ObligationStatusandFulfilmentAttemptStatuslifecycles;PartyRefand hash-boundAgreementRefprovenance;money@1.0.0.PreciseAmount;org.accordproject.obligation.settlement@1.0.0with:runtime@0.2.0.Obligationandobligation@0.2.0unchanged for compatibility.crypto@1.0.0andmoney@1.0.0.Flags
ObligationTransitionevents.accordproject/models; APAPTriggerResponsechanges should be handled separately in the APAP repository.contract@1.0.0orruntime@1.0.0models solely for numerical alignment.Screenshots or Video
Not applicable. This PR contains Concerto model changes only.
Related Issues
Author Checklist
--signoffoption of git commit.mainfromniallroche:codex/obligation-1.0-models