Skip to content

feat(ontology): company directors, roles, delegations, delegated signatures and shareholdings - #1191

Merged
coodos merged 3 commits into
mainfrom
feat/delegation-ontologies
Oct 7, 2026
Merged

coodos merged 3 commits into
mainfrom
feat/delegation-ontologies

Conversation

@coodos

@coodos coodos commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Description of change

PR 1 of 6 for company signing delegation: the schemas. Directors hand out titled Roles; a Delegation lets a person sign for the company within the role's scopes.

  • company.json: directors[] (any one director has root power; only a director changes the list) and authorization.
  • role.json (65fd0e21-…): title, scopes[], appLimits, mayRedelegate, validity window, status.
  • delegation.json (0b2f15d8-…): assigns a Role (roleId) or narrows a parent (parentDelegationId), exactly one; revocationReason: cascade for explicit cascades.
  • delegatedSignature.json (e2736a06-…): audit record written to the company eVault by the verifying platform.
  • shareholding.json (6382a144-…): record only, no authority.
  • Scopes are ontology:<schemaId> or @<platform-eName>:<keyword>.
  • Role, Delegation, Shareholding and director changes carry authorization: the grantor's wallet signature over the record (w3ds-grant/v1), verified by the eVault in PR 3.

Next: packages/delegation (payload format, narrowing, core-scope denylist, chain evaluation), eVault write guard, verifier/SDK, wallet, admin app.

Issue Number

Type of change

  • New (a change which implements a new feature)

How the change has been tested

All five schemas compiled with Ajv 8 + formats against 10 sample records (valid role/delegation/signature/shareholding/company; rejected bad scope, both/neither of roleId/parentDelegationId, holder-less shareholding). Ontology service boots with 68 schemas and serves each new id.

Change checklist

  • I have ensured that the CI Checks pass locally
  • I have removed any unnecessary logic
  • My code is well documented
  • I have signed my commits
  • My code follows the pattern of the application
  • I have self reviewed my code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T15:36:36.314381Z e515484 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coodos

coodos commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 503729d9-8821-4527-8e85-d4b94b6fe77f
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 924afdc2a1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread services/ontology/schemas/role.json Outdated
Comment thread services/ontology/schemas/delegation.json Outdated
Comment thread services/ontology/schemas/shareholding.json Outdated
Comment thread services/ontology/schemas/company.json
Comment thread services/ontology/schemas/delegation.json
@coodos

coodos commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1179977242

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread services/ontology/schemas/delegatedSignature.json Outdated
Comment thread services/ontology/schemas/role.json Outdated
Comment thread services/ontology/schemas/delegation.json
Comment thread services/ontology/schemas/role.json Outdated
@coodos

coodos commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e515484d30

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread services/ontology/schemas/delegatedSignature.json
Comment thread services/ontology/schemas/shareholding.json
@coodos
coodos merged commit c35fb4e into main Oct 7, 2026
4 checks passed
@coodos
coodos deleted the feat/delegation-ontologies branch October 7, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant