Skip to content

feat: add obligation definitions to protocol#89

Open
rockaxorb13 wants to merge 1 commit into
accordproject:mainfrom
rockaxorb13:feat/obligations-model
Open

feat: add obligation definitions to protocol#89
rockaxorb13 wants to merge 1 commit into
accordproject:mainfrom
rockaxorb13:feat/obligations-model

Conversation

@rockaxorb13
Copy link
Copy Markdown
Contributor

Description

Addresses Issue #57 "Create Obligation Definitions for triggering responses".

This PR extends the protocol.cto model 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

  • Modified model/protocol.cto: Added ObligationStatus enum and concepts:
    • BaseObligation
    • PaymentObligation
    • OwnershipTransferObligation
    • EscrowReleaseObligation
    • AccessControlObligation
  • Updated TriggerResponse: Now includes an optional obligations array to emit these events.
  • Regenerated Artifacts: Ran npm run build to update openapi.json and client/typescript/apap.ts.

Verification

  • Ran npm run build successfully.
  • Verified openapi.json contains the new schema definitions (e.g., PaymentObligation).

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>
@github-actions
Copy link
Copy Markdown

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.

@github-actions github-actions Bot added the Stale label Feb 14, 2026
@rockaxorb13
Copy link
Copy Markdown
Contributor Author

rockaxorb13 commented Feb 14, 2026 via email

@github-actions github-actions Bot removed the Stale label Feb 15, 2026
@mttrbrts mttrbrts requested a review from niallroche March 1, 2026 19:49
Copy link
Copy Markdown
Contributor

@dselman dselman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions
Copy link
Copy Markdown

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.

@github-actions github-actions Bot added the Stale label Mar 27, 2026
@niallroche
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot removed the Stale label Apr 2, 2026
@github-actions
Copy link
Copy Markdown

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.

@github-actions github-actions Bot added the Stale label Apr 17, 2026
@rockaxorb13
Copy link
Copy Markdown
Contributor Author

rockaxorb13 commented Apr 17, 2026 via email

@github-actions github-actions Bot removed the Stale label Apr 18, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

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.

@github-actions github-actions Bot added the Stale label May 3, 2026
@github-actions github-actions Bot closed this May 13, 2026
@mttrbrts mttrbrts reopened this May 14, 2026
@github-actions github-actions Bot removed the Stale label May 15, 2026
@github-actions
Copy link
Copy Markdown

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.

@github-actions github-actions Bot added the Stale label May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants