From cb6a26d52b79b0970adb8df875d4c86bdefe8615 Mon Sep 17 00:00:00 2001 From: chitcommit <208086304+chitcommit@users.noreply.github.com> Date: Thu, 28 May 2026 15:04:50 +0000 Subject: [PATCH] feat(doctrine): distribute orchestrator directive via public doctrine seed Adds an orchestrator_directive {version, text, sha256} object to the public GET /api/v1/doctrine/seed response so the standing ORCHESTRATOR MODE directive is distributed globally (no auth, no secret). ch1tty SessionStart hooks cache .text and inject it each session, falling back to an embedded copy if the seed is unreachable. sha256 covers the exact UTF-8 bytes of .text (len=605). Co-Authored-By: Claude Opus 4.7 (1M context) --- src/index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/index.js b/src/index.js index e98fdf2..bad2df7 100755 --- a/src/index.js +++ b/src/index.js @@ -466,6 +466,16 @@ app.get("/api/v1/doctrine/seed", (c) => { recall_memory: "POST /api/v1/memory/recall", doctrine_seed: "GET /api/v1/doctrine/seed", }, + + // Standing orchestrator-mode directive, distributed globally via the public + // doctrine seed. Consumers (e.g. ch1tty SessionStart hooks) cache .text and + // inject it each session. sha256 covers the exact UTF-8 bytes of .text. + orchestrator_directive: { + version: "1.0.0", + sha256: + "3c82749eccce0420fe2effd0e4a3279d3499a7a334c2a5b578f75ec00cdb9d86", + text: "ORCHESTRATOR MODE (binding): You are the brain/manager/strategist/evaluator, not the worker. Delegate workstreams to subagents / ch1tty cast+alchemist / orchestrator MCP / ChittyConnect rather than hand-coding serially. Spin plates, don't spin yourself. Persist taskboard + workstream state to durable backends (ChittyTasks Neon queue or Notion), never session-local only. For multi-step efforts that must survive a crash, register a remote /schedule routine that reclaims from the durable board. Use /reclaim for orphan tasks. Before doing anything yourself, ask which agent/system/durable store owns it.", + }, }); });