Skip to content
cccskills
FreePublished on GitHub

codex-ocapn-correspondence

Maps the 18 OCapN/CapTP/E-rights patterns reinvented piecemeal across codex-rs to their canonical Spritely/Goblins equivalents and the hermes-* bridge skills that formalize each correspondence. Use when auditing capability architecture in codex-rs, planning a Hoot/Goblins port, or reasoning about which E-rights primitive a codex-rs module implicitly implements.

The English summary is being prepared. Showing the original description.

See how to install

Files included (2)

  • SKILL.md6.1 KB
  • CONCOMITANT_SKILLS.md3.4 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Codex-rs ↔ OCapN Correspondence Map

codex-rs reconstructs nearly the complete OCapN/CapTP/E-rights architecture piecemeal in Rust. This skill documents the 18-pattern correspondence and organizes them into six families.

Six Families

1. Core E/CapTP

#Patterncodex-rs LocationOCapN Canonicalhermes-* Bridge
1Swiss Numberswindows-sandbox-rs/src/cap.rs — random session IDsUnguessable designators for capability addressinghermes-cred-as-sturdy
2Eventual-Sendcodex-rs/core — async message dispatch between threadsE.send() / promise pipelininghermes-goblins-bridge
3Promise Pipelining (implicit)exec/mod.rs — chained async operations on pending resultsPipelining messages to unresolved promiseshermes-goblins-bridge
4Near/Far Transparencycodex-rs/core — same API for local exec vs sandbox callsNear refs (same vat) vs far refs (cross-vat) behave identicallyhermes-net-as-cap
5Sturdy Referencescore/thread_fork_resume — resumable thread state persisted to diskLong-lived, serializable capability referenceshermes-cred-as-sturdy

2. Rights Amplification

#Patterncodex-rs LocationOCapN Canonicalhermes-* Bridge
6Capability Attenuationcodex-rs/exec/src/permissions.rs — SandboxPolicy allow/deny listsWrapping a cap to restrict its authorityhermes-tool-as-cap
7Facets & Compositionprotocol/ — tool registration with scoped capabilitiesMultiple facets of a single object, each with different authorityhermes-mcp-as-sealed
8Default-Deny / POLAexec/ — sandbox starts with zero capabilities, explicitly grantsPrinciple of Least Authority as system defaulthermes-fs-as-cap

3. Lifecycle & Distributed GC

#Patterncodex-rs LocationOCapN Canonicalhermes-* Bridge
9Vat QuiescenceEphemeral sandbox threads spin down after task completionVat pausing / checkpointinghermes-session-as-snapshot
10Hierarchical Cancellationcore/ — parent task cancellation propagates to childrenVat hierarchy with cascading revocationhermes-cron-as-dataspace
11Time-Limited Capsexec/ — sandbox timeout enforcementCapabilities with expiry / TTLhermes-approval-as-revocable
12Revocationexec/ — sandbox teardown revokes all granted capsCaretaker pattern / revocable forwardershermes-approval-as-revocable

4. Confinement

#Patterncodex-rs LocationOCapN Canonicalhermes-* Bridge
13Confined VatsEphemeral threads as isolated execution contextsConfined vats with no ambient authorityhermes-mem-as-dataspace
14Membrane Proxyapp-server/ — API gateway mediating between user and sandboxMembrane wrapping all refs crossing a boundaryhermes-ctx-engine-shim
15Sealed Traitsprotocol/ — type-sealed message envelopesSealer/unsealer pairs for type-safe encapsulationhermes-mcp-as-sealed

5. Cryptographic

#Patterncodex-rs LocationOCapN Canonicalhermes-* Bridge
16Sealer/Unsealercrypto_box-style patterns in session authRights amplification via matched seal/unseal pairshermes-mcp-as-sealed
17Opaque CursorsSession IDs as opaque tokensUnguessable capability designatorshermes-cred-as-sturdy
18Swiss-Number SIDscap.rs — random 128-bit session identifiersSwiss number addressinghermes-cred-as-sturdy

6. Operational

Patterncodex-rs LocationOCapN Canonicalhermes-* Bridge
Provenance (Horton)Git-based audit trail in codex-rs sessionsHorton "who said that?" provenancehermes-acp-over-captp
Replaysession-as-snapshot — deterministic replay from logEvent sourcing / vat replayhermes-session-as-snapshot
Backpressureexec/ — bounded concurrent tool callsMailbox capacity / flow controlhermes-cron-as-dataspace
Mailbox OrderingSequential message processing per sandbox threadVat turn-based execution / E-orderhermes-goblins-bridge
Resource Budgetsexec/ — timeout + output size limitsResource-bounded capability exercisehermes-tool-as-cap

Port Thesis

A Hoot/Spritely port would collapse all 18 patterns into a single coherent system because Goblins provides these primitives as first-class abstractions:

  • Swiss numbers → built-in to CapTP addressing
  • Near/far → Goblins spawn vs <- automatically
  • Attenuation → define-facet with restricted methods
  • Confinement → vat isolation is the default
  • Sealer/unsealer → make-sealer-unsealer primitive
  • Sturdy refs → sturdy-ref with Swiss-number + location hints

The hermes-* bridge skills are the explicit formalization layer: each one maps exactly one codex-rs reinvention to its Goblins/OCapN canonical form, enabling incremental migration rather than a big-bang rewrite.

Related Skills

  • hermes-goblins-bridge — master bridge skill
  • hermes-acp-over-captp — ACP↔CapTP protocol mapping
  • hermes-* family (12 skills) — individual pattern bridges
  • goblins — Spritely Goblins distributed actor system
  • captp — CapTP wire protocol
  • guile-goblins-hoot — Goblins + Hoot WebAssembly compiler

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Model ElevenLabs voice synthesis as an ACSet schema with Unison ability handlers for typed voice operations. Use when integrating ElevenLabs TTS into category-theoretic pipelines, building typed voice synthesis workflows, or managing multi-voice narration with GF(3) conservation.

The English summary is being prepared. Showing the original description.

plurigrid/asi70Updated Jul 10, 2026

Systematic process for analyzing and modernizing legacy applications to comply with the 12-Factor App methodology. Covers code analysis, configuration externalization, dependency management, and container/Kubernetes best practices.

The English summary is being prepared. Showing the original description.

plurigrid/asi70Updated Jul 10, 2026

13c0e3

Free

Gay MCP skill at invocation 26

The English summary is being prepared. Showing the original description.

plurigrid/asi70Updated Jul 10, 2026

19d57d

Free

Gay MCP skill at invocation 5

The English summary is being prepared. Showing the original description.

plurigrid/asi70Updated Jul 10, 2026

1ea91a

Free

Gay MCP skill at invocation 27

The English summary is being prepared. Showing the original description.

plurigrid/asi70Updated Jul 10, 2026

1eab21

Free

Gay MCP skill at invocation 3

The English summary is being prepared. Showing the original description.

plurigrid/asi70Updated Jul 10, 2026

See all skills by plurigrid

Report a problem with this skill