Skip to content

docs(clauz3): design for restricted sessions and native approvals - #1

Draft
cmungall wants to merge 1 commit into
mainfrom
cmungall/clauz3-design
Draft

cmungall wants to merge 1 commit into
mainfrom
cmungall/clauz3-design

Conversation

@cmungall

Copy link
Copy Markdown

Design only, no code: docs/clauz3/DESIGN.md.

This design covers running Orca bots and workers as restricted clauz3 sessions, and a native approvals panel in Orca. It is based on the prior research in clauz3's docs/research/orca-integration.md, on clauz3 stablyai#49 and stablyai#50, on PR stablyai#58 (chat bridges), and on upstream main at 0ac67a2e8af.

Contents:

  • Session modes: off, worktree and strict. Settings layer host → repo (orca.yaml can only tighten) → workspace → bot or dispatch, and the strictest wins. Bot Rule: lines become enforced policies, and "Who can ask" becomes policies scoped to the asker.
  • Native approvals card: field-for-field parity with the clauz3 web card. Keys are kept in the main process (keychain), and decisions carry a shown snapshot taken from the main process.
  • Topology: one approval service per Orca host. Covers remote servers, mobile and delegation.
  • Tool libraries: an inventory of what exists, what's missing, and a patch set (P1–P10) where each patch maps to an upstreamable hook. Fork sync: an upstream mirror, main as upstream plus a patch stack, and a daily rebase in CI.
  • A phased plan with acceptance criteria.

Note: upstream's .gitignore ignores docs/** except an allow-list, so this file is force-added instead of patching .gitignore.

🤖 Generated with Claude Code

Normalform-Patch: fork-clauz3-design

Co-Authored-By: Claude Opus 5.5 <[email protected]>
cmungall added a commit that referenced this pull request Nov 29, 2026
stdlib:orca moved out of clauz3 into normalform-ai/clauz3-tools-agents
(PR #1, cmungall/orca-library) as cz3tools.agents.orca, with shared
delegation contracts in cz3tools.agents.core. Restricted workers now start
with --policy .clauz3/cz3tools/agents/orca/worker-approval-policy.json.
clauz3 core is pinned to stablyai#61's (now core-only) branch through clauz3Command.

FINDINGS: new setup (gh: install, then stdlib git/filesystem), item 2, and
the 2026-11-29 dev-build re-run (85 s, one approval, worker_done
auto-approved, default chat surface).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
cmungall added a commit that referenced this pull request Nov 30, 2026
stdlib:orca moved out of clauz3 into normalform-ai/clauz3-tools-agents
(PR #1, cmungall/orca-library) as cz3tools.agents.orca, with shared
delegation contracts in cz3tools.agents.core. Restricted workers now start
with --policy .clauz3/cz3tools/agents/orca/worker-approval-policy.json.
clauz3 core is pinned to stablyai#61's (now core-only) branch through clauz3Command.

FINDINGS: new setup (gh: install, then stdlib git/filesystem), item 2, and
the 2026-11-29 dev-build re-run (85 s, one approval, worker_done
auto-approved, default chat surface).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
cmungall added a commit that referenced this pull request Nov 30, 2026
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