feat: add obligation definitions to protocol - #89
Conversation
Implements Issue accordproject#57 by adding standard Obligation types (Payment, Ownership, Escrow, Access) to protocol.cto and regenerating OpenAPI spec and docs. Signed-off-by: Aadityavardhan Singh <singhrashmi018@gmail.com>
|
This PR is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
|
Be gone, bot.
…On Sat, 14 Feb 2026, 07:50 github-actions[bot], ***@***.***> wrote:
*github-actions[bot]* left a comment (accordproject/apap#89)
<#89 (comment)>
This PR is stale because it has been open 15 days with no activity. Remove
stale label or comment or this will be closed in 10 days.
—
Reply to this email directly, view it on GitHub
<#89 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYXRV6YLBNVUHNPLZHAWYUL4L2BAXAVCNFSM6AAAAACTK47EJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTSMBQGQ3TIMZTG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
dselman
left a comment
There was a problem hiding this comment.
This requires more discussion with the legal folks in the WG and taking into account the existing Obligations defined in https://models.accordproject.org/cicero/runtime@0.2.0.html
Before we move into implementation lets create a separate CTO file with the proposed obligations and present/validate with the WG.
|
This PR is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
|
I have started a document as a basis for discussion at https://docs.google.com/document/d/15vtcLDK4ymJ17q4w4Rd3N1hCJdSZ6mlH/edit?usp=share_link&ouid=112259737190306437667&rtpof=true&sd=true |
|
This PR is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
|
Be gone, bot.
…On Fri, 17 Apr 2026, 07:52 github-actions[bot], ***@***.***> wrote:
*github-actions[bot]* left a comment (accordproject/apap#89)
<#89 (comment)>
This PR is stale because it has been open 15 days with no activity. Remove
stale label or comment or this will be closed in 10 days.
—
Reply to this email directly, view it on GitHub
<#89 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYXRV64BATPTMR4LEK74ODD4WGIOPAVCNFSM6AAAAACTK47EJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DENRUHAZDQNRUGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
This PR is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
|
This PR is stale because it has been open with no activity. Remove the stale label or comment to keep it active. Only items with maintainer engagement are auto-closed. |
|
Doing a pass on stale PRs from a GSoC-contributor angle. Flagging where this stands so it can move forward productively rather than sit under the stale bot. Unaddressed maintainer feedback
Direction has moved since this PR opened Since January, Issue #183 has developed a clearer position on how identity should be modeled: Other notes
Rebase scope is smaller than it looks
Suggested productive path while WG discussion continues Since you're still active on #204, and the blocking design question sits with the Tech WG, the highest-value work here is probably:
Points 1 and 2 are inside the PR's original scope and would let the WG conversation converge on a concrete diff rather than a proposal. |
|
Circling back: my Jul 25 comment flagged @dselman's Mar 11 change-request (put obligations in a separate CTO file, reconcile against the current model) as the outstanding blocker on this PR. It has now been ~4 months without an update from either author (@rockaxorb13) or maintainer side, and the PR remains conflicting with the current Applying the maintainer stale-PR policy (1-week grace from this nudge). If there's no author response by 2026-08-07, I'll evaluate taking this over: (a) refactor the obligation definitions into a separate CTO file per @dselman's Mar 11 request, (b) reconcile against the current @rockaxorb13 if you're still active on this and want to drive it, a quick response here (even just "still on it") pauses the takeover clock. Otherwise no reply = takeover proceeds Aug 7. EDIT (2026-08-02): Retracted, see the follow-up retraction comment. @rockaxorb13 was hospitalized during this window; the Aug 7 deadline (later tightened to Aug 3 in a subsequent amendment, also retracted) was posted without that context. No takeover clock is being enforced. Take the time you need. |
|
Amending the deadline: 2026-08-03 (Sun) instead of Aug 7. Bringing this in line with the other two stale-PR nudges this week and the maintainer directive to clear backlog faster. Same terms otherwise: a response from you pauses the clock; silence past Sunday triggers takeover with attribution via EDIT (2026-08-02): Retracted, see follow-up comment below. @rockaxorb13 was hospitalized during this window; the deadline was posted without that context. No clock is being enforced. Take the time you need. |
|
Just saw your Aug 2 update on #204: welcome back, glad you're okay. Retracting the Aug 3 takeover deadline; that was posted without the hospital context. Take the time you need. #89 is not on any critical path. Focus on #204 and any active work first; #89 can wait until you're fully back on your feet, whenever that is. If you decide you don't want to drive #89 to landing, a note here works and someone can pick it up down the line. No clock either way. |
|
Thank you so much!! And yes after I finish my work there, with the template retrieval I definitely will get back to this. |
Description
Addresses Issue #57 "Create Obligation Definitions for triggering responses".
This PR extends the
protocol.ctomodel to include standardized definitions for legal obligations. This standardizes the output of contract triggers, allowing external systems (like Banking APIs or Distributed Ledgers) to programmatically understand required actions (payments, transfers, etc.).Changes
model/protocol.cto: AddedObligationStatusenum and concepts:BaseObligationPaymentObligationOwnershipTransferObligationEscrowReleaseObligationAccessControlObligationTriggerResponse: Now includes an optionalobligationsarray to emit these events.npm run buildto updateopenapi.jsonandclient/typescript/apap.ts.Verification
npm run buildsuccessfully.openapi.jsoncontains the new schema definitions (e.g.,PaymentObligation).