本文へ移動
cccskills
無料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.

インストール方法を見る

含まれるファイル(2)

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

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

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.

日本語の概要は準備中です。原文の説明を表示しています。

plurigrid/asi672026年7月10日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

plurigrid/asi672026年7月10日 更新

13c0e3

無料

Gay MCP skill at invocation 26

日本語の概要は準備中です。原文の説明を表示しています。

plurigrid/asi672026年7月10日 更新

19d57d

無料

Gay MCP skill at invocation 5

日本語の概要は準備中です。原文の説明を表示しています。

plurigrid/asi672026年7月10日 更新

1ea91a

無料

Gay MCP skill at invocation 27

日本語の概要は準備中です。原文の説明を表示しています。

plurigrid/asi672026年7月10日 更新

1eab21

無料

Gay MCP skill at invocation 3

日本語の概要は準備中です。原文の説明を表示しています。

plurigrid/asi672026年7月10日 更新

plurigrid のスキルをすべて見る

このスキルの問題を報告する