@litfamily/litopencode 1.0.0
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/.gitattributes +8 -0
- package/ATTRIBUTION.md +56 -0
- package/CHANGELOG.md +267 -0
- package/CODE_OF_CONDUCT.md +30 -0
- package/CONTRIBUTING.md +82 -0
- package/LICENSE +21 -0
- package/README-Ko-KR.md +252 -0
- package/README.md +252 -0
- package/SECURITY.md +36 -0
- package/SUPPORT.md +37 -0
- package/bin/litopencode +3 -0
- package/bin/litopencode.cjs +10 -0
- package/dist/activation-managed-prompts.d.ts +2 -0
- package/dist/activation-managed-prompts.js +51 -0
- package/dist/activation-primary-prompts.d.ts +2 -0
- package/dist/activation-primary-prompts.js +176 -0
- package/dist/activation-probe.d.ts +3 -0
- package/dist/activation-probe.js +19 -0
- package/dist/activation-prompt-utils.d.ts +6 -0
- package/dist/activation-prompt-utils.js +36 -0
- package/dist/activation-routing.d.ts +5 -0
- package/dist/activation-routing.js +340 -0
- package/dist/activation-workflow-prompts.d.ts +26 -0
- package/dist/activation-workflow-prompts.js +295 -0
- package/dist/activation.d.ts +24 -0
- package/dist/activation.js +152 -0
- package/dist/agents/defaults.d.ts +15 -0
- package/dist/agents/defaults.js +112 -0
- package/dist/agents/registry.d.ts +65 -0
- package/dist/agents/registry.js +319 -0
- package/dist/agents/specialists.d.ts +49 -0
- package/dist/agents/specialists.js +307 -0
- package/dist/agents/types.d.ts +55 -0
- package/dist/agents/types.js +4 -0
- package/dist/agents.d.ts +4 -0
- package/dist/agents.js +3 -0
- package/dist/benchmark.d.ts +94 -0
- package/dist/benchmark.js +172 -0
- package/dist/bounded-authority-hooks.d.ts +19 -0
- package/dist/bounded-authority-hooks.js +157 -0
- package/dist/bounded-authority.d.ts +184 -0
- package/dist/bounded-authority.js +825 -0
- package/dist/cache-metrics.d.ts +54 -0
- package/dist/cache-metrics.js +81 -0
- package/dist/cli/args.d.ts +5 -0
- package/dist/cli/args.js +415 -0
- package/dist/cli/auto-update.d.ts +117 -0
- package/dist/cli/auto-update.js +604 -0
- package/dist/cli/command-alias-ownership.d.ts +2 -0
- package/dist/cli/command-alias-ownership.js +14 -0
- package/dist/cli/command-aliases.d.ts +12 -0
- package/dist/cli/command-aliases.js +112 -0
- package/dist/cli/doctor.d.ts +2 -0
- package/dist/cli/doctor.js +175 -0
- package/dist/cli/host-capabilities.d.ts +12 -0
- package/dist/cli/host-capabilities.js +25 -0
- package/dist/cli/host-limits.d.ts +21 -0
- package/dist/cli/host-limits.js +83 -0
- package/dist/cli/install-config.d.ts +13 -0
- package/dist/cli/install-config.js +201 -0
- package/dist/cli/install-report.d.ts +2 -0
- package/dist/cli/install-report.js +180 -0
- package/dist/cli/install-tui.d.ts +12 -0
- package/dist/cli/install-tui.js +174 -0
- package/dist/cli/install.d.ts +2 -0
- package/dist/cli/install.js +264 -0
- package/dist/cli/json.d.ts +4 -0
- package/dist/cli/json.js +31 -0
- package/dist/cli/loop.d.ts +3 -0
- package/dist/cli/loop.js +135 -0
- package/dist/cli/lsp-capability.d.ts +17 -0
- package/dist/cli/lsp-capability.js +92 -0
- package/dist/cli/managed-skill-assets.d.ts +23 -0
- package/dist/cli/managed-skill-assets.js +117 -0
- package/dist/cli/model-catalog.d.ts +21 -0
- package/dist/cli/model-catalog.js +107 -0
- package/dist/cli/model-policy.d.ts +3 -0
- package/dist/cli/model-policy.js +143 -0
- package/dist/cli/model-routing.d.ts +5 -0
- package/dist/cli/model-routing.js +208 -0
- package/dist/cli/native-canonical-backup.d.ts +9 -0
- package/dist/cli/native-canonical-backup.js +96 -0
- package/dist/cli/native-canonical-cache.d.ts +9 -0
- package/dist/cli/native-canonical-cache.js +37 -0
- package/dist/cli/native-skill-install.d.ts +2 -0
- package/dist/cli/native-skill-install.js +128 -0
- package/dist/cli/native-skill-integrity.d.ts +25 -0
- package/dist/cli/native-skill-integrity.js +178 -0
- package/dist/cli/native-skill-tree.d.ts +12 -0
- package/dist/cli/native-skill-tree.js +104 -0
- package/dist/cli/native-skills.d.ts +22 -0
- package/dist/cli/native-skills.js +105 -0
- package/dist/cli/plugin-mutation.d.ts +4 -0
- package/dist/cli/plugin-mutation.js +89 -0
- package/dist/cli/scientific-visualization-dependencies.d.ts +18 -0
- package/dist/cli/scientific-visualization-dependencies.js +91 -0
- package/dist/cli/skill-loop.d.ts +3 -0
- package/dist/cli/skill-loop.js +649 -0
- package/dist/cli/types.d.ts +188 -0
- package/dist/cli/types.js +1 -0
- package/dist/cli/update-check.d.ts +2 -0
- package/dist/cli/update-check.js +15 -0
- package/dist/cli/update-notifier.d.ts +70 -0
- package/dist/cli/update-notifier.js +717 -0
- package/dist/cli/vendor-path-migration.d.ts +9 -0
- package/dist/cli/vendor-path-migration.js +96 -0
- package/dist/cli.d.ts +7 -0
- package/dist/cli.js +250 -0
- package/dist/commands.d.ts +331 -0
- package/dist/commands.js +600 -0
- package/dist/config-parser.d.ts +5 -0
- package/dist/config-parser.js +274 -0
- package/dist/config.d.ts +72 -0
- package/dist/config.js +157 -0
- package/dist/deliverable-hedge-guard.d.ts +26 -0
- package/dist/deliverable-hedge-guard.js +302 -0
- package/dist/durable-plan.d.ts +23 -0
- package/dist/durable-plan.js +349 -0
- package/dist/features.d.ts +828 -0
- package/dist/features.js +1109 -0
- package/dist/hooks.d.ts +17 -0
- package/dist/hooks.js +83 -0
- package/dist/ignition.d.ts +14 -0
- package/dist/ignition.js +33 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +30 -0
- package/dist/inert-data.d.ts +2 -0
- package/dist/inert-data.js +13 -0
- package/dist/knowledge.d.ts +98 -0
- package/dist/knowledge.js +961 -0
- package/dist/ledger.d.ts +181 -0
- package/dist/ledger.js +1179 -0
- package/dist/lit-fetch-classify.d.ts +8 -0
- package/dist/lit-fetch-classify.js +107 -0
- package/dist/lit-fetch-content.d.ts +2 -0
- package/dist/lit-fetch-content.js +43 -0
- package/dist/lit-fetch-http.d.ts +10 -0
- package/dist/lit-fetch-http.js +82 -0
- package/dist/lit-fetch-result.d.ts +2 -0
- package/dist/lit-fetch-result.js +65 -0
- package/dist/lit-fetch-ssrf.d.ts +9 -0
- package/dist/lit-fetch-ssrf.js +77 -0
- package/dist/lit-fetch-url.d.ts +3 -0
- package/dist/lit-fetch-url.js +28 -0
- package/dist/lit-fetch.d.ts +69 -0
- package/dist/lit-fetch.js +84 -0
- package/dist/lit-mark.d.ts +17 -0
- package/dist/lit-mark.js +129 -0
- package/dist/logger.d.ts +9 -0
- package/dist/logger.js +21 -0
- package/dist/model-route-policy.d.ts +25 -0
- package/dist/model-route-policy.js +129 -0
- package/dist/reader-facing-output.d.ts +3 -0
- package/dist/reader-facing-output.js +28 -0
- package/dist/rules/discovery.d.ts +36 -0
- package/dist/rules/discovery.js +270 -0
- package/dist/rules/engine.d.ts +43 -0
- package/dist/rules/engine.js +236 -0
- package/dist/rules/frontmatter.d.ts +16 -0
- package/dist/rules/frontmatter.js +179 -0
- package/dist/rules/glob.d.ts +12 -0
- package/dist/rules/glob.js +233 -0
- package/dist/rules/hooks.d.ts +25 -0
- package/dist/rules/hooks.js +75 -0
- package/dist/rules/output-style.d.ts +1 -0
- package/dist/rules/output-style.js +20 -0
- package/dist/scientific-visualization-banner.d.ts +1 -0
- package/dist/scientific-visualization-banner.js +2 -0
- package/dist/search-workflow-ideas.d.ts +67 -0
- package/dist/search-workflow-ideas.js +128 -0
- package/dist/secret-shapes.d.ts +9 -0
- package/dist/secret-shapes.js +63 -0
- package/dist/server.d.ts +6 -0
- package/dist/server.js +129 -0
- package/dist/session-lineage.d.ts +8 -0
- package/dist/session-lineage.js +12 -0
- package/dist/skill-loop/apply.d.ts +19 -0
- package/dist/skill-loop/apply.js +483 -0
- package/dist/skill-loop/config.d.ts +50 -0
- package/dist/skill-loop/config.js +215 -0
- package/dist/skill-loop/curator.d.ts +18 -0
- package/dist/skill-loop/curator.js +232 -0
- package/dist/skill-loop/ledger.d.ts +39 -0
- package/dist/skill-loop/ledger.js +344 -0
- package/dist/skill-loop/proposals.d.ts +48 -0
- package/dist/skill-loop/proposals.js +290 -0
- package/dist/skill-loop/storage.d.ts +72 -0
- package/dist/skill-loop/storage.js +817 -0
- package/dist/skill-loop/time.d.ts +2 -0
- package/dist/skill-loop/time.js +23 -0
- package/dist/skill-loop/transaction.d.ts +62 -0
- package/dist/skill-loop/transaction.js +836 -0
- package/dist/skill-loop/usage.d.ts +31 -0
- package/dist/skill-loop/usage.js +146 -0
- package/dist/skill-observer.d.ts +22 -0
- package/dist/skill-observer.js +1154 -0
- package/dist/skill-renames.d.ts +5 -0
- package/dist/skill-renames.js +8 -0
- package/dist/skills.d.ts +307 -0
- package/dist/skills.js +450 -0
- package/dist/stable-identity.d.ts +14 -0
- package/dist/stable-identity.js +15 -0
- package/dist/state.d.ts +25 -0
- package/dist/state.js +38 -0
- package/dist/strict-json.d.ts +2 -0
- package/dist/strict-json.js +94 -0
- package/dist/tool-guards.d.ts +34 -0
- package/dist/tool-guards.js +210 -0
- package/dist/tool-kit.d.ts +32 -0
- package/dist/tool-kit.js +75 -0
- package/dist/tools.d.ts +43 -0
- package/dist/tools.js +381 -0
- package/dist/uiux-visual-catalog.d.ts +50 -0
- package/dist/uiux-visual-catalog.js +103 -0
- package/dist/user-facing-markdown.d.ts +5 -0
- package/dist/user-facing-markdown.js +93 -0
- package/dist/workflow-families.d.ts +16 -0
- package/dist/workflow-families.js +95 -0
- package/docs/assets/cover.webp +0 -0
- package/docs/assets/litopencode-continuity-1600.webp +0 -0
- package/docs/assets/litopencode-ignition-1600.webp +0 -0
- package/docs/assets/readme/badge-license.svg +1 -0
- package/docs/assets/readme/badge-version.svg +1 -0
- package/docs/assets/readme/litopencode-clay-icon.png +0 -0
- package/docs/assets/readme/litopencode-wordmark.svg +5 -0
- package/docs/lit-mark.md +46 -0
- package/docs/migration.md +162 -0
- package/docs/privacy.md +82 -0
- package/docs/reference-Ko-KR.md +309 -0
- package/docs/reference.md +444 -0
- package/output-styles/asd-ste100-ko.md +41 -0
- package/output-styles/asd-ste100.md +40 -0
- package/output-styles/eli5-ko.md +13 -0
- package/output-styles/eli5.md +11 -0
- package/package.json +57 -0
- package/qa/fixtures/litfamily-harness-speed-v1.json +38 -0
- package/qa/harness-speed-contract.mjs +209 -0
- package/qa/harness-speed-v2-contract.mjs +213 -0
- package/qa/harness-speed-verdict.mjs +105 -0
- package/skills/agent-roster/SKILL.md +262 -0
- package/skills/autoconference/LICENSE +21 -0
- package/skills/autoconference/PROVENANCE.md +20 -0
- package/skills/autoconference/SKILL.md +125 -0
- package/skills/autoconference/assets/conference_template.md +76 -0
- package/skills/autoconference/assets/report_template.md +53 -0
- package/skills/autoconference/assets/synthesis_template.md +39 -0
- package/skills/autoconference/modes/analyze.md +255 -0
- package/skills/autoconference/modes/core.md +112 -0
- package/skills/autoconference/modes/debate.md +373 -0
- package/skills/autoconference/modes/plan.md +310 -0
- package/skills/autoconference/modes/resume.md +48 -0
- package/skills/autoconference/modes/ship.md +57 -0
- package/skills/autoconference/modes/survey.md +109 -0
- package/skills/autoconference/references/agent-prompts.md +134 -0
- package/skills/autoconference/references/conference-protocol.md +102 -0
- package/skills/autoconference/references/convergence-guide.md +167 -0
- package/skills/autoconference/references/core-principles.md +83 -0
- package/skills/autoconference/references/crash-recovery.md +104 -0
- package/skills/autoconference/references/results-logging.md +198 -0
- package/skills/autoconference/references/upstream-family-contract.md +130 -0
- package/skills/autoconference/references/visualization-guide.md +105 -0
- package/skills/autoconference/scripts/check_conference.sh +371 -0
- package/skills/autoconference/scripts/init_conference.py +625 -0
- package/skills/autoconference/scripts/style_presets.py +104 -0
- package/skills/autoresearch/LICENSE +21 -0
- package/skills/autoresearch/PROVENANCE.md +20 -0
- package/skills/autoresearch/SKILL.md +131 -0
- package/skills/autoresearch/assets/report_template.md +50 -0
- package/skills/autoresearch/assets/research_template.md +38 -0
- package/skills/autoresearch/assets/results_template.tsv +1 -0
- package/skills/autoresearch/modes/core.md +216 -0
- package/skills/autoresearch/modes/debug.md +235 -0
- package/skills/autoresearch/modes/fix.md +173 -0
- package/skills/autoresearch/modes/learn.md +91 -0
- package/skills/autoresearch/modes/plan.md +291 -0
- package/skills/autoresearch/modes/predict.md +266 -0
- package/skills/autoresearch/modes/reason.md +170 -0
- package/skills/autoresearch/modes/scenario.md +164 -0
- package/skills/autoresearch/modes/security.md +282 -0
- package/skills/autoresearch/modes/ship.md +49 -0
- package/skills/autoresearch/references/core-principles.md +80 -0
- package/skills/autoresearch/references/evaluator-contract.md +126 -0
- package/skills/autoresearch/references/investigation-techniques.md +205 -0
- package/skills/autoresearch/references/owasp-checklist.md +161 -0
- package/skills/autoresearch/references/persona-templates.md +232 -0
- package/skills/autoresearch/references/results-logging.md +96 -0
- package/skills/autoresearch/references/scenario-dimensions.md +178 -0
- package/skills/autoresearch/references/stride-model.md +196 -0
- package/skills/autoresearch/references/stuck-detection.md +107 -0
- package/skills/autoresearch/references/type-checklists.md +163 -0
- package/skills/autoresearch/references/upstream-family-contract.md +125 -0
- package/skills/autoresearch/references/visualization-guide.md +95 -0
- package/skills/autoresearch/scripts/check_progress.sh +272 -0
- package/skills/autoresearch/scripts/init_research.py +330 -0
- package/skills/autoresearch/scripts/run_with_deadline.py +164 -0
- package/skills/autoresearch/scripts/style_presets.py +104 -0
- package/skills/browser-drive/SKILL.md +133 -0
- package/skills/browser-drive/references/snapshot-act-loop.md +37 -0
- package/skills/browser-drive/scripts/capability-probe.mjs +262 -0
- package/skills/comment-checker/SKILL.md +171 -0
- package/skills/debugging/SKILL.md +202 -0
- package/skills/debugging/references/README.md +15 -0
- package/skills/debugging/references/escalation.md +43 -0
- package/skills/debugging/references/runtimes/README.md +17 -0
- package/skills/debugging/references/runtimes/bundled-js-binary.md +44 -0
- package/skills/debugging/references/runtimes/go.md +37 -0
- package/skills/debugging/references/runtimes/native-binary.md +44 -0
- package/skills/debugging/references/runtimes/node.md +43 -0
- package/skills/debugging/references/runtimes/python.md +41 -0
- package/skills/debugging/references/runtimes/rust.md +37 -0
- package/skills/debugging/references/tools.md +72 -0
- package/skills/deep-interview/SKILL.md +201 -0
- package/skills/doctor-installer/SKILL.md +252 -0
- package/skills/durable-litgoal/SKILL.md +248 -0
- package/skills/frontend-ui-ux/SKILL.md +70 -0
- package/skills/frontend-ui-ux/data/LICENSE +21 -0
- package/skills/frontend-ui-ux/data/PROVENANCE.json +1088 -0
- package/skills/frontend-ui-ux/data/THIRD-PARTY-NOTICE.txt +14 -0
- package/skills/frontend-ui-ux/data/design-intelligence.json +1 -0
- package/skills/frontend-ui-ux/references/_canonical-corpus/ATTRIBUTION.md +217 -0
- package/skills/frontend-ui-ux/references/_canonical-corpus/LICENSE +21 -0
- package/skills/frontend-ui-ux/references/_canonical-corpus/LICENSE-Apache-2.0.txt +201 -0
- package/skills/frontend-ui-ux/references/_canonical-corpus/manifest.json +867 -0
- package/skills/frontend-ui-ux/references/adaptive-layout.md +85 -0
- package/skills/frontend-ui-ux/references/brand-and-imagery.md +79 -0
- package/skills/frontend-ui-ux/references/complete-contract.md +282 -0
- package/skills/frontend-ui-ux/references/composition.md +87 -0
- package/skills/frontend-ui-ux/references/creative-directions.md +83 -0
- package/skills/frontend-ui-ux/references/design/README.md +248 -0
- package/skills/frontend-ui-ux/references/design/_INDEX.md +191 -0
- package/skills/frontend-ui-ux/references/design/airbnb.md +393 -0
- package/skills/frontend-ui-ux/references/design/airtable.md +92 -0
- package/skills/frontend-ui-ux/references/design/apple.md +250 -0
- package/skills/frontend-ui-ux/references/design/aside.md +209 -0
- package/skills/frontend-ui-ux/references/design/binance.md +348 -0
- package/skills/frontend-ui-ux/references/design/bmw.md +183 -0
- package/skills/frontend-ui-ux/references/design/brutalist-skill.md +92 -0
- package/skills/frontend-ui-ux/references/design/bugatti.md +271 -0
- package/skills/frontend-ui-ux/references/design/cal.md +262 -0
- package/skills/frontend-ui-ux/references/design/claude.md +315 -0
- package/skills/frontend-ui-ux/references/design/clay.md +307 -0
- package/skills/frontend-ui-ux/references/design/clickhouse.md +284 -0
- package/skills/frontend-ui-ux/references/design/clone-from-url.md +65 -0
- package/skills/frontend-ui-ux/references/design/cohere.md +269 -0
- package/skills/frontend-ui-ux/references/design/coinbase.md +132 -0
- package/skills/frontend-ui-ux/references/design/composio.md +310 -0
- package/skills/frontend-ui-ux/references/design/cursor.md +312 -0
- package/skills/frontend-ui-ux/references/design/design-system-architecture.md +244 -0
- package/skills/frontend-ui-ux/references/design/elevenlabs.md +268 -0
- package/skills/frontend-ui-ux/references/design/expo.md +284 -0
- package/skills/frontend-ui-ux/references/design/ferrari.md +317 -0
- package/skills/frontend-ui-ux/references/design/figma.md +223 -0
- package/skills/frontend-ui-ux/references/design/framer.md +249 -0
- package/skills/frontend-ui-ux/references/design/gpt-tasteskill.md +74 -0
- package/skills/frontend-ui-ux/references/design/hashicorp.md +281 -0
- package/skills/frontend-ui-ux/references/design/ibm.md +335 -0
- package/skills/frontend-ui-ux/references/design/image-to-code-skill.md +1228 -0
- package/skills/frontend-ui-ux/references/design/imagegen-brandkit.md +798 -0
- package/skills/frontend-ui-ux/references/design/imagegen-frontend-mobile.md +1465 -0
- package/skills/frontend-ui-ux/references/design/imagegen-frontend-web.md +987 -0
- package/skills/frontend-ui-ux/references/design/intercom.md +149 -0
- package/skills/frontend-ui-ux/references/design/kraken.md +128 -0
- package/skills/frontend-ui-ux/references/design/lamborghini.md +291 -0
- package/skills/frontend-ui-ux/references/design/layout-skill.md +107 -0
- package/skills/frontend-ui-ux/references/design/lazyweb.md +77 -0
- package/skills/frontend-ui-ux/references/design/linear.app.md +370 -0
- package/skills/frontend-ui-ux/references/design/lovable.md +301 -0
- package/skills/frontend-ui-ux/references/design/mastercard.md +368 -0
- package/skills/frontend-ui-ux/references/design/meta.md +369 -0
- package/skills/frontend-ui-ux/references/design/minimalist-skill.md +85 -0
- package/skills/frontend-ui-ux/references/design/minimax.md +260 -0
- package/skills/frontend-ui-ux/references/design/mintlify.md +329 -0
- package/skills/frontend-ui-ux/references/design/miro.md +111 -0
- package/skills/frontend-ui-ux/references/design/mistral.ai.md +264 -0
- package/skills/frontend-ui-ux/references/design/mongodb.md +269 -0
- package/skills/frontend-ui-ux/references/design/nike.md +366 -0
- package/skills/frontend-ui-ux/references/design/notion.md +312 -0
- package/skills/frontend-ui-ux/references/design/nvidia.md +296 -0
- package/skills/frontend-ui-ux/references/design/ollama.md +270 -0
- package/skills/frontend-ui-ux/references/design/opencode.ai.md +284 -0
- package/skills/frontend-ui-ux/references/design/output-skill.md +49 -0
- package/skills/frontend-ui-ux/references/design/pinterest.md +233 -0
- package/skills/frontend-ui-ux/references/design/playstation.md +367 -0
- package/skills/frontend-ui-ux/references/design/posthog.md +259 -0
- package/skills/frontend-ui-ux/references/design/raycast.md +271 -0
- package/skills/frontend-ui-ux/references/design/react-dev-tooling-skill.md +230 -0
- package/skills/frontend-ui-ux/references/design/redesign-skill.md +178 -0
- package/skills/frontend-ui-ux/references/design/renault.md +314 -0
- package/skills/frontend-ui-ux/references/design/replicate.md +264 -0
- package/skills/frontend-ui-ux/references/design/resend.md +306 -0
- package/skills/frontend-ui-ux/references/design/revolut.md +188 -0
- package/skills/frontend-ui-ux/references/design/runwayml.md +247 -0
- package/skills/frontend-ui-ux/references/design/sanity.md +360 -0
- package/skills/frontend-ui-ux/references/design/sentry.md +265 -0
- package/skills/frontend-ui-ux/references/design/shopify.md +353 -0
- package/skills/frontend-ui-ux/references/design/soft-skill.md +98 -0
- package/skills/frontend-ui-ux/references/design/spacex.md +197 -0
- package/skills/frontend-ui-ux/references/design/spotify.md +249 -0
- package/skills/frontend-ui-ux/references/design/starbucks.md +583 -0
- package/skills/frontend-ui-ux/references/design/stitch-design-example.md +121 -0
- package/skills/frontend-ui-ux/references/design/stitch-skill.md +184 -0
- package/skills/frontend-ui-ux/references/design/stripe.md +325 -0
- package/skills/frontend-ui-ux/references/design/supabase.md +258 -0
- package/skills/frontend-ui-ux/references/design/superhuman.md +255 -0
- package/skills/frontend-ui-ux/references/design/taste-skill.md +1206 -0
- package/skills/frontend-ui-ux/references/design/tesla.md +289 -0
- package/skills/frontend-ui-ux/references/design/theverge.md +342 -0
- package/skills/frontend-ui-ux/references/design/together.ai.md +266 -0
- package/skills/frontend-ui-ux/references/design/uber.md +298 -0
- package/skills/frontend-ui-ux/references/design/vercel.md +313 -0
- package/skills/frontend-ui-ux/references/design/vodafone.md +426 -0
- package/skills/frontend-ui-ux/references/design/voltagent.md +326 -0
- package/skills/frontend-ui-ux/references/design/warp.md +256 -0
- package/skills/frontend-ui-ux/references/design/webflow.md +95 -0
- package/skills/frontend-ui-ux/references/design/wired.md +281 -0
- package/skills/frontend-ui-ux/references/design/wise.md +176 -0
- package/skills/frontend-ui-ux/references/design/x.ai.md +260 -0
- package/skills/frontend-ui-ux/references/design/zapier.md +331 -0
- package/skills/frontend-ui-ux/references/designpowers/EVIDENCE.md +97 -0
- package/skills/frontend-ui-ux/references/designpowers/README.md +48 -0
- package/skills/frontend-ui-ux/references/designpowers/UPSTREAM.md +80 -0
- package/skills/frontend-ui-ux/references/designpowers/lane-a-direction.md +64 -0
- package/skills/frontend-ui-ux/references/designpowers/lane-b-execution.md +65 -0
- package/skills/frontend-ui-ux/references/designpowers/lane-c-review.md +65 -0
- package/skills/frontend-ui-ux/references/designpowers/lane-d-memory.md +83 -0
- package/skills/frontend-ui-ux/references/designpowers/orchestration.md +80 -0
- package/skills/frontend-ui-ux/references/designpowers/routing.md +79 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/LICENSE +21 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/accessibility-reviewer.md +83 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/content-writer.md +132 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-builder.md +109 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-critic.md +89 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-lead.md +113 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-scout.md +78 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-strategist.md +121 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/heuristic-evaluator.md +268 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/inspiration-scout.md +107 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/motion-designer.md +120 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/accessible-content/reference.md +101 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/adaptive-interfaces/reference.md +109 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/cognitive-accessibility/reference.md +107 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debate/reference.md +199 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debt-tracker/reference.md +174 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-handoff/reference.md +125 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-md/reference.md +106 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-retrospective/reference.md +266 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-review/reference.md +123 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-system-alignment/reference.md +120 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/designpowers-critique/reference.md +164 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/heuristic-evaluation/reference.md +85 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/inclusive-personas/reference.md +98 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/inspiration-scouting/reference.md +165 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/interaction-design/reference.md +122 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/motion-choreography/reference.md +81 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/research-planning/reference.md +96 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/responsive-patterns/reference.md +77 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/synthetic-user-testing/reference.md +192 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-feedback/reference.md +165 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-report/reference.md +78 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/token-architecture/reference.md +75 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/ui-composition/reference.md +117 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/usability-testing/reference.md +78 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/verification-before-shipping/reference.md +125 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/voice-and-tone/reference.md +79 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/writing-design-plans/reference.md +119 -0
- package/skills/frontend-ui-ux/references/evidence-review.md +103 -0
- package/skills/frontend-ui-ux/references/implementation-platforms.md +94 -0
- package/skills/frontend-ui-ux/references/inclusive-interface.md +85 -0
- package/skills/frontend-ui-ux/references/interaction-motion.md +93 -0
- package/skills/frontend-ui-ux/references/operating-lanes.md +80 -0
- package/skills/frontend-ui-ux/references/perfection/README.md +160 -0
- package/skills/frontend-ui-ux/references/perfection/react-perf-tooling.md +127 -0
- package/skills/frontend-ui-ux/references/performance-delivery.md +77 -0
- package/skills/frontend-ui-ux/references/product-direction.md +84 -0
- package/skills/frontend-ui-ux/references/redesign-playbook.md +88 -0
- package/skills/frontend-ui-ux/references/system-foundations.md +86 -0
- package/skills/frontend-ui-ux/references/taste-direction.md +55 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/README.md +659 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/charts.csv +26 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/colors.csv +162 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/icons.csv +106 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/landing.csv +35 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/products.csv +162 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/react-performance.csv +45 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/astro.csv +54 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/flutter.csv +53 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/html-tailwind.csv +56 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/jetpack-compose.csv +53 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nextjs.csv +53 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxt-ui.csv +51 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxtjs.csv +59 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react-native.csv +52 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react.csv +54 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/shadcn.csv +61 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/svelte.csv +54 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/swiftui.csv +51 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/vue.csv +50 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/styles.csv +85 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/typography.csv +74 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/ui-reasoning.csv +162 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/ux-guidelines.csv +100 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/web-interface.csv +31 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/scripts/core.py +262 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/scripts/design_system.py +1148 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/scripts/search.py +114 -0
- package/skills/frontend-ui-ux/references/visual-language.md +84 -0
- package/skills/frontend-ui-ux/references/visual-reconstruction.md +87 -0
- package/skills/frontend-ui-ux/schemas/design-contract-v1alpha1.json +570 -0
- package/skills/frontend-ui-ux/schemas/design-contract-v1beta1.json +32 -0
- package/skills/frontend-ui-ux/schemas/design-contract-v1beta2.json +34 -0
- package/skills/frontend-ui-ux/scripts/bounded-json.mjs +45 -0
- package/skills/frontend-ui-ux/scripts/canonical-json.mjs +26 -0
- package/skills/frontend-ui-ux/scripts/contract-error.mjs +15 -0
- package/skills/frontend-ui-ux/scripts/csv.mjs +64 -0
- package/skills/frontend-ui-ux/scripts/dataset.mjs +65 -0
- package/skills/frontend-ui-ux/scripts/design-contract.mjs +609 -0
- package/skills/frontend-ui-ux/scripts/import-design-intelligence.mjs +193 -0
- package/skills/frontend-ui-ux/scripts/retrieval.mjs +92 -0
- package/skills/frontend-ui-ux/scripts/stable-file-read.mjs +237 -0
- package/skills/frontend-ui-ux/scripts/stdin-json.mjs +16 -0
- package/skills/frontend-ui-ux/scripts/strict-json.mjs +102 -0
- package/skills/frontend-ui-ux/scripts/uiux.mjs +86 -0
- package/skills/frontend-ui-ux/scripts/verify-canonical-corpus.mjs +266 -0
- package/skills/lit-burnoff/SKILL.md +227 -0
- package/skills/lit-burnoff-file/SKILL.md +175 -0
- package/skills/lit-code/SKILL.md +266 -0
- package/skills/lit-code/references/README.md +18 -0
- package/skills/lit-code/references/go/README.md +12 -0
- package/skills/lit-code/references/go/concurrency.md +42 -0
- package/skills/lit-code/references/go/error-handling.md +47 -0
- package/skills/lit-code/references/go/testing.md +55 -0
- package/skills/lit-code/references/go/tooling.md +35 -0
- package/skills/lit-code/references/go/type-patterns.md +50 -0
- package/skills/lit-code/references/python/README.md +12 -0
- package/skills/lit-code/references/python/async.md +50 -0
- package/skills/lit-code/references/python/error-handling.md +44 -0
- package/skills/lit-code/references/python/testing.md +50 -0
- package/skills/lit-code/references/python/tooling.md +38 -0
- package/skills/lit-code/references/python/type-patterns.md +46 -0
- package/skills/lit-code/references/rust/README.md +12 -0
- package/skills/lit-code/references/rust/concurrency.md +45 -0
- package/skills/lit-code/references/rust/error-handling.md +43 -0
- package/skills/lit-code/references/rust/tooling.md +36 -0
- package/skills/lit-code/references/rust/type-patterns.md +46 -0
- package/skills/lit-code/references/rust/unsafe.md +47 -0
- package/skills/lit-code/references/typescript/README.md +11 -0
- package/skills/lit-code/references/typescript/error-handling.md +56 -0
- package/skills/lit-code/references/typescript/testing.md +42 -0
- package/skills/lit-code/references/typescript/tsconfig-strict.md +40 -0
- package/skills/lit-code/references/typescript/type-patterns.md +60 -0
- package/skills/lit-commit/SKILL.md +222 -0
- package/skills/lit-comprehend/SKILL.md +278 -0
- package/skills/lit-comprehend/assets/explainer-scaffold.html +104 -0
- package/skills/lit-comprehend/references/artifact-template.md +114 -0
- package/skills/lit-comprehend/references/micro-worlds.md +115 -0
- package/skills/lit-comprehend/scripts/verify-explainer.ts +339 -0
- package/skills/lit-crucible/SKILL.md +212 -0
- package/skills/lit-fetch/SKILL.md +242 -0
- package/skills/lit-handoff/SKILL.md +199 -0
- package/skills/lit-init/SKILL.md +214 -0
- package/skills/lit-korean/SKILL.md +231 -0
- package/skills/lit-plan/SKILL.md +351 -0
- package/skills/lit-plan/scripts/scaffold-plan.mjs +275 -0
- package/skills/lit-recap/SKILL.md +233 -0
- package/skills/lit-scientific-visualization/SKILL.md +175 -0
- package/skills/litresearch/SKILL.md +436 -0
- package/skills/litwork/SKILL.md +227 -0
- package/skills/lsp/SKILL.md +186 -0
- package/skills/lsp-setup/SKILL.md +187 -0
- package/skills/lsp-setup/references/README.md +40 -0
- package/skills/lsp-setup/references/bash.md +31 -0
- package/skills/lsp-setup/references/c-cpp.md +43 -0
- package/skills/lsp-setup/references/csharp.md +29 -0
- package/skills/lsp-setup/references/dart.md +25 -0
- package/skills/lsp-setup/references/elixir.md +30 -0
- package/skills/lsp-setup/references/go.md +33 -0
- package/skills/lsp-setup/references/haskell.md +27 -0
- package/skills/lsp-setup/references/java.md +28 -0
- package/skills/lsp-setup/references/julia.md +28 -0
- package/skills/lsp-setup/references/kotlin.md +25 -0
- package/skills/lsp-setup/references/lua.md +26 -0
- package/skills/lsp-setup/references/php.md +30 -0
- package/skills/lsp-setup/references/python.md +33 -0
- package/skills/lsp-setup/references/ruby.md +34 -0
- package/skills/lsp-setup/references/rust.md +34 -0
- package/skills/lsp-setup/references/swift.md +26 -0
- package/skills/lsp-setup/references/terraform.md +26 -0
- package/skills/lsp-setup/references/typescript.md +35 -0
- package/skills/lsp-setup/references/yaml.md +27 -0
- package/skills/lsp-setup/references/zig.md +28 -0
- package/skills/managed-skill-manifest.json +1386 -0
- package/skills/native-goal-verdict/SKILL.md +216 -0
- package/skills/refactor/SKILL.md +221 -0
- package/skills/reference-benchmark-claims/SKILL.md +204 -0
- package/skills/release-guardrails/SKILL.md +245 -0
- package/skills/review-work/SKILL.md +301 -0
- package/skills/rules/SKILL.md +196 -0
- package/skills/search-workflow-ideas/SKILL.md +223 -0
- package/skills/skill-observer/SKILL.md +148 -0
- package/skills/skill-observer/references/review-contract.md +95 -0
- package/skills/skill-rename-aliases.json +10 -0
- package/skills/start-work/SKILL.md +334 -0
- package/skills/structural-search/SKILL.md +234 -0
- package/skills/tool-guards/SKILL.md +223 -0
- package/skills/visual-qa/SKILL.md +61 -0
- package/skills/visual-qa/references/capture-playbook.md +105 -0
- package/skills/visual-qa/references/complete-contract.md +411 -0
- package/skills/visual-qa/schemas/evidence-manifest-v1alpha1.json +201 -0
- package/skills/visual-qa/schemas/evidence-manifest-v1beta1.json +141 -0
- package/skills/visual-qa/schemas/review-receipt-v1alpha1.json +113 -0
- package/skills/visual-qa/scripts/artifact.mjs +123 -0
- package/skills/visual-qa/scripts/bounded-json.mjs +47 -0
- package/skills/visual-qa/scripts/canonical-json.mjs +28 -0
- package/skills/visual-qa/scripts/capabilities.mjs +66 -0
- package/skills/visual-qa/scripts/contract-text.mjs +15 -0
- package/skills/visual-qa/scripts/design-contract.mjs +611 -0
- package/skills/visual-qa/scripts/evidence-evaluate.mjs +521 -0
- package/skills/visual-qa/scripts/evidence.mjs +271 -0
- package/skills/visual-qa/scripts/png-decode.mjs +146 -0
- package/skills/visual-qa/scripts/png.mjs +154 -0
- package/skills/visual-qa/scripts/review.mjs +188 -0
- package/skills/visual-qa/scripts/stdin-json.mjs +16 -0
- package/skills/visual-qa/scripts/strict-json.mjs +102 -0
- package/skills/visual-qa/scripts/tui.mjs +149 -0
- package/skills/visual-qa/scripts/visual-qa.mjs +90 -0
- package/skills/wikify/LICENSE +21 -0
- package/skills/wikify/PROVENANCE.md +18 -0
- package/skills/wikify/SKILL.md +176 -0
- package/skills/wikify/assets/home-template.md +44 -0
- package/skills/wikify/assets/maintenance-report-template.md +46 -0
- package/skills/wikify/assets/paper-source-note-template.md +137 -0
- package/skills/wikify/assets/source-note-template.md +45 -0
- package/skills/wikify/assets/wiki-rules-template.md +117 -0
- package/skills/wikify/modes/ingest.md +57 -0
- package/skills/wikify/modes/init.md +44 -0
- package/skills/wikify/modes/lint.md +60 -0
- package/skills/wikify/modes/query.md +38 -0
- package/skills/wikify/modes/save.md +45 -0
- package/skills/wikify/references-upstream-contract.md +758 -0
- package/skills/workflow-loop/SKILL.md +387 -0
- package/tools/check-pack-payload.mjs +410 -0
- package/tools/check-payload-substance.mjs +738 -0
- package/tools/check-version-lockstep.mjs +238 -0
- package/tools/gen-canonical-frontend-manifest.mjs +66 -0
- package/tools/gen-managed-skill-manifest.mjs +135 -0
- package/tools/harness-speed-local.mjs +261 -0
- package/tools/payload-reference-exemptions.json +49 -0
- package/tools/payload-substance-allowlist.json +46 -0
- package/tools/payload-substance-parity.json +571 -0
- package/tools/qa-real-surface-fixtures.mjs +428 -0
- package/tools/qa-real-surface-harness.mjs +173 -0
- package/tools/run-behavior-replacement-probes.mjs +296 -0
- package/tools/run-build.mjs +101 -0
- package/tools/run-harness-speed-local.mjs +52 -0
- package/tools/run-harness-speed-v2.mjs +36 -0
- package/tools/run-installed-resource-tamper-probe.mjs +62 -0
- package/tools/run-negative-gate-matrix.mjs +516 -0
- package/tools/run-rules-glob-differential.mjs +232 -0
- package/tools/run-typecheck.mjs +25 -0
- package/tools/run-uiux-visual-qa-scenarios.mjs +234 -0
- package/tools/run-wikify-surface-probe.mjs +170 -0
- package/tools/scan-legacy-tokens.mjs +431 -0
- package/tools/version-manifests.json +60 -0
- package/tsconfig.build.json +12 -0
- package/tsconfig.json +13 -0
- package/vendor/NOTICE.md +21 -0
- package/vendor/handoff/SKILL.md +199 -0
- package/vendor/handoff/evals/evals.json +154 -0
- package/vendor/handoff/examples/HANDOFF-example-generic-auth-refactor.md +97 -0
- package/vendor/handoff/templates/HANDOFF.md +121 -0
- package/vendor/licenses/022_handoff-MIT.txt +21 -0
- package/vendor/licenses/045_scientific-visualization-MIT.txt +21 -0
- package/vendor/provenance/022_handoff.md +19 -0
- package/vendor/provenance/045_scientific-visualization.md +36 -0
- package/vendor/scientific-visualization/SKILL.md +283 -0
- package/vendor/scientific-visualization/assets/color_palettes.py +197 -0
- package/vendor/scientific-visualization/assets/nature.mplstyle +75 -0
- package/vendor/scientific-visualization/assets/presentation.mplstyle +74 -0
- package/vendor/scientific-visualization/assets/publication.mplstyle +78 -0
- package/vendor/scientific-visualization/evals/evals.json +158 -0
- package/vendor/scientific-visualization/references/color_palettes.md +380 -0
- package/vendor/scientific-visualization/references/journal_requirements.md +359 -0
- package/vendor/scientific-visualization/references/matplotlib_examples.md +608 -0
- package/vendor/scientific-visualization/references/mdanalysis_martini_visualization.md +85 -0
- package/vendor/scientific-visualization/references/publication_guidelines.md +217 -0
- package/vendor/scientific-visualization/references/seaborn_for_publications.md +293 -0
- package/vendor/scientific-visualization/scripts/figure_export.py +238 -0
- package/vendor/scientific-visualization/scripts/style_presets.py +467 -0
- package/vendor/scientific-visualization/tests/test_figure_export.py +51 -0
- package/vendor/scientific-visualization/tests/test_style_presets.py +114 -0
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: autoresearch:plan
|
|
3
|
+
description: |
|
|
4
|
+
Planning-only 7-step setup wizard that produces a complete research proposal and
|
|
5
|
+
approval packet without writing files or executing an evaluator or research loop.
|
|
6
|
+
TRIGGER when: user wants to set up a research project; user wants to plan before
|
|
7
|
+
running the loop; user says "plan my research"; user has a goal but no research.md;
|
|
8
|
+
user invokes /autoresearch-plan.
|
|
9
|
+
DO NOT TRIGGER when: research.md already exists and the user wants to run the loop;
|
|
10
|
+
user wants a one-shot answer; user wants to debug, not optimize.
|
|
11
|
+
allowed-tools:
|
|
12
|
+
- Read
|
|
13
|
+
- Glob
|
|
14
|
+
- Grep
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# autoresearch:plan — Research Setup Wizard
|
|
18
|
+
|
|
19
|
+
## OpenCode authority envelope
|
|
20
|
+
|
|
21
|
+
This planning document is inert guidance. `lit-plan` records the objective, evaluator, finite budget,
|
|
22
|
+
canonical roots, proposed write set, rollback policy, and review gate before any mutation, including
|
|
23
|
+
an interactive run. Only explicit `/start-work` may perform bounded writes, commands, evaluation, or
|
|
24
|
+
reversion within an approved packet; this route itself remains read-only.
|
|
25
|
+
|
|
26
|
+
A planning-only 7-step interview that produces a proposed `research.md`, an optional evaluator draft,
|
|
27
|
+
and an approval packet before a single experiment runs. It must not write files, run an evaluator, or
|
|
28
|
+
execute a research loop. Every proposed write and evaluator command is handed to explicit `/start-work`
|
|
29
|
+
after the user approves the packet.
|
|
30
|
+
|
|
31
|
+
`scripts/init_research.py` is an incomplete scaffold helper, not a completed research artifact. Its
|
|
32
|
+
output deliberately retains labeled placeholders for the baseline, current approach, search space,
|
|
33
|
+
and references. The plan may propose a helper invocation, but explicit `/start-work` must run it,
|
|
34
|
+
complete the approved placeholders, validate the resulting fields, and record the baseline receipt
|
|
35
|
+
before any experiment.
|
|
36
|
+
|
|
37
|
+
## Wizard Protocol
|
|
38
|
+
|
|
39
|
+
**One step at a time.** Present the step title and question(s). Wait for the user's response. Summarize what you recorded ("Got it — the proposal will set metric: accuracy, direction: maximize"). Then proceed to the next step.
|
|
40
|
+
|
|
41
|
+
**Do not skip steps.** Each step produces a proposal field that feeds Step 7. If the user's answer is vague, probe once for specificity, then record your best interpretation and note it as an assumption.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Step 1 — Goal Clarification
|
|
46
|
+
|
|
47
|
+
**Probe for specificity. Vague goals produce useless research loops.**
|
|
48
|
+
|
|
49
|
+
Ask:
|
|
50
|
+
1. "What are you trying to improve or discover?"
|
|
51
|
+
2. "What does success look like in concrete terms — not 'better', but what number or outcome?"
|
|
52
|
+
3. "Is there anything this work must NOT break?"
|
|
53
|
+
|
|
54
|
+
**Probe rules:**
|
|
55
|
+
- If the answer contains words like "better", "faster", "improve" without a reference point → ask "compared to what baseline?"
|
|
56
|
+
- If no domain is mentioned → ask "what system/file/model/prompt are we working on?"
|
|
57
|
+
- If multiple goals are stated → ask "if you could only achieve one of these, which one?"
|
|
58
|
+
|
|
59
|
+
**Record:** `goal_statement` (1-2 sentences, specific and measurable)
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Step 2 — Metric Definition
|
|
64
|
+
|
|
65
|
+
**What to measure, how to measure it, and what direction counts as progress.**
|
|
66
|
+
|
|
67
|
+
Ask:
|
|
68
|
+
1. "What is the single number that determines if this experiment succeeded or failed?"
|
|
69
|
+
2. "Are you maximizing or minimizing it?"
|
|
70
|
+
3. "What value would make you stop and say 'we're done'? That's the target."
|
|
71
|
+
4. "Is this metric noisy? (e.g., varies between runs due to randomness or timing)"
|
|
72
|
+
|
|
73
|
+
**Guide the user if stuck:**
|
|
74
|
+
- Performance → latency (ms), throughput (req/s), memory (MB) — direction: minimize
|
|
75
|
+
- Quality → accuracy (%), F1, LLM-judge score (1-10) — direction: maximize
|
|
76
|
+
- Cost → tokens, dollars, lines of code — direction: minimize
|
|
77
|
+
|
|
78
|
+
**Record:** `metric_name`, `direction` (maximize/minimize), `target_value`, `noise_runs` (1 if deterministic, 3-5 if noisy)
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Step 3 — Search Space Mapping
|
|
83
|
+
|
|
84
|
+
**Enumerate what can change and, critically, what must not.**
|
|
85
|
+
|
|
86
|
+
Ask:
|
|
87
|
+
1. "What files, parameters, configs, or components can the agent modify?"
|
|
88
|
+
2. "What must never change? (test sets, APIs, data formats, production files)"
|
|
89
|
+
3. "Are there any values with hard limits? (e.g., latency must never exceed 2s even if the metric improves)"
|
|
90
|
+
|
|
91
|
+
**Probe rules:**
|
|
92
|
+
- If the allowed scope is very broad → ask "can you narrow it? Broad search spaces waste iterations."
|
|
93
|
+
- If no forbidden list is given → explicitly confirm: "So the agent has free rein except for what you just listed — is that right?"
|
|
94
|
+
|
|
95
|
+
**Record:** `allowed_changes` (bullet list), `forbidden_changes` (bullet list), `guard` (optional hard constraint)
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Step 4 — Constraint Elicitation
|
|
100
|
+
|
|
101
|
+
**Scope the loop before it starts.**
|
|
102
|
+
|
|
103
|
+
Ask:
|
|
104
|
+
1. "How many iterations should the agent run? (default: 20 — more = more thorough, takes longer)"
|
|
105
|
+
2. "Do you want the agent to pause for your review at any point, or run fully unattended?"
|
|
106
|
+
3. "Any resource limits? (time per experiment, memory, API rate limits, cost caps)"
|
|
107
|
+
|
|
108
|
+
**If the user wants a long unattended run:**
|
|
109
|
+
- Set `pause_every: never` only after a finite time and iteration budget is approved.
|
|
110
|
+
- Route execution through `/start-work`; this port starts no daemon or background shell process.
|
|
111
|
+
- Monitor from bounded ledger and local artifact receipts.
|
|
112
|
+
|
|
113
|
+
**If the user wants periodic reviews:**
|
|
114
|
+
- Ask: "Every how many iterations?" → set `pause_every: N`
|
|
115
|
+
|
|
116
|
+
**Record:** `max_iterations`, `pause_every`, `time_budget_per_experiment` (default: 5 minutes), any resource constraints
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## Step 5 — Evaluator Design
|
|
121
|
+
|
|
122
|
+
**Can measurement be automated? This determines loop speed and quality.**
|
|
123
|
+
|
|
124
|
+
Ask: "Can the success metric be measured by running a script? For example, `python evaluate.py` that outputs a number."
|
|
125
|
+
|
|
126
|
+
### If YES — draft an evaluator proposal:
|
|
127
|
+
|
|
128
|
+
Guide the user to produce a script that prints:
|
|
129
|
+
```json
|
|
130
|
+
{"pass": true, "score": 0.94}
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Ask clarifying questions:
|
|
134
|
+
- "Where is the test data / benchmark?"
|
|
135
|
+
- "What command runs the current implementation?"
|
|
136
|
+
- "What command extracts the metric from the output?"
|
|
137
|
+
|
|
138
|
+
Offer an inert `evaluate.py` starter draft based on their answers. Use the appropriate example below as
|
|
139
|
+
proposal text only. The approval packet must name the intended path, interpreter, inputs, expected JSON,
|
|
140
|
+
timeout, and root; explicit `/start-work` owns any later file write or execution.
|
|
141
|
+
|
|
142
|
+
**Template — timing/benchmark (minimize):**
|
|
143
|
+
```python
|
|
144
|
+
#!/usr/bin/env python3
|
|
145
|
+
import json, subprocess, statistics, time
|
|
146
|
+
times = []
|
|
147
|
+
for _ in range(3):
|
|
148
|
+
t0 = time.perf_counter()
|
|
149
|
+
subprocess.run(["python", "TARGET_SCRIPT.py"], check=True)
|
|
150
|
+
times.append(time.perf_counter() - t0)
|
|
151
|
+
median = statistics.median(times)
|
|
152
|
+
print(json.dumps({"pass": median < TARGET_VALUE, "score": median}))
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
**Template — accuracy/quality (maximize):**
|
|
156
|
+
```python
|
|
157
|
+
#!/usr/bin/env python3
|
|
158
|
+
import json, subprocess
|
|
159
|
+
result = subprocess.run(["python", "test_suite.py"], capture_output=True, text=True)
|
|
160
|
+
score = float(result.stdout.strip().split("score:")[-1].strip())
|
|
161
|
+
print(json.dumps({"pass": score > TARGET_VALUE, "score": score}))
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
**Keep policy:** Ask: "Keep only if strictly better than best so far (`score_improvement`), or keep anything that passes the threshold (`pass_only`)?"
|
|
165
|
+
|
|
166
|
+
### If NO — record manual evaluation:
|
|
167
|
+
|
|
168
|
+
Note in research.md: `Evaluator: _(none — agent judges manually)_`
|
|
169
|
+
|
|
170
|
+
Explain: "The agent will evaluate each experiment using its own judgment. This is slower and less reliable than a script — consider adding a script later."
|
|
171
|
+
|
|
172
|
+
**Record:** `evaluator_command` (or `none`), `keep_policy`
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## Step 6 — Baseline Verification Proposal
|
|
177
|
+
|
|
178
|
+
**Specify the baseline dry-run gate without executing it in `lit-plan`.** A measured baseline is mandatory
|
|
179
|
+
before the research loop starts, but explicit `/start-work` performs the approved evaluator run and records
|
|
180
|
+
stdout, stderr, exit status, and the parsed score.
|
|
181
|
+
|
|
182
|
+
If an evaluator was designed in Step 5, include this inert command in the approval packet:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
# Proposed evaluator dry run for explicit /start-work
|
|
186
|
+
python evaluate.py
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
**Expected output:** a JSON line like `{"pass": true, "score": 0.73}`
|
|
190
|
+
|
|
191
|
+
**Execution acceptance for `/start-work`:**
|
|
192
|
+
- On exit 0 and schema-valid output, record the score as iteration 0 and continue to the approved setup writes.
|
|
193
|
+
- If the user supplied a prior measured baseline, label its provenance and require `/start-work` to confirm it.
|
|
194
|
+
|
|
195
|
+
**Failure acceptance for `/start-work`:**
|
|
196
|
+
- On non-zero exit, timeout, invalid JSON, or crash, stop before setup writes and return a blocked receipt.
|
|
197
|
+
- Any evaluator correction requires a revised proposal and approval; do not improvise it inside planning.
|
|
198
|
+
|
|
199
|
+
If no evaluator (manual evaluation), ask the user for the current value and record it as a user-supplied,
|
|
200
|
+
weaker-evidence baseline in the proposal.
|
|
201
|
+
|
|
202
|
+
**Record:** `baseline_score` (iteration 0 value)
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## Step 7 — Proposal and Approval Packet
|
|
207
|
+
|
|
208
|
+
**Render the fully populated proposed `research.md` and request approval. Do not write it.**
|
|
209
|
+
|
|
210
|
+
If `scripts/init_research.py` is available, describe it as an incomplete scaffold and include this
|
|
211
|
+
proposed `/start-work` action:
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
python scripts/init_research.py \
|
|
215
|
+
--goal "GOAL_STATEMENT" \
|
|
216
|
+
--metric "METRIC_NAME" \
|
|
217
|
+
--direction "DIRECTION" \
|
|
218
|
+
--target "TARGET_VALUE" \
|
|
219
|
+
--evaluator "EVALUATOR_COMMAND" \
|
|
220
|
+
--output ./research-dir/
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
If the script is not available, include this intended `research.md` content in the proposal packet:
|
|
224
|
+
|
|
225
|
+
```markdown
|
|
226
|
+
# Research: GOAL_TITLE
|
|
227
|
+
|
|
228
|
+
## Goal
|
|
229
|
+
GOAL_STATEMENT
|
|
230
|
+
|
|
231
|
+
## Success Metric
|
|
232
|
+
- **Metric:** METRIC_NAME
|
|
233
|
+
- **Target:** TARGET_VALUE
|
|
234
|
+
- **Direction:** DIRECTION
|
|
235
|
+
|
|
236
|
+
## Constraints
|
|
237
|
+
- **Max iterations:** MAX_ITERATIONS
|
|
238
|
+
- **Time budget per experiment:** 5 minutes
|
|
239
|
+
- **Pause for review every:** PAUSE_EVERY
|
|
240
|
+
- **Evaluator:** EVALUATOR_COMMAND
|
|
241
|
+
- **Keep policy:** KEEP_POLICY
|
|
242
|
+
- **Guard:** GUARD (if any)
|
|
243
|
+
- **Noise runs:** NOISE_RUNS
|
|
244
|
+
- **Min delta:** 0
|
|
245
|
+
|
|
246
|
+
## Current Approach
|
|
247
|
+
BASELINE_DESCRIPTION
|
|
248
|
+
|
|
249
|
+
## Search Space
|
|
250
|
+
- **Allowed changes:** ALLOWED_CHANGES
|
|
251
|
+
- **Forbidden changes:** FORBIDDEN_CHANGES
|
|
252
|
+
|
|
253
|
+
## Context & References
|
|
254
|
+
REFERENCES (if any)
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
## History
|
|
259
|
+
| # | Change | Metric | Result | Timestamp |
|
|
260
|
+
|---|--------|--------|--------|-----------|
|
|
261
|
+
| 0 | Baseline | BASELINE_SCORE | -- | TODAY |
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
**Proposal packet:**
|
|
265
|
+
|
|
266
|
+
1. Name the canonical intended paths for `research.md`, optional `evaluate.py`, and result artifacts.
|
|
267
|
+
2. Include the evaluator dry-run, expected output, timeout, write set, forbidden paths, finite budget,
|
|
268
|
+
rollback behavior, stale-state rule, and cancellation rule.
|
|
269
|
+
3. If the helper is selected, identify every remaining placeholder and require `/start-work` to fill
|
|
270
|
+
and validate it before the baseline gate. Helper exit zero proves only scaffold creation.
|
|
271
|
+
4. Ask the user to approve or revise this approval packet. Only after approval, print the execution handoff:
|
|
272
|
+
|
|
273
|
+
```
|
|
274
|
+
Approve this proposal, then invoke explicit `/start-work` to run the evaluator gate, write the
|
|
275
|
+
approved files, and begin the bounded loop. Inspect receipts with `scripts/check_progress.sh`
|
|
276
|
+
only when that read path is part of the approved authority packet.
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
5. Chain suggestion: "After `/start-work` completes the loop, run `/autoresearch-ship` for readiness review and a human-only irreversible-action handoff."
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
## Output Checklist
|
|
284
|
+
|
|
285
|
+
Before declaring the planning wizard complete, verify:
|
|
286
|
+
|
|
287
|
+
- [ ] Proposed `research.md` has all sections populated (no `TBD` or `TODO` placeholders)
|
|
288
|
+
- [ ] Baseline source is identified; mechanical confirmation remains an explicit `/start-work` gate
|
|
289
|
+
- [ ] Evaluator draft and dry-run acceptance contract are included when automation was chosen
|
|
290
|
+
- [ ] Proposal packet and approval packet name exact writes, commands, roots, budget, rollback, and stops
|
|
291
|
+
- [ ] No file write or evaluator execution occurred in `lit-plan`
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: autoresearch:predict
|
|
3
|
+
description: |
|
|
4
|
+
Multi-perspective deliberation engine. Gathers independent positions from
|
|
5
|
+
diverse personas, runs cross-examination and rebuttal rounds, detects herd
|
|
6
|
+
behavior, and synthesizes a neutral judge verdict with confidence levels.
|
|
7
|
+
TRIGGER when: user wants multi-perspective prediction, forecasting,
|
|
8
|
+
scenario analysis, decision analysis, "what will happen if", "should we",
|
|
9
|
+
"predict the outcome of", structured devil's advocacy, or any question
|
|
10
|
+
benefiting from adversarial deliberation.
|
|
11
|
+
allowed-tools:
|
|
12
|
+
- Read
|
|
13
|
+
- Write
|
|
14
|
+
- Edit
|
|
15
|
+
- Bash
|
|
16
|
+
- WebFetch
|
|
17
|
+
- WebSearch
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# Predict: Multi-Perspective Deliberation Engine
|
|
21
|
+
|
|
22
|
+
## OpenCode authority envelope
|
|
23
|
+
|
|
24
|
+
This document is inert guidance. `lit-plan` must approve the question, evidence policy, finite budget,
|
|
25
|
+
canonical roots, output write set, rollback policy, and review gate before any mutation, including an
|
|
26
|
+
interactive run. Only explicit `/start-work` may perform bounded writes, commands, evaluation, or
|
|
27
|
+
reversion within that packet; without it this mode remains read-only.
|
|
28
|
+
|
|
29
|
+
A structured deliberation protocol that forces genuine disagreement before synthesis. Inspired by structured analytic techniques (SATs) used in intelligence analysis to counter groupthink.
|
|
30
|
+
|
|
31
|
+
## Autonomy Directive
|
|
32
|
+
|
|
33
|
+
**You are an autonomous deliberation agent.** Once the deliberation begins:
|
|
34
|
+
|
|
35
|
+
1. **NEVER STOP** between phases to ask for permission.
|
|
36
|
+
2. **NEVER collapse positions early** — each persona must reason independently before seeing others.
|
|
37
|
+
3. **NEVER let the judge synthesize before all rounds are complete.**
|
|
38
|
+
4. **Run all 8 phases sequentially without interruption.** The user may have walked away.
|
|
39
|
+
|
|
40
|
+
## The 8-Phase Deliberation Protocol
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
[Question] --> [Frame] --> [Personas] --> [Independent Positions]
|
|
44
|
+
--> [Position Summary] --> [Cross-Examination] --> [Rebuttal]
|
|
45
|
+
--> [Anti-Herd Detection] --> [Judge Synthesis] --> [predict-report.md]
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
### Phase 1 — Frame the Question Precisely
|
|
51
|
+
|
|
52
|
+
Before any persona speaks, the agent must sharpen the question:
|
|
53
|
+
|
|
54
|
+
- **Restate** the question in unambiguous terms. Remove vagueness.
|
|
55
|
+
- **Identify** the decision horizon (short-term? 5 years? upon release?).
|
|
56
|
+
- **Define** measurable outcomes where possible ("will X exceed Y by date Z").
|
|
57
|
+
- **List** what the question does NOT include (scope boundaries).
|
|
58
|
+
- **State** what a correct prediction would look like — what evidence would confirm or deny it.
|
|
59
|
+
|
|
60
|
+
Log the framed question to `predict-report.md` under `## Framed Question`.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
### Phase 2 — Enumerate Personas
|
|
65
|
+
|
|
66
|
+
Select 4–6 personas from `persona-templates.md` based on the question domain.
|
|
67
|
+
|
|
68
|
+
**Selection rules:**
|
|
69
|
+
- Always include at least one Optimist and one Pessimist for baseline polarity.
|
|
70
|
+
- Always include at least one domain Expert for technical grounding.
|
|
71
|
+
- For decisions with tail risks, add the Black Swan Hunter.
|
|
72
|
+
- For questions with a consensus-leaning answer, add the Devil's Advocate to stress-test it.
|
|
73
|
+
- For technical architecture decisions, swap in: Architect, Security Engineer, Product Manager, Operations.
|
|
74
|
+
|
|
75
|
+
**Persona count:** Default 4–6. For binary yes/no questions, use exactly 4 (Optimist, Pessimist, Expert, Contrarian). For multi-outcome forecasts, use 6.
|
|
76
|
+
|
|
77
|
+
Log selected personas and their roles to `predict-report.md` under `## Personas`.
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
### Phase 3 — Independent Position Gathering
|
|
82
|
+
|
|
83
|
+
**CRITICAL: Each persona reasons in complete isolation. No cross-contamination.**
|
|
84
|
+
|
|
85
|
+
For each persona (in sequence, not revealed to others):
|
|
86
|
+
1. Adopt the persona's reasoning style and biases (see `persona-templates.md`).
|
|
87
|
+
2. Reason from first principles given that persona's worldview.
|
|
88
|
+
3. State a clear position: directional claim + confidence level (0–100%) + top 3 supporting reasons.
|
|
89
|
+
4. Identify the single biggest risk to their position.
|
|
90
|
+
5. State what would change their mind.
|
|
91
|
+
|
|
92
|
+
**Format per persona (internal, used in Phase 4):**
|
|
93
|
+
```
|
|
94
|
+
[Persona Name]
|
|
95
|
+
Position: [directional claim]
|
|
96
|
+
Confidence: [0-100]%
|
|
97
|
+
Reasons: (1) ... (2) ... (3) ...
|
|
98
|
+
Key risk: [what could falsify this]
|
|
99
|
+
Would change if: [conditions]
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Do NOT share positions with other personas yet.
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
### Phase 4 — Position Summary (No Cross-Contamination)
|
|
107
|
+
|
|
108
|
+
Compile a clean summary table of all positions. This is the "pre-deliberation snapshot."
|
|
109
|
+
|
|
110
|
+
| Persona | Position | Confidence |
|
|
111
|
+
|---------|----------|------------|
|
|
112
|
+
| Optimist | ... | X% |
|
|
113
|
+
| Pessimist | ... | X% |
|
|
114
|
+
| ... | ... | X% |
|
|
115
|
+
|
|
116
|
+
Calculate **initial entropy** (diversity of positions):
|
|
117
|
+
- If all personas hold the same directional view → entropy = 0.0 (complete consensus)
|
|
118
|
+
- If positions are evenly split across directions → entropy = 1.0 (maximum diversity)
|
|
119
|
+
- Formula: `entropy = -sum(p_i * log2(p_i))` where p_i is fraction of personas holding each distinct position, normalized to [0, 1] range.
|
|
120
|
+
|
|
121
|
+
Log to `predict-report.md` under `## Phase 4: Pre-Deliberation Positions`.
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
### Phase 5 — Cross-Examination Round
|
|
126
|
+
|
|
127
|
+
Now personas see each other's positions. Each persona challenges the others.
|
|
128
|
+
|
|
129
|
+
**For each persona, generate 1–2 pointed challenges to the other personas:**
|
|
130
|
+
- A challenge must target a specific claim, not a general disagreement.
|
|
131
|
+
- Challenges should cite evidence, precedent, or logical gaps.
|
|
132
|
+
- A challenge is invalid if it merely restates the challenger's own position.
|
|
133
|
+
|
|
134
|
+
**Format:**
|
|
135
|
+
```
|
|
136
|
+
[Challenger] → [Target]: "[Specific challenge to their reasoning]"
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Log all challenges to `predict-report.md` under `## Phase 5: Cross-Examination`.
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
### Phase 6 — Rebuttal Round
|
|
144
|
+
|
|
145
|
+
Each persona responds to the challenges directed at them.
|
|
146
|
+
|
|
147
|
+
**Rules for rebuttals:**
|
|
148
|
+
- A rebuttal must directly address the challenge — no deflection.
|
|
149
|
+
- A persona MAY update their position after a rebuttal if genuinely convinced. If so, log the update and the reason.
|
|
150
|
+
- A persona may also HOLD their position but acknowledge the challenge's validity.
|
|
151
|
+
- Confidence scores may shift ±20% maximum based on rebuttal outcomes.
|
|
152
|
+
|
|
153
|
+
**Format:**
|
|
154
|
+
```
|
|
155
|
+
[Defender] responds to [Challenger]: "[Rebuttal]"
|
|
156
|
+
Position update: [maintained / shifted to X]
|
|
157
|
+
New confidence: [0-100]%
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Log all rebuttals to `predict-report.md` under `## Phase 6: Rebuttals`.
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
### Phase 7 — Anti-Herd Detection + Final Positions
|
|
165
|
+
|
|
166
|
+
After rebuttals, collect final positions from each persona.
|
|
167
|
+
|
|
168
|
+
**Calculate anti-herd metrics:**
|
|
169
|
+
|
|
170
|
+
```
|
|
171
|
+
flip_rate = (personas who changed directional position) / (total personas) × 100
|
|
172
|
+
final_entropy = diversity of final positions (same formula as Phase 4)
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
**Herd Warning Threshold:**
|
|
176
|
+
- If `flip_rate > 70%` → **HERD WARNING: Most personas converged. Re-examine for social pressure.**
|
|
177
|
+
- If `final_entropy < 0.5` → **HERD WARNING: Low diversity detected. Group may have collapsed to consensus prematurely.**
|
|
178
|
+
|
|
179
|
+
**If HERD WARNING is triggered:**
|
|
180
|
+
1. Flag prominently in the report.
|
|
181
|
+
2. Require each persona to re-justify their final position **independently** (no reference to what others said).
|
|
182
|
+
3. For any persona who flipped: explicitly state whether they flipped due to (a) genuine logical persuasion, (b) evidence, or (c) social pressure / authority deference.
|
|
183
|
+
4. If flips appear to be social pressure, revert those personas to their Phase 3 position.
|
|
184
|
+
|
|
185
|
+
**Anti-herd metrics to report:**
|
|
186
|
+
- `flip_rate`: X% of personas changed directional position
|
|
187
|
+
- `final_entropy`: [0.0 – 1.0]
|
|
188
|
+
- `herd_warning`: YES / NO
|
|
189
|
+
- `suspicious_flips`: list of personas whose flip may be social-pressure driven
|
|
190
|
+
|
|
191
|
+
Log to `predict-report.md` under `## Phase 7: Anti-Herd Analysis`.
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
### Phase 8 — Synthesis by Neutral Judge
|
|
196
|
+
|
|
197
|
+
The judge is **not a persona** — it has no prior position. It reads all phases and synthesizes.
|
|
198
|
+
|
|
199
|
+
**Judge synthesis protocol:**
|
|
200
|
+
1. Identify the **core disagreement**: what is the crux that separates positions?
|
|
201
|
+
2. Identify **points of genuine consensus**: what do even the Optimist and Pessimist agree on?
|
|
202
|
+
3. Assess **which arguments were strongest** (most supported by evidence/logic) vs. weakest.
|
|
203
|
+
4. Produce a **verdict**: directional claim + judge confidence (0–100%) + reasoning.
|
|
204
|
+
5. Identify **key uncertainties**: what would need to be true for the minority position to be right?
|
|
205
|
+
6. Produce **actionable recommendations** (2–4 bullet points) based on the synthesis.
|
|
206
|
+
7. Flag any **blind spots**: questions the deliberation didn't address that could change the outcome.
|
|
207
|
+
|
|
208
|
+
Log to `predict-report.md` under `## Phase 8: Judge Synthesis`.
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## Output: predict-report.md
|
|
213
|
+
|
|
214
|
+
The final report structure:
|
|
215
|
+
|
|
216
|
+
```markdown
|
|
217
|
+
# Predict Report: [Question Title]
|
|
218
|
+
Generated: [date]
|
|
219
|
+
|
|
220
|
+
## Framed Question
|
|
221
|
+
[Phase 1 output]
|
|
222
|
+
|
|
223
|
+
## Personas
|
|
224
|
+
[Phase 2: selected personas + roles]
|
|
225
|
+
|
|
226
|
+
## Phase 3+6: Per-Persona Positions
|
|
227
|
+
[Table: persona, initial position, final position, confidence delta]
|
|
228
|
+
|
|
229
|
+
## Phase 4: Pre-Deliberation Snapshot
|
|
230
|
+
[Position summary table + initial entropy]
|
|
231
|
+
|
|
232
|
+
## Phase 5: Cross-Examination
|
|
233
|
+
[All challenges]
|
|
234
|
+
|
|
235
|
+
## Phase 6: Rebuttals
|
|
236
|
+
[All rebuttals + position updates]
|
|
237
|
+
|
|
238
|
+
## Phase 7: Anti-Herd Analysis
|
|
239
|
+
- flip_rate: X%
|
|
240
|
+
- final_entropy: X.X
|
|
241
|
+
- herd_warning: YES/NO
|
|
242
|
+
- suspicious_flips: [list or none]
|
|
243
|
+
|
|
244
|
+
## Phase 8: Judge Synthesis
|
|
245
|
+
### Core Disagreement
|
|
246
|
+
### Points of Consensus
|
|
247
|
+
### Verdict
|
|
248
|
+
- Direction: [claim]
|
|
249
|
+
- Judge Confidence: X%
|
|
250
|
+
- Reasoning: [2-3 sentences]
|
|
251
|
+
### Key Uncertainties
|
|
252
|
+
### Actionable Recommendations
|
|
253
|
+
### Blind Spots
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
## Edge Cases
|
|
259
|
+
|
|
260
|
+
| Situation | Handling |
|
|
261
|
+
|-----------|----------|
|
|
262
|
+
| All personas agree from Phase 3 | Note early consensus, still run cross-exam to stress-test it |
|
|
263
|
+
| Only 1 persona flips | Not a herd — normal persuasion. No warning. |
|
|
264
|
+
| Question is unanswerable | Judge states this explicitly with reasoning |
|
|
265
|
+
| Personas deadlock 50/50 | Judge presents both scenarios as equally viable, recommends hedging strategy |
|
|
266
|
+
| Domain requires specialized personas | Replace generalist personas with domain templates from `persona-templates.md` |
|