Skip to content

feat(examples): company delegation demo on real eVaults with in-process wallets - #1196

Merged
coodos merged 10 commits into
mainfrom
feat/company-delegation-demo
Oct 9, 2026
Merged

coodos merged 10 commits into
mainfrom
feat/company-delegation-demo

Conversation

@coodos

@coodos coodos commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Description of change

PR 5 of 5 for company signing delegation: a one-page demonstrator, no editor. Everything is real on the local pnpm dev:core stack: eVaults provisioned per person with wallet-sdk wallets running in-process (P-256 keys, keys bound via /public-key), a keyless company eVault, real w3ds://sign requests that the demo wallet signs and POSTs to a localhost callback, and verifyDelegatedSignature reading the company eVault's history.

  • examples/company-delegation-demo (+ examples/* workspace glob): Express on :5180. The page is a slide story with SVG stick figures (cast, Acme is born, titles handed down, then one act per scenario, curtain recap); each slide runs its step for real. Raw records on /dashboard.html. Setup from demo.config.json, generated state in gitignored .demo/state.json.
  • Six scenarios: Bob signs an NDA for Acme (valid), Bob signs an invoice (refused, not delegated), Carol signs under Bob's re-delegation (valid), Bob's signature replayed as a login (refused), Mallory self-signs Acme's board and a delegation to herself (ignored), Dana revokes Bob (Bob and Carol refused).
  • pnpm --filter company-delegation-demo smoke runs setup plus all six headless and fails on any surprise.
  • Fix found by running it (fix(evault)): ManifestService used EXISTS subqueries inside RETURN and compared EXISTS results with =. Neo4j 5 (the testcontainers) accepts both; Neo4j 4.4 (docker-compose.databases.yml) does not, so /whois returned type: null for every vault locally. Rewritten as counted OPTIONAL MATCHes and plain boolean EXISTS predicates.

Issue Number

Type of change

  • New (a change which implements a new feature)
  • Fix (a change which fixes an issue)

How the change has been tested

pnpm dev:core locally (Neo4j 4.4), then pnpm --filter company-delegation-demo smoke: setup ✓ and all six scenarios end as expected (valid / not_covered / valid / reserved_payload / chain_invalid NOT_FOUND / chain_invalid REVOKED ×2). Page driven by hand at http://localhost:5180. Manifest tests still 13/13 on Neo4j 5. tsc --noEmit clean; pnpm install --frozen-lockfile passes with only the new importer added.

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

@coodos

coodos commented Oct 9, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@coderabbitai

coderabbitai Bot commented Oct 9, 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: e845f0e3-a28d-418c-9e28-c8dcd4d63fe2

  • Autofix · 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 commented Oct 9, 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-09T08:37:25.421319Z 8c2f377 New commits
ℹ️ 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.

@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: 84d76c98fa

ℹ️ 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 examples/company-delegation-demo/src/app.ts
Comment thread examples/company-delegation-demo/public/index.html Outdated

@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: f812aa9a27

ℹ️ 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 examples/company-delegation-demo/public/index.html Outdated
Comment thread examples/company-delegation-demo/src/demo.ts
Comment thread examples/company-delegation-demo/src/stack.ts

@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: 0606d2ba6c

ℹ️ 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 examples/company-delegation-demo/src/demo.ts Outdated
Comment thread examples/company-delegation-demo/src/demo.ts

@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: 3d34c7f506

ℹ️ 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 examples/company-delegation-demo/public/index.html
Comment thread examples/company-delegation-demo/src/server.ts
Comment thread examples/company-delegation-demo/src/demo.ts
Comment thread examples/company-delegation-demo/src/demo.ts

@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: 8a9352da18

ℹ️ 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 examples/company-delegation-demo/src/demo.ts
Comment thread examples/company-delegation-demo/src/demo.ts
@coodos

coodos commented Oct 9, 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: 9b6705848b

ℹ️ 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 examples/company-delegation-demo/src/stack.ts Outdated
@coodos
coodos merged commit 134c3d0 into main Oct 9, 2026
8 checks passed
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