@prismer/runtime 2.0.7 → 2.2.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3631 -0
- package/README.md +34 -12
- package/apc/skills/FIELD-DICTIONARY.md +111 -0
- package/apc/skills/bug-reproduce/SKILL.md +150 -0
- package/apc/skills/bug-reproduce/skill.json +96 -0
- package/apc/skills/code-review/SKILL.md +198 -0
- package/apc/skills/code-review/skill.json +124 -0
- package/apc/skills/design-review/SKILL.md +122 -0
- package/apc/skills/design-review/skill.json +88 -0
- package/apc/skills/doc-sync/SKILL.md +168 -0
- package/apc/skills/doc-sync/skill.json +81 -0
- package/apc/skills/env-doctor/SKILL.md +194 -0
- package/apc/skills/env-doctor/skill.json +209 -0
- package/apc/skills/git-ops/SKILL.md +189 -0
- package/apc/skills/git-ops/skill.json +94 -0
- package/apc/skills/impact-trace/SKILL.md +168 -0
- package/apc/skills/impact-trace/skill.json +104 -0
- package/apc/skills/observability/SKILL.md +195 -0
- package/apc/skills/observability/skill.json +116 -0
- package/apc/skills/release-db-config-sync/SKILL.md +186 -0
- package/apc/skills/release-db-config-sync/skill.json +109 -0
- package/apc/skills/release-ota-promote/SKILL.md +195 -0
- package/apc/skills/release-ota-promote/skill.json +176 -0
- package/apc/skills/release-preflight/SKILL.md +174 -0
- package/apc/skills/release-preflight/skill.json +175 -0
- package/apc/skills/release-rollback/SKILL.md +214 -0
- package/apc/skills/release-rollback/skill.json +230 -0
- package/apc/skills/release-tag/SKILL.md +194 -0
- package/apc/skills/release-tag/skill.json +94 -0
- package/apc/skills/releasing-prod/SKILL.md +49 -0
- package/apc/skills/releasing-test/SKILL.md +135 -0
- package/apc/skills/sdk-release/SKILL.md +200 -0
- package/apc/skills/spec-intake/SKILL.md +169 -0
- package/apc/skills/spec-intake/skill.json +93 -0
- package/apc/skills/test-result-feedback/SKILL.md +239 -0
- package/apc/skills/test-result-feedback/skill.json +193 -0
- package/apc/skills/test-runner/SKILL.md +169 -0
- package/apc/skills/test-runner/skill.json +103 -0
- package/apc/skills/ui-align/SKILL.md +209 -0
- package/apc/skills/ui-align/skill.json +114 -0
- package/apc/skills/ui-canvas/SKILL.md +148 -0
- package/apc/skills/ui-canvas/skill.json +127 -0
- package/built-in-skills/agent-coordination/SKILL.md +257 -0
- package/built-in-skills/agent-meta/SKILL.md +53 -0
- package/built-in-skills/assets/SKILL.md +133 -0
- package/built-in-skills/browser-use/SKILL.md +93 -0
- package/built-in-skills/canvas-design/LICENSE.txt +202 -0
- package/built-in-skills/canvas-design/SKILL.md +157 -0
- package/built-in-skills/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/built-in-skills/canvas-design/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/Jura-Light.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/Jura-Medium.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/built-in-skills/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/built-in-skills/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
- package/built-in-skills/claim-agent-ownership/SKILL.md +255 -0
- package/built-in-skills/claude-api/LICENSE.txt +202 -0
- package/built-in-skills/claude-api/SKILL.md +325 -0
- package/built-in-skills/claude-api/csharp/claude-api.md +402 -0
- package/built-in-skills/claude-api/curl/examples.md +216 -0
- package/built-in-skills/claude-api/curl/managed-agents.md +336 -0
- package/built-in-skills/claude-api/go/claude-api.md +421 -0
- package/built-in-skills/claude-api/go/managed-agents/README.md +561 -0
- package/built-in-skills/claude-api/java/claude-api.md +432 -0
- package/built-in-skills/claude-api/java/managed-agents/README.md +442 -0
- package/built-in-skills/claude-api/php/claude-api.md +375 -0
- package/built-in-skills/claude-api/php/managed-agents/README.md +435 -0
- package/built-in-skills/claude-api/python/claude-api/README.md +420 -0
- package/built-in-skills/claude-api/python/claude-api/batches.md +185 -0
- package/built-in-skills/claude-api/python/claude-api/files-api.md +165 -0
- package/built-in-skills/claude-api/python/claude-api/streaming.md +162 -0
- package/built-in-skills/claude-api/python/claude-api/tool-use.md +590 -0
- package/built-in-skills/claude-api/python/managed-agents/README.md +332 -0
- package/built-in-skills/claude-api/ruby/claude-api.md +113 -0
- package/built-in-skills/claude-api/ruby/managed-agents/README.md +389 -0
- package/built-in-skills/claude-api/shared/agent-design.md +101 -0
- package/built-in-skills/claude-api/shared/error-codes.md +213 -0
- package/built-in-skills/claude-api/shared/live-sources.md +135 -0
- package/built-in-skills/claude-api/shared/managed-agents-api-reference.md +378 -0
- package/built-in-skills/claude-api/shared/managed-agents-client-patterns.md +209 -0
- package/built-in-skills/claude-api/shared/managed-agents-core.md +238 -0
- package/built-in-skills/claude-api/shared/managed-agents-environments.md +215 -0
- package/built-in-skills/claude-api/shared/managed-agents-events.md +195 -0
- package/built-in-skills/claude-api/shared/managed-agents-memory.md +197 -0
- package/built-in-skills/claude-api/shared/managed-agents-multiagent.md +99 -0
- package/built-in-skills/claude-api/shared/managed-agents-onboarding.md +114 -0
- package/built-in-skills/claude-api/shared/managed-agents-outcomes.md +106 -0
- package/built-in-skills/claude-api/shared/managed-agents-overview.md +68 -0
- package/built-in-skills/claude-api/shared/managed-agents-self-hosted-sandboxes.md +173 -0
- package/built-in-skills/claude-api/shared/managed-agents-tools.md +321 -0
- package/built-in-skills/claude-api/shared/managed-agents-webhooks.md +110 -0
- package/built-in-skills/claude-api/shared/model-migration.md +779 -0
- package/built-in-skills/claude-api/shared/models.md +121 -0
- package/built-in-skills/claude-api/shared/prompt-caching.md +171 -0
- package/built-in-skills/claude-api/shared/tool-use-concepts.md +327 -0
- package/built-in-skills/claude-api/typescript/claude-api/README.md +333 -0
- package/built-in-skills/claude-api/typescript/claude-api/batches.md +106 -0
- package/built-in-skills/claude-api/typescript/claude-api/files-api.md +98 -0
- package/built-in-skills/claude-api/typescript/claude-api/streaming.md +178 -0
- package/built-in-skills/claude-api/typescript/claude-api/tool-use.md +527 -0
- package/built-in-skills/claude-api/typescript/managed-agents/README.md +359 -0
- package/built-in-skills/codebase-design/DEEPENING.md +37 -0
- package/built-in-skills/codebase-design/DESIGN-IT-TWICE.md +44 -0
- package/built-in-skills/codebase-design/LICENSE +21 -0
- package/built-in-skills/codebase-design/SKILL.md +116 -0
- package/built-in-skills/conversation-compaction/SKILL.md +114 -0
- package/built-in-skills/council-creator/SKILL.md +426 -0
- package/built-in-skills/diagnosing-bugs/LICENSE +21 -0
- package/built-in-skills/diagnosing-bugs/SKILL.md +136 -0
- package/built-in-skills/diagnosing-bugs/scripts/hitl-loop.template.sh +41 -0
- package/built-in-skills/doc-coauthoring/SKILL.md +376 -0
- package/built-in-skills/document-generation/SKILL.md +105 -0
- package/built-in-skills/domain-modeling/ADR-FORMAT.md +47 -0
- package/built-in-skills/domain-modeling/CONTEXT-FORMAT.md +60 -0
- package/built-in-skills/domain-modeling/LICENSE +21 -0
- package/built-in-skills/domain-modeling/SKILL.md +76 -0
- package/built-in-skills/frontend-design/LICENSE.txt +177 -0
- package/built-in-skills/frontend-design/SKILL.md +43 -0
- package/built-in-skills/human-approval/SKILL.md +129 -0
- package/built-in-skills/image-generate/SKILL.md +128 -0
- package/built-in-skills/image-generate/scripts/generate-and-deliver.mjs +289 -0
- package/built-in-skills/ingest/SKILL.md +73 -0
- package/built-in-skills/internal-comms/LICENSE.txt +202 -0
- package/built-in-skills/internal-comms/SKILL.md +33 -0
- package/built-in-skills/internal-comms/examples/3p-updates.md +47 -0
- package/built-in-skills/internal-comms/examples/company-newsletter.md +65 -0
- package/built-in-skills/internal-comms/examples/faq-answers.md +30 -0
- package/built-in-skills/internal-comms/examples/general-comms.md +16 -0
- package/built-in-skills/liteparse/SKILL.md +176 -0
- package/built-in-skills/mcp-builder/LICENSE.txt +202 -0
- package/built-in-skills/mcp-builder/SKILL.md +237 -0
- package/built-in-skills/mcp-builder/reference/evaluation.md +602 -0
- package/built-in-skills/mcp-builder/reference/mcp_best_practices.md +249 -0
- package/built-in-skills/mcp-builder/reference/node_mcp_server.md +970 -0
- package/built-in-skills/mcp-builder/reference/python_mcp_server.md +719 -0
- package/built-in-skills/mcp-builder/scripts/connections.py +151 -0
- package/built-in-skills/mcp-builder/scripts/evaluation.py +373 -0
- package/built-in-skills/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/built-in-skills/mcp-builder/scripts/requirements.txt +2 -0
- package/built-in-skills/memory/SKILL.md +471 -0
- package/built-in-skills/memory-dream/SKILL.md +339 -0
- package/built-in-skills/office-artifacts/SKILL.md +211 -0
- package/built-in-skills/okr/SKILL.md +154 -0
- package/built-in-skills/persona/SKILL.md +81 -0
- package/built-in-skills/persona-generator/SKILL.md +296 -0
- package/built-in-skills/pkf-svg/SKILL.md +253 -0
- package/built-in-skills/pkf-writing/SKILL.md +236 -0
- package/built-in-skills/prismer-im-collab/SKILL.md +168 -0
- package/built-in-skills/proactivity/SKILL.md +84 -0
- package/built-in-skills/remotion/SKILL.md +431 -0
- package/built-in-skills/role-builder/SKILL.md +203 -0
- package/built-in-skills/role-builder/scripts/author-role.mjs +334 -0
- package/built-in-skills/role-builder/scripts/ingest-role.mjs +223 -0
- package/built-in-skills/role-builder/scripts/instantiate-and-run.mjs +290 -0
- package/built-in-skills/role-builder/scripts/operation-harness.mjs +267 -0
- package/built-in-skills/skill-authoring/SKILL.md +134 -0
- package/built-in-skills/skill-authoring/skill.json +74 -0
- package/built-in-skills/skill-builder/SKILL.md +171 -0
- package/built-in-skills/skill-builder/scripts/ingest.mjs +265 -0
- package/built-in-skills/skill-creator/LICENSE.txt +202 -0
- package/built-in-skills/skill-creator/SKILL.md +227 -0
- package/built-in-skills/skill-creator/agents/analyzer.md +274 -0
- package/built-in-skills/skill-creator/agents/comparator.md +202 -0
- package/built-in-skills/skill-creator/agents/grader.md +223 -0
- package/built-in-skills/skill-creator/assets/eval_review.html +146 -0
- package/built-in-skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/built-in-skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/built-in-skills/skill-creator/references/external-library-import.md +110 -0
- package/built-in-skills/skill-creator/references/schemas.md +430 -0
- package/built-in-skills/skill-creator/scripts/__init__.py +0 -0
- package/built-in-skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/built-in-skills/skill-creator/scripts/generate_report.py +326 -0
- package/built-in-skills/skill-creator/scripts/import-library.mjs +475 -0
- package/built-in-skills/skill-creator/scripts/improve_description.py +247 -0
- package/built-in-skills/skill-creator/scripts/package_skill.py +136 -0
- package/built-in-skills/skill-creator/scripts/quick_validate.py +103 -0
- package/built-in-skills/skill-creator/scripts/run_eval.py +310 -0
- package/built-in-skills/skill-creator/scripts/run_loop.py +328 -0
- package/built-in-skills/skill-creator/scripts/utils.py +47 -0
- package/built-in-skills/slack-gif-creator/LICENSE.txt +202 -0
- package/built-in-skills/slack-gif-creator/SKILL.md +291 -0
- package/built-in-skills/slack-gif-creator/core/easing.py +234 -0
- package/built-in-skills/slack-gif-creator/core/frame_composer.py +176 -0
- package/built-in-skills/slack-gif-creator/core/gif_builder.py +269 -0
- package/built-in-skills/slack-gif-creator/core/validators.py +136 -0
- package/built-in-skills/slack-gif-creator/requirements.txt +4 -0
- package/built-in-skills/tasks/SKILL.md +413 -0
- package/built-in-skills/tdd/LICENSE +21 -0
- package/built-in-skills/tdd/SKILL.md +110 -0
- package/built-in-skills/tdd/mocking.md +59 -0
- package/built-in-skills/tdd/refactoring.md +10 -0
- package/built-in-skills/tdd/tests.md +61 -0
- package/built-in-skills/team/SKILL.md +77 -0
- package/built-in-skills/web-artifacts-builder/LICENSE.txt +202 -0
- package/built-in-skills/web-artifacts-builder/SKILL.md +105 -0
- package/built-in-skills/web-artifacts-builder/scripts/bundle-artifact.sh +54 -0
- package/built-in-skills/web-artifacts-builder/scripts/init-artifact.sh +334 -0
- package/built-in-skills/web-artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
- package/built-in-skills/webapp-testing/LICENSE.txt +202 -0
- package/built-in-skills/webapp-testing/SKILL.md +97 -0
- package/built-in-skills/webapp-testing/examples/console_logging.py +35 -0
- package/built-in-skills/webapp-testing/examples/element_discovery.py +40 -0
- package/built-in-skills/webapp-testing/examples/static_html_automation.py +33 -0
- package/built-in-skills/webapp-testing/scripts/with_server.py +106 -0
- package/built-in-skills/wechat-pay/SKILL.md +59 -0
- package/dist/cli.cjs +72577 -16101
- package/dist/cli.js +72752 -16232
- package/dist/index.cjs +72632 -16024
- package/dist/index.d.cts +4956 -640
- package/dist/index.d.ts +4956 -640
- package/dist/index.js +72564 -15963
- package/package.json +39 -6
- package/plugins/memory/prismer/__init__.py +1211 -0
- package/plugins/memory/prismer/plugin.yaml +8 -0
- package/plugins/memory/prismer/tool-schemas.generated.json +249 -0
- package/plugins/tools/prismer-recall/__init__.py +282 -0
- package/plugins/tools/prismer-recall/plugin.yaml +15 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: conversation-compaction
|
|
3
|
+
scope: common
|
|
4
|
+
description: Produce the SESSION PROJECTION of memory for an aging conversation slice. Runs as a single background model call (mirroring the memory `extract` hook) with NO live memory tools — durable capture to memory is `extract`'s job. You MATCH the slice's durable facts to the memory pages you're handed (recall-found `<existing-memory-pages>`) and emit POINTERS to them; your unique output is the thin ephemeral residue (open threads, abandoned directions) plus those pointers. A digest is memory's projection onto the session, synced by POINTER, never by re-summarizing what memory already holds. Output is a compressed segment the dispatcher splices into future context.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Conversation Compaction — memory's session projection
|
|
8
|
+
|
|
9
|
+
You are producing the **session projection** of a slice of an aging conversation
|
|
10
|
+
(messages that scrolled past the recent verbatim window). The projection replaces the
|
|
11
|
+
raw slice in future agent context.
|
|
12
|
+
|
|
13
|
+
## The model — sync by POINTER, not by re-summary
|
|
14
|
+
|
|
15
|
+
Durable knowledge lives in **memory** (the `memory` skill owns it). A session projection
|
|
16
|
+
does **not** re-summarize durable facts — it **points** at the memory pages that hold
|
|
17
|
+
them, NOT by you re-deriving what memory already knows.
|
|
18
|
+
|
|
19
|
+
> **How this runs (important):** you execute as a SINGLE model call inside the agent's
|
|
20
|
+
> daemon (mirroring the memory `extract` post-turn hook) — you have **no live memory
|
|
21
|
+
> tools** to browse/write. Durable capture to memory is the **`extract` hook's** job
|
|
22
|
+
> (it runs alongside you every turn). Your input carries the memory pages you need:
|
|
23
|
+
> `<existing-memory-pages>` (recall-found). You MATCH durable facts to those pages and
|
|
24
|
+
> emit POINTERS; you do not write memory yourself.
|
|
25
|
+
|
|
26
|
+
Your job over a slice is only:
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
① for each slice message:
|
|
30
|
+
durable + matches a provided page → emit a memoryRefs POINTER (path + note)
|
|
31
|
+
durable + NO page matches → inline into summary (degraded; extract will capture it)
|
|
32
|
+
ephemeral → carry THIN in the digest (ages out)
|
|
33
|
+
noise → DROP
|
|
34
|
+
② emit — the thin ephemeral digest + POINTERS to every matched page
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Input you receive
|
|
38
|
+
|
|
39
|
+
- `slice`: the raw messages, oldest first, each `[msgId] @username (role): text`.
|
|
40
|
+
- `conversationType`: `group` | `direct`.
|
|
41
|
+
- `<existing-memory-pages>`: pages found by DEVICE-LOCAL recall over this slice that **may
|
|
42
|
+
already hold** durable facts from it (a fuzzy match, not an exact raw→page mapping).
|
|
43
|
+
|
|
44
|
+
## Pointer-first rule (recall-fed)
|
|
45
|
+
|
|
46
|
+
You are given `<existing-memory-pages>` (pages recall thinks already hold durable facts from
|
|
47
|
+
this slice). For a durable fact in the slice that **matches an existing page**, emit a
|
|
48
|
+
`memoryRefs` pointer `{ path, note }` — do **not** restate it in `summary`. Only **inline** a
|
|
49
|
+
durable fact into `summary` (degraded) when **no** existing page matches it.
|
|
50
|
+
|
|
51
|
+
## Flow
|
|
52
|
+
|
|
53
|
+
Triage each slice message:
|
|
54
|
+
|
|
55
|
+
- **Durable** ("would matter in a *different* conversation next week?") → does a page in
|
|
56
|
+
`<existing-memory-pages>` already hold it? **Yes** → emit a `memoryRefs` pointer (`path` +
|
|
57
|
+
a short `note`), do NOT restate it in `summary`. **No** → inline it into `summary`
|
|
58
|
+
(degraded); the `extract` hook captures it to memory separately and a later pass — once
|
|
59
|
+
recall finds that page — will pointer it.
|
|
60
|
+
- **Ephemeral** ("only matters to keep *this* thread coherent?") → thin digest line.
|
|
61
|
+
- **Noise** ("lose it, nothing changes?") → drop.
|
|
62
|
+
|
|
63
|
+
Then **compose** the segment output (below): the thin ephemeral residue + the pointer list
|
|
64
|
+
(pages you matched).
|
|
65
|
+
|
|
66
|
+
**Not a re-summary:** your unique work is (a) the ephemeral residue and (b) pointing durable
|
|
67
|
+
facts at their memory pages. Durable *capture* (writing pages) is the `extract` hook's job,
|
|
68
|
+
not yours.
|
|
69
|
+
|
|
70
|
+
## Speaker attribution → into the memory page's provenance
|
|
71
|
+
|
|
72
|
+
For `group` slices, who decided / who objected IS content. Carry attribution into the
|
|
73
|
+
memory page (who decided, who dissented). Once it is in the page, you do NOT restate it
|
|
74
|
+
in the digest — the pointer resolves to the page.
|
|
75
|
+
|
|
76
|
+
## Output shape
|
|
77
|
+
|
|
78
|
+
Return ONLY this JSON — no prose, no fences:
|
|
79
|
+
|
|
80
|
+
```json
|
|
81
|
+
{
|
|
82
|
+
"summary": "<3-8 short lines: current thread state, referencing durable parts by memory:<path>; NOT a re-statement of the slice>",
|
|
83
|
+
"salientFacts": {
|
|
84
|
+
"memoryRefs": [ { "path": "decisions/vendor.pkf", "note": "vendor B (compliance); @ceo decided, @eng dissented" } ],
|
|
85
|
+
"openThreads": [ "awaiting @ceo sign-off on A4 vs Letter page size" ],
|
|
86
|
+
"abandonedDirections": [ "tried gpt-4o for compaction — too slow, dropped" ]
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
- `memoryRefs` — one POINTER per matched page (`{ path, note }`).
|
|
92
|
+
- `openThreads` / `abandonedDirections` — the ephemeral residue only. Omit if empty.
|
|
93
|
+
- **No** `decisions` / `entities` / `preferences` / `commitments` fields — those are
|
|
94
|
+
durable, they live in `memoryRefs`, never inline.
|
|
95
|
+
|
|
96
|
+
**Size check:** the digest is the ephemeral residue + pointers, a fraction of the slice.
|
|
97
|
+
If `summary` reads like a retelling, you are duplicating memory — cut to thread-state.
|
|
98
|
+
|
|
99
|
+
## Failure / degradation
|
|
100
|
+
|
|
101
|
+
- No matching pages (empty `<existing-memory-pages>`) → inline the durable facts into
|
|
102
|
+
`summary` (degraded) with empty `memoryRefs`. `extract` still captures them to memory, and
|
|
103
|
+
a later pass — once recall finds those pages — will pointer them. Never fail the compaction.
|
|
104
|
+
- Slice is pure noise → `{ "summary": "(no substantive content)", "salientFacts": {} }`.
|
|
105
|
+
|
|
106
|
+
## Anti-patterns
|
|
107
|
+
|
|
108
|
+
- ❌ **Restating in the digest what lives in memory** — point to the page.
|
|
109
|
+
- ❌ **Re-implementing memory triage/authoring here** — delegate to the `memory` skill.
|
|
110
|
+
- ❌ **A faithful blow-by-blow summary** — you produce a projection, not a transcript.
|
|
111
|
+
- ❌ **Dropping attribution on a decision/objection** — it goes into the page's provenance.
|
|
112
|
+
- ❌ **Promoting ephemeral state to memory** (current open question, in-flight step) — that
|
|
113
|
+
stays in the thin digest and ages out.
|
|
114
|
+
- ❌ **Posting the digest as a chat message** — machinery; return the structured object only.
|
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: council-creator
|
|
3
|
+
scope: common
|
|
4
|
+
description: >
|
|
5
|
+
Expert-council meeting protocol. Given a Brief + a persona cast (from
|
|
6
|
+
persona-generator), propose the council to the Team Manager, and once convened
|
|
7
|
+
FACILITATE it: each round post a NEW group message that @-mentions the
|
|
8
|
+
persona-agents by their ASCII usernameSlug, collect their independent replies,
|
|
9
|
+
stage-summarize, exchange memory, and settle into a disagreement map + report
|
|
10
|
+
+ memory writeback + task drafts. Personas are REAL agents (role instances),
|
|
11
|
+
each speaking from its own session — you are the facilitator, NOT a puppeteer
|
|
12
|
+
playing five roles. The group stays resident for @persona follow-ups. This is
|
|
13
|
+
a PLAYBOOK the workspace orchestrator executes.
|
|
14
|
+
license: MIT
|
|
15
|
+
compatibility:
|
|
16
|
+
- prismer-sdk
|
|
17
|
+
- hermes
|
|
18
|
+
metadata:
|
|
19
|
+
category: council
|
|
20
|
+
disclaimerRequired: true
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# Council Creator
|
|
24
|
+
|
|
25
|
+
**How they speak together.** A **facilitation playbook** layered onto the
|
|
26
|
+
workspace orchestrator. There is **no "Council Agent"** — but you are **not** the
|
|
27
|
+
only execution unit either: each persona is a **real agent** (a role instance
|
|
28
|
+
provisioned at convene), with its own identity, dispatch, and LLM session. Your
|
|
29
|
+
job is to **facilitate** — set the agenda, @-mention personas, collect their
|
|
30
|
+
replies, summarize, exchange memory — **never** to speak for them. Load this
|
|
31
|
+
skill after `persona-generator` has produced a cast.
|
|
32
|
+
|
|
33
|
+
| Do | Do NOT |
|
|
34
|
+
| --- | --- |
|
|
35
|
+
| propose the council to the Team Manager (`--plan <planId>` + one sentence), then **stop and wait** | **Convene it yourself** — that is the Team Manager's one click, and no command exists for it |
|
|
36
|
+
| facilitate: each round post a NEW group message that **@-mentions personas by ASCII `usernameSlug`** | Speak a persona's words yourself — personas are real agents, they reply on their own |
|
|
37
|
+
| collect the personas' replies, stage-summarize, exchange memory | @-mention a persona by its Chinese `displayName` (silently drops → 0 dispatch) |
|
|
38
|
+
| settle: disagreement map + report + memory + task drafts | Generate persona definitions (persona-generator) |
|
|
39
|
+
| Keep the group resident; answer @persona follow-ups | Narrate status chatter into the group between rounds |
|
|
40
|
+
| Say plainly when the Brief does not stand | Chain persona↔persona relays (burns the hop budget — see hop rule) |
|
|
41
|
+
|
|
42
|
+
## You execute this through the `prismer council` CLI + normal group messages
|
|
43
|
+
|
|
44
|
+
**The lifecycle commands are real: `plan`, `propose`, `finalize`.** A council
|
|
45
|
+
exists only when `plan`/`propose` have run and the Team Manager has convened; the
|
|
46
|
+
discussion itself is **normal group messages that @-mention the persona-agents**
|
|
47
|
+
(not a CLI command). Writing a document that *describes* a roundtable creates
|
|
48
|
+
nothing, and reporting it as done is a false claim of delivery. If you cannot get
|
|
49
|
+
past a phase, say what failed and why. Never substitute prose for the protocol.
|
|
50
|
+
|
|
51
|
+
**When to start:** the Team Manager does not ask for "a council" — he drops a deck, or says
|
|
52
|
+
"帮我找几个人聊聊这个 idea", or asks a question that plainly needs positions other
|
|
53
|
+
than his own. That is your cue to read the material, assemble the Brief, run
|
|
54
|
+
`persona-generator`, and **propose**. You start the flow; he only decides whether
|
|
55
|
+
to hold it.
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
Phase A plan prismer council plan --file plan.json → planId
|
|
59
|
+
propose prismer council propose <ceoConvId> --plan <planId> --text "一句人话"
|
|
60
|
+
↓ ⛔ YOU STOP HERE. The Team Manager clicks [好,开吧].
|
|
61
|
+
Phase B convene — no command exists. The Team Manager's click instantiates the persona-agents + group.
|
|
62
|
+
Phase C facilitate (you receive a "facilitate round N" task) → post ONE new group message
|
|
63
|
+
that @-mentions the personas by ASCII usernameSlug → each persona-agent
|
|
64
|
+
replies on its own session → you collect + summarize, then STOP.
|
|
65
|
+
Phase D settle (you receive a settle task) → prismer council finalize <convId> --file report.json
|
|
66
|
+
readback prismer council report <convId>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
`--workspace-id` defaults to `$PRISMER_WORKSPACE_ID`. Nested bodies come in as a
|
|
70
|
+
JSON file you write first (shapes below). Each command prints the endpoint's JSON
|
|
71
|
+
response; a nonzero exit means the phase did **not** happen.
|
|
72
|
+
|
|
73
|
+
### The Team Manager gets exactly one decision — and it is not yours to take
|
|
74
|
+
|
|
75
|
+
Read this before anything else. **You cannot convene.** There is no
|
|
76
|
+
`council convene` command, on purpose. The whole flow gives the Team Manager one single
|
|
77
|
+
decision — *"好,开吧"* or *"先不用"* — and that click is what creates the group.
|
|
78
|
+
Your job in Phase A ends with `council propose`: the `planId` and one human
|
|
79
|
+
sentence, and then **you stop and wait**.
|
|
80
|
+
|
|
81
|
+
**You do NOT pass the cast.** The cloud fills the head-avatars preview on the
|
|
82
|
+
proposal bubble by reading the cast straight out of your plan draft
|
|
83
|
+
(`councilPlan.cast` — the same `PersonaDef[]` you gave `council plan`) and
|
|
84
|
+
projecting only the display-safe subset (never the per-turn `voice`). So all you
|
|
85
|
+
give `propose` is `--plan <planId>` + `--text "一句人话"` — say, in plain words,
|
|
86
|
+
*why these positions*. The cloud guarantees the component data; you cannot leave
|
|
87
|
+
the roster preview empty by forgetting a flag (that was the real e2e failure —
|
|
88
|
+
28 §L1). The only variant is `--gap` (Brief did not stand — there is no cast to
|
|
89
|
+
show).
|
|
90
|
+
|
|
91
|
+
Do not "helpfully" push past this. Do not describe the roundtable you would have
|
|
92
|
+
held. Do not write the report early. A council the Team Manager never agreed to is not a
|
|
93
|
+
council, and a document describing an unheld discussion is a fabricated
|
|
94
|
+
deliverable — the exact thing this skill exists to make impossible.
|
|
95
|
+
|
|
96
|
+
What the Team Manager sees is a bubble in your conversation:
|
|
97
|
+
|
|
98
|
+
> 读完了。这件事牵涉几个很不一样的位置 —— 量产过来人、早期投资人、发动机工程师、
|
|
99
|
+
> 政府采购方,各自能看到你看不到的一块。要不要我请他们来聊聊?
|
|
100
|
+
> [👤👤👤👤👤 5 位 ⌄] **[好,开吧]** **[先不用]**
|
|
101
|
+
|
|
102
|
+
That sentence is yours to write (`--text`). It should say *why these positions*,
|
|
103
|
+
in plain language, from what you actually read. Never name internal machinery
|
|
104
|
+
(`lens`, `cast`, `Brief`, `persona`) to the Team Manager.
|
|
105
|
+
|
|
106
|
+
### The Brief hard gate — and what to do when it fails
|
|
107
|
+
|
|
108
|
+
`plan` exits nonzero with `BRIEF_INSUFFICIENT` + `gaps[]` when the Brief has no
|
|
109
|
+
readable material or no grounded facts.
|
|
110
|
+
|
|
111
|
+
**A failed Brief means you never propose a meeting at all.** You do not open a
|
|
112
|
+
room, you do not write a report, and you certainly do not show the Team Manager a plan and
|
|
113
|
+
then tell him it failed. You say what is missing and ask for it:
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
prismer council propose <ceoConvId> --gap \
|
|
117
|
+
--text "读了你给的材料,但里面没有任何关于单位成本的数据 —— 缺这个的话,请谁来都只能猜。" \
|
|
118
|
+
--gap-item "近 12 个月的单位成本曲线"
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
The gate is in Phase A, before the proposal — never inside a card the Team Manager has to
|
|
122
|
+
read to discover the failure.
|
|
123
|
+
|
|
124
|
+
`plan.json` (Phase A):
|
|
125
|
+
|
|
126
|
+
```json
|
|
127
|
+
{
|
|
128
|
+
"question": "2026 年商业航天的关键变量是什么?",
|
|
129
|
+
"brief": {
|
|
130
|
+
"summary": "…",
|
|
131
|
+
"facts": [{ "text": "Starlink 2025 年收入 114 亿美元", "sourceUrl": "https://…" }],
|
|
132
|
+
"gaps": ["中国民营发射成本无公开数据"]
|
|
133
|
+
},
|
|
134
|
+
"cast": [ /* PersonaDef[] — produced by persona-generator, passed through verbatim */ ],
|
|
135
|
+
"agenda": ["可复用火箭", "卫星星座", "政策监管", "资本市场"],
|
|
136
|
+
"assetIds": ["<im_assets id of the material you ingested>"]
|
|
137
|
+
}
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Both hard-gate legs are load-bearing: `assetIds` must point at **real ingested
|
|
141
|
+
assets** (use your ingest/asset skills first — a path on disk is not an asset),
|
|
142
|
+
and `brief.facts[].text` must carry grounded facts. Neither can be faked past
|
|
143
|
+
the gate.
|
|
144
|
+
|
|
145
|
+
## convene — `prismer council convene --plan <planId>`
|
|
146
|
+
|
|
147
|
+
Cast defaults to the plan's cast; pass `--file` with `{ cast }` only when the Team Manager
|
|
148
|
+
edited the roster in the proposal. The cloud then, on your behalf:
|
|
149
|
+
|
|
150
|
+
1. Creates the group shell (real members: Team Manager + you + optional extras);
|
|
151
|
+
`conversation.metadata.council = { sessionId, planId, question, agenda,
|
|
152
|
+
materialRefs, personaUserIds, reportRefs }` is the council marker — the
|
|
153
|
+
conversation `type` stays `'group'`.
|
|
154
|
+
2. Instantiates each persona as a **real agent** (role instance) in **one
|
|
155
|
+
transaction**: `createAgentForWorkspace` (unbound agent) + `applyToAgent`
|
|
156
|
+
(persona role template + persona skill + profile snapshot). Its username is
|
|
157
|
+
`<usernameSlug>-<conv8>` (ASCII, deduped; non-ascii or `prismer-` reserved
|
|
158
|
+
slugs are rejected — a persona MUST be reachable by an ASCII @-handle). Your
|
|
159
|
+
generated `voice` / lens is baked into the role instance so it speaks
|
|
160
|
+
in-character from its **own** session. There is **no** `backingAgentId` and
|
|
161
|
+
**no** dispatch redirect — the persona is a standalone agent.
|
|
162
|
+
3. Seats everyone; on any failure the transaction rolls back and the group
|
|
163
|
+
shell is removed — no orphan personas (负控 N9).
|
|
164
|
+
4. Posts the Brief as the opening message (sender = you,
|
|
165
|
+
`metadata.kind='council_brief'`).
|
|
166
|
+
|
|
167
|
+
The response carries `conversationId` + `personas[]` + a
|
|
168
|
+
`prismer://conversation/<id>` link. A plan can be convened **once** — a second
|
|
169
|
+
attempt gets `404 PLAN_NOT_FOUND`.
|
|
170
|
+
|
|
171
|
+
## facilitate — you post rounds, the persona-agents reply themselves
|
|
172
|
+
|
|
173
|
+
**Personas are real agents now — you do NOT produce their words.** Each round you
|
|
174
|
+
post **one** new group message that @-mentions the personas; the platform
|
|
175
|
+
dispatches each one, and each persona-agent replies **from its own session**
|
|
176
|
+
(mention fan-out + per-agent dispatch + the workspace admission queue serialize
|
|
177
|
+
them). The 158% single-session blowup is structurally gone — five sessions, not
|
|
178
|
+
one. This replaces the old `council turns` serial-drive: there is no `turns.json`,
|
|
179
|
+
you never speak as a persona.
|
|
180
|
+
|
|
181
|
+
### 🚨 @-mention personas by their ASCII `usernameSlug` — NEVER by `displayName`
|
|
182
|
+
|
|
183
|
+
**This is the single highest-risk rule in this skill.** Break it and you silently
|
|
184
|
+
reproduce the "0/5 personas spoke" failure this redesign exists to kill. The
|
|
185
|
+
mention router (`agent-dispatcher.ts` `MENTION_RE = /@([A-Za-z0-9][A-Za-z0-9._-]{0,63})/`)
|
|
186
|
+
is **strict ASCII**. A bare `@伊隆·马斯克` (the Chinese `displayName`) matches
|
|
187
|
+
**nothing** → the mention is silently dropped → that persona is never dispatched
|
|
188
|
+
→ it never speaks.
|
|
189
|
+
|
|
190
|
+
- ✅ Always `@<usernameSlug>` — e.g. `@elon-musk-cmrm3cey`. The convene response
|
|
191
|
+
gives you each persona's ASCII `usernameSlug`; use it **verbatim**.
|
|
192
|
+
- ❌ Never `@<displayName>` (Chinese or any non-ASCII). `displayName` is for the
|
|
193
|
+
UI card only; it does **not** route.
|
|
194
|
+
- If you only have a persona's displayName, look up its `usernameSlug` from the
|
|
195
|
+
convene response / roster **before** composing the message — do not guess.
|
|
196
|
+
|
|
197
|
+
### Semantic-clarification gate — run this FIRST, before opening a round
|
|
198
|
+
|
|
199
|
+
You are the council's facilitator, the **语义把关人**. Before you open a round,
|
|
200
|
+
check whether the Team Manager's input introduces a concept / term / acronym that the
|
|
201
|
+
**Council Brief and the transcript so far do not define**. If such a term exists
|
|
202
|
+
**and is genuinely ambiguous** (no shared definition, could mean more than one
|
|
203
|
+
thing), do **not** @-mention the personas and do **not** let them invent a
|
|
204
|
+
definition and argue on top of the guess. Instead:
|
|
205
|
+
|
|
206
|
+
1. Post **exactly ONE clarification message into the group AS YOURSELF** — a
|
|
207
|
+
normal group message, **without** any persona @-mention. Name the undefined
|
|
208
|
+
term and ask the Team Manager to define it.
|
|
209
|
+
2. Then **finish the task and STOP**, waiting for the Team Manager's answer. His reply
|
|
210
|
+
arrives as the next "facilitate round N" task, and you open the round on the
|
|
211
|
+
**corrected** meaning.
|
|
212
|
+
|
|
213
|
+
Only when every concept in the Team Manager's input is already clearly defined — present in
|
|
214
|
+
the Brief, or a well-known term — do you open the round. 宁可多问一句,也不在错误
|
|
215
|
+
语义上让 5 个 persona 空转 —— refusing to discuss on a wrong semantic footing is
|
|
216
|
+
the facilitator's job, exactly as the 03 §0 gatekeeper role prescribes.
|
|
217
|
+
|
|
218
|
+
> **Example (FDE):** the Team Manager writes *"关于 FDE 大家有什么看法"* but the Brief never
|
|
219
|
+
> defines "FDE". Do **not** open a round where personas debate a made-up
|
|
220
|
+
> definition. Instead send one message as yourself — *"你提到的 FDE,Brief 里没有
|
|
221
|
+
> 定义,我需要先明确一下 —— 你指的是 Forward-Deployed Engineer 还是别的?给个说法
|
|
222
|
+
> 我再往下推"* — and stop. Only after the Team Manager defines FDE do you open the round.
|
|
223
|
+
|
|
224
|
+
### Opening a round (facilitator-hub — new message per round = hop reset)
|
|
225
|
+
|
|
226
|
+
When you receive a "facilitate round N" task and the semantics are clear, post
|
|
227
|
+
**one** new group message as yourself. It names the round's focus and @-mentions
|
|
228
|
+
the personas who should weigh in, **by ASCII `usernameSlug`**:
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
@elon-musk-cmrm3cey @zhang-changwu-cmrm3cey 这一轮请各自从你的位置说说
|
|
232
|
+
「一子级复用的真实成本曲线」—— 你能看到别人看不到的那块。
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
Then **finish the task and STOP.** Each persona-agent is dispatched by the mention
|
|
236
|
+
fan-out and replies on its own session, in its own baked-in voice. You do not loop
|
|
237
|
+
waiting, you do not speak for anyone, you do not post round N+1 yourself.
|
|
238
|
+
|
|
239
|
+
**Why a NEW message each round (facilitator-hub):** a fresh orchestrator message
|
|
240
|
+
**resets the relay chain**, so persona replies land at `hopCount ≤ 2` and never
|
|
241
|
+
approach the `MAX_AGENT_HOPS` cap. If instead personas @-mention each other in a
|
|
242
|
+
relay, the chain marches toward the hop cap and later personas get silently
|
|
243
|
+
truncated (see the hop rule in Boundaries). Facilitator-hub keeps every persona
|
|
244
|
+
exactly one hop from you.
|
|
245
|
+
|
|
246
|
+
### Round advancement is the Team Manager's move — not yours
|
|
247
|
+
|
|
248
|
+
The next round is triggered by **the Team Manager sending a message in the group**. His
|
|
249
|
+
message *is* the "go to the next round" signal; you will receive a fresh
|
|
250
|
+
"facilitate round N+1" task whose prompt carries his message — fold it into that
|
|
251
|
+
round's @-mention message. You never advance rounds on your own (28 §4.2).
|
|
252
|
+
|
|
253
|
+
Default shape across rounds (adapt to the Team Manager's ask):
|
|
254
|
+
|
|
255
|
+
| Round | Content |
|
|
256
|
+
| --- | --- |
|
|
257
|
+
| 1 | @ all personas — each gives its independent view from its position |
|
|
258
|
+
| 2 | Cross-examination — @ them again to point at what the others miss / the weakest link |
|
|
259
|
+
| later | Steer toward recommendations, risks, next experiments as the Team Manager's messages direct |
|
|
260
|
+
|
|
261
|
+
- Personas respect the **N8 boundary**: facts come only from the Brief. A persona
|
|
262
|
+
asked about a company fact the Brief lacks says "Brief 未提供" or marks
|
|
263
|
+
`needsVerification` — the persona-role's baked `voice` already encodes this, you
|
|
264
|
+
do not police each reply.
|
|
265
|
+
- **Steering:** if a round turns into mutual flattery, in the NEXT round @ the
|
|
266
|
+
personas and ask them to point at the weakest link in each other's argument.
|
|
267
|
+
Disagreement is welcomed when it emerges; never manufactured.
|
|
268
|
+
|
|
269
|
+
Between rounds your only in-group messages are: the round-opening @-mention, the
|
|
270
|
+
one semantic-clarification question when a term is undefined, and — at settle —
|
|
271
|
+
your disagreement summary. No status chatter ("driving round 1", "posting now").
|
|
272
|
+
|
|
273
|
+
## settle — `prismer council finalize <conversationId> --file report.json`
|
|
274
|
+
|
|
275
|
+
**Settle is triggered by the Team Manager clicking「快捷总结」**, which dispatches you a
|
|
276
|
+
settle task — there is no user-input form and the Team Manager never writes the
|
|
277
|
+
conclusions. **You** produce the disagreement map + report + memory + task
|
|
278
|
+
drafts from the transcript when that task arrives (28 §4.2 / B2). Do not wait for
|
|
279
|
+
the Team Manager to fill anything in.
|
|
280
|
+
|
|
281
|
+
Finalize is **structured, not prose**. Alongside the markdown `report`, you
|
|
282
|
+
**MUST** emit three machine-consumable arrays — `claims[]`, `gaps[]`,
|
|
283
|
+
`disagreements[]` — so the Team Manager (and downstream oracles) can trace every
|
|
284
|
+
conclusion back to real material and see, at a glance, what the council could
|
|
285
|
+
**not** answer. A report that is only prose has no traceable grounding and is a
|
|
286
|
+
failed settle.
|
|
287
|
+
|
|
288
|
+
Write `report.json`, then run `prismer council finalize <conversationId> --file report.json`:
|
|
289
|
+
|
|
290
|
+
```jsonc
|
|
291
|
+
{
|
|
292
|
+
"report": "# Council report …", // markdown Team Manager brief (or reportAssetId)
|
|
293
|
+
"claims": [ // REQUIRED — one entry per factual conclusion
|
|
294
|
+
{
|
|
295
|
+
"text": "该市场 2024 年规模约 X 亿,年增 Y%",
|
|
296
|
+
"sourceRefs": ["<im_assets id>", "<memory-page id>"], // the material this stands on
|
|
297
|
+
"needsVerification": false // true ⇔ NOT confirmed by any material
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"text": "我们 Q3 毛利率能否撑住 —— 材料未提供",
|
|
301
|
+
"sourceRefs": [], // ← empty: nothing grounds it
|
|
302
|
+
"needsVerification": true // ← honest "no data", NOT a made-up number
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"gaps": [ // REQUIRED — fact hooks the materials do NOT answer
|
|
306
|
+
"档案未包含毛利率 / 单位经济模型",
|
|
307
|
+
"缺少目标市场的监管准入清单"
|
|
308
|
+
],
|
|
309
|
+
"disagreements": [ // REQUIRED — where personas genuinely diverge
|
|
310
|
+
{
|
|
311
|
+
"positions": ["先做减法验证 PMF", "先融资抢占窗口"],
|
|
312
|
+
"personaIds": ["<persona imUserId A>", "<persona imUserId B>"] // ≥2 distinct
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
}
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
**Hard rules for `claims[]` (this is the N8 anti-fabrication contract):**
|
|
319
|
+
|
|
320
|
+
- Every claim that asserts a **fact** carries `sourceRefs` pointing at the
|
|
321
|
+
**real** `im_assets` / memory-page id it came from. The cloud resolves each
|
|
322
|
+
ref on read-back (`GET /report` → `sourceRefResolution`); a ref that does not
|
|
323
|
+
resolve is a **dangling / fabricated** reference and will be caught.
|
|
324
|
+
- A fact the Brief/materials do **not** contain → `needsVerification: true`
|
|
325
|
+
**and** `sourceRefs: []`, **and** the missing fact is also listed in `gaps[]`.
|
|
326
|
+
**Never** emit a specific number with a `sourceRefs` that points to a ref
|
|
327
|
+
which does not contain it — inventing a citation is worse than saying "缺数据".
|
|
328
|
+
- `disagreements[].positions` needs **≥2** stances and `personaIds` needs **≥2
|
|
329
|
+
distinct** personas — a disagreement of one is not a disagreement.
|
|
330
|
+
|
|
331
|
+
The cloud normalizes/clamps these arrays and persists them onto the council
|
|
332
|
+
marker's `reportRef` entry (`conversation.metadata.council.reportRefs[]`) and
|
|
333
|
+
mirrors them onto the report message metadata (`metadata.councilReport`). Pass
|
|
334
|
+
the markdown `report` (lands as a message, `metadata.kind='council_report'`) or
|
|
335
|
+
upload an asset first and pass `reportAssetId`. An oversized structured payload
|
|
336
|
+
(> 64 KB) is rejected `422 STRUCTURED_REPORT_TOO_LARGE` **before** any report
|
|
337
|
+
message is created.
|
|
338
|
+
|
|
339
|
+
1. **Disagreement map** — emit `disagreements[]` above; the markdown report
|
|
340
|
+
should narrate the same divergences for human reading.
|
|
341
|
+
2. **Report** — a concise Team Manager brief (markdown) as `report`, plus the structured
|
|
342
|
+
`claims`/`gaps` above. The council marker gets `reportRefs` + `settledAt`.
|
|
343
|
+
3. **Memory writeback — call the existing `memory` skill, never reinvent.**
|
|
344
|
+
Write `decision` / `company` / `preference` / `open_questions` entries;
|
|
345
|
+
every entry carries `source = { councilSessionId, messageRefs[],
|
|
346
|
+
fileRefs[], insightRefs[] }` + `confidence` + `needsVerification`, and is
|
|
347
|
+
typed `fact | hypothesis | preference | decision`. Echo the resulting refs
|
|
348
|
+
back through `memoryRefs`.
|
|
349
|
+
- **Visibility (E4).** Pages that capture the council's own deliberation
|
|
350
|
+
context — a persona's stance, a roundtable's internal working notes —
|
|
351
|
+
pass `visibility = council:<councilId>` on `memory_write` (**you**, the
|
|
352
|
+
orchestrator, facilitate and own the council, so you may write this
|
|
353
|
+
scope — the cloud grants the `council:` prefix to the orchestrator caller;
|
|
354
|
+
D7). The **settled cross-role consensus** (the Team Manager-facing decision the
|
|
355
|
+
whole council agreed on) stays the default `workspace` scope — it is
|
|
356
|
+
durable company knowledge, not council-private (D3). When in doubt, prefer
|
|
357
|
+
`workspace`.
|
|
358
|
+
4. **Task drafts — call the existing `tasks` skill** for research / validation
|
|
359
|
+
/ member-data requests / experiments that surfaced. Echo through
|
|
360
|
+
`taskDrafts`.
|
|
361
|
+
5. **The group stays resident** — finalize never closes it. Only the Team Manager
|
|
362
|
+
deletes the group (which deactivates the personas: `banned=true`, rows and
|
|
363
|
+
history preserved).
|
|
364
|
+
6. Optional: propose promoting an exceptional cast to a `persona-pack` skill.
|
|
365
|
+
|
|
366
|
+
## Resident state — Team Manager @persona follow-ups
|
|
367
|
+
|
|
368
|
+
After settling, the Team Manager can `@<persona-usernameSlug>` in the group at any time.
|
|
369
|
+
Because the persona is a **real agent**, that mention is dispatched **straight to
|
|
370
|
+
the persona-agent** — it answers in its own voice, from its own session. You do
|
|
371
|
+
NOT intercept or answer for it; there is no backing redirect. Your only role in
|
|
372
|
+
resident state is facilitation if the Team Manager asks for another round. (The same
|
|
373
|
+
ASCII-slug rule applies — the Team Manager's UI @-picker inserts the `usernameSlug`, never
|
|
374
|
+
the `displayName`, and a hand-typed Chinese `@displayName` would not route.)
|
|
375
|
+
|
|
376
|
+
## Boundaries (hard)
|
|
377
|
+
|
|
378
|
+
- **No persona generation here.** Roster problems go back to
|
|
379
|
+
persona-generator via a new `/plan`.
|
|
380
|
+
- **Facilitate, don't puppeteer.** You never speak a persona's words; personas
|
|
381
|
+
are real agents that reply on their own sessions. Your messages are the agenda,
|
|
382
|
+
the @-mentions, the stage summaries — nothing more.
|
|
383
|
+
- **@ ASCII `usernameSlug`, never `displayName`** — the strict-ASCII mention
|
|
384
|
+
router drops a Chinese `@displayName` silently (0 dispatch). Single
|
|
385
|
+
highest-risk rule in this skill.
|
|
386
|
+
- **Hop budget (facilitator-hub).** Default: one new message per round, personas
|
|
387
|
+
reply to you (hop ≤ 2). Do NOT build persona↔persona relay chains — they march
|
|
388
|
+
toward `MAX_AGENT_HOPS` and later personas get silently truncated. Serial
|
|
389
|
+
ordering is provided by the workspace admission queue, not by you.
|
|
390
|
+
- **Cloud-zero-LLM:** every LLM call of the council flow happens in agent
|
|
391
|
+
runtimes (yours + each persona-agent's); the `/councils/*` endpoints only
|
|
392
|
+
persist and route.
|
|
393
|
+
|
|
394
|
+
## Configuration
|
|
395
|
+
|
|
396
|
+
**N/A.** This skill declares no `config:` block — the protocol consumes
|
|
397
|
+
existing platform endpoints with your ambient credentials; there are no
|
|
398
|
+
user-bindable keys (product204/09 boundary ruling, CONFLICT-7).
|
|
399
|
+
|
|
400
|
+
## Anti-patterns
|
|
401
|
+
|
|
402
|
+
- ❌ Convening without a passed plan (or "retrying" a 422 by thinning the
|
|
403
|
+
Brief).
|
|
404
|
+
- ❌ `propose` without `--plan <planId>` — with no plan the cloud has no cast to
|
|
405
|
+
project onto the bubble, and there is nothing to convene (28 §L1).
|
|
406
|
+
- ❌ **@-mentioning a persona by its Chinese `displayName`** — the mention router
|
|
407
|
+
is strict ASCII, so it silently drops → 0 dispatch → the exact "0/5 personas
|
|
408
|
+
spoke" failure this redesign exists to kill. Always `@<usernameSlug>`.
|
|
409
|
+
- ❌ Speaking a persona's words yourself (a normal message signed as you, or
|
|
410
|
+
faking a roundtable) — personas are real agents; they speak for themselves.
|
|
411
|
+
- ❌ Chaining personas into persona↔persona relays to drive discussion (burns the
|
|
412
|
+
hop budget, later personas get truncated). Post a new message per round;
|
|
413
|
+
personas reply to you.
|
|
414
|
+
- ❌ Narrating status chatter into the group between rounds ("driving round 1",
|
|
415
|
+
"posting now").
|
|
416
|
+
- ❌ Looping yourself into round N+1 — the Team Manager's next message advances the round.
|
|
417
|
+
- ❌ Writing the report only into chat prose without finalize (no
|
|
418
|
+
`reportRefs`, `GET /report` stays empty).
|
|
419
|
+
- ❌ Finalizing with only markdown `report` and no `claims[]` / `gaps[]` /
|
|
420
|
+
`disagreements[]` — the report is then ungrounded and untraceable.
|
|
421
|
+
- ❌ A claim with a specific fact but empty/dangling `sourceRefs` and
|
|
422
|
+
`needsVerification:false` — that is a fabricated fact (N8). Unknown → mark
|
|
423
|
+
`needsVerification:true`, `sourceRefs:[]`, and add it to `gaps[]`.
|
|
424
|
+
- ❌ Memory entries without `source` / `confidence` / `needsVerification`, or
|
|
425
|
+
untyped (must be `fact | hypothesis | preference | decision`).
|
|
426
|
+
- ❌ Closing or archiving the group at settle.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Matt Pocock
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|