@bolloon/bolloon-agent 0.1.0 → 0.1.1
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/package.json +1 -1
- package/dist/constraint-runtime/tests/agent.test.js +0 -16
- package/dist/constraint-runtime/tests/constraint.test.js +0 -41
- package/dist/constraint-runtime/tests/skill.test.js +0 -19
- package/dist/constraint-runtime/tests/thinking.test.js +0 -22
- package/dist/electron-preload.js +0 -15
- package/dist/electron-preload.js.map +0 -1
- package/dist/electron.js +0 -206
- package/dist/electron.js.map +0 -1
- package/dist/test/constraint-layer.test.js +0 -164
- package/dist/test/global-shared-context.test.js +0 -315
- package/dist/test/pi-sdk.test.js +0 -47
- package/dist/test/set-persona.test.js +0 -38
- package/dist/test/subagent-manager.test.js +0 -276
- package/dist/test/workflow-engine.test.js +0 -87
- package/dist/workflows/collaboration.js +0 -374
- package/dist/workflows/index.js +0 -54
- package/docs/agent-communication.md +0 -333
- package/docs/plans/2026-05-15-document-agent-design.md +0 -479
- package/docs/plans/2026-05-15-document-agent-implementation-plan.md +0 -792
- package/docs/plans/2026-05-16-chat-ui-design.md +0 -86
- package/docs/plans/2026-05-16-constraint-runtime-design.md +0 -106
- package/docs/plans/2026-05-16-constraint-runtime-implementation.md +0 -441
- package/docs//346/225/260/345/255/246/350/276/205/345/212/251/346/231/272/350/203/275/344/275/223-/346/240/270/345/277/203/346/225/210/346/236/234/345/256/232/344/271/211.md +0 -287
- package/src/bollharness/.boll/CLAUDE.md.template +0 -34
- package/src/bollharness/.boll/MANIFEST.yaml +0 -213
- package/src/bollharness/.boll/active-review-agents/.gitkeep +0 -0
- package/src/bollharness/.boll/agents/review-base.yaml +0 -108
- package/src/bollharness/.boll/deploy-allowlist.yaml +0 -38
- package/src/bollharness/.boll/inbox/schema/message-v1.json +0 -99
- package/src/bollharness/.boll/install-staging/.gitkeep +0 -0
- package/src/bollharness/.boll/issue-adapter.yaml +0 -31
- package/src/bollharness/.boll/plugins/boll-mode-toolkit/contracts/mode-contract.md +0 -85
- package/src/bollharness/.boll/plugins/boll-review-toolkit/contracts/evidence-packet-schema.json +0 -102
- package/src/bollharness/.boll/plugins/boll-review-toolkit/contracts/review-contract.yaml +0 -247
- package/src/bollharness/.boll/rules/backend-routes.md +0 -31
- package/src/bollharness/.boll/rules/closure-semantics.md +0 -30
- package/src/bollharness/.boll/rules/env-vars.md +0 -32
- package/src/bollharness/.boll/rules/hanis-protocol.md +0 -145
- package/src/bollharness/.boll/rules/repo-structure.md +0 -42
- package/src/bollharness/.boll/rules/review-agent-isolation.md +0 -73
- package/src/bollharness/.boll/rules/source-of-truth.md +0 -33
- package/src/bollharness/.boll/settings.json +0 -180
- package/src/bollharness/.boll/settings.json.template +0 -31
- package/src/bollharness/.boll/skills/arch/SKILL.md +0 -372
- package/src/bollharness/.boll/skills/bug-pipeline/SKILL.md +0 -168
- package/src/bollharness/.boll/skills/bug-triage/SKILL.md +0 -161
- package/src/bollharness/.boll/skills/context-chains/SKILL.md +0 -250
- package/src/bollharness/.boll/skills/context-chains/context-chain-index.md +0 -48
- package/src/bollharness/.boll/skills/context-chains/work-type-extractors/code_change_extractor.ts +0 -142
- package/src/bollharness/.boll/skills/context-chains/work-type-extractors/debugging_extractor.ts +0 -126
- package/src/bollharness/.boll/skills/context-chains/work-type-extractors/design_extractor.ts +0 -148
- package/src/bollharness/.boll/skills/context-chains/work-type-extractors/planning_extractor.ts +0 -162
- package/src/bollharness/.boll/skills/context-chains/work-type-extractors/question_extractor.ts +0 -116
- package/src/bollharness/.boll/skills/context-chains/work-type-extractors/review_extractor.ts +0 -136
- package/src/bollharness/.boll/skills/crystal-learn/SKILL.md +0 -93
- package/src/bollharness/.boll/skills/crystal-learn/invariants/INV-0.md +0 -34
- package/src/bollharness/.boll/skills/crystal-learn/invariants/INV-1.md +0 -34
- package/src/bollharness/.boll/skills/crystal-learn/invariants/INV-2.md +0 -35
- package/src/bollharness/.boll/skills/crystal-learn/invariants/INV-3.md +0 -34
- package/src/bollharness/.boll/skills/crystal-learn/invariants/INV-4.md +0 -43
- package/src/bollharness/.boll/skills/crystal-learn/invariants/INV-5.md +0 -34
- package/src/bollharness/.boll/skills/crystal-learn/invariants/INV-6.md +0 -37
- package/src/bollharness/.boll/skills/crystal-learn/invariants/INV-7.md +0 -46
- package/src/bollharness/.boll/skills/guardian-fixer/PROMPT.md +0 -415
- package/src/bollharness/.boll/skills/guardian-fixer/SKILL.md +0 -320
- package/src/bollharness/.boll/skills/harness-dev/SKILL.md +0 -93
- package/src/bollharness/.boll/skills/harness-dev/examples/README.md +0 -227
- package/src/bollharness/.boll/skills/harness-dev-handoff/SKILL.md +0 -165
- package/src/bollharness/.boll/skills/harness-eng/SKILL.md +0 -110
- package/src/bollharness/.boll/skills/harness-eng-test/SKILL.md +0 -79
- package/src/bollharness/.boll/skills/harness-lab/SKILL.md +0 -170
- package/src/bollharness/.boll/skills/harness-ops/SKILL.md +0 -57
- package/src/bollharness/.boll/skills/harness-voice/SKILL.md +0 -183
- package/src/bollharness/.boll/skills/judgment/SKILL.md +0 -115
- package/src/bollharness/.boll/skills/lead/SKILL.md +0 -245
- package/src/bollharness/.boll/skills/lead/install-wow-harness.md +0 -77
- package/src/bollharness/.boll/skills/lead/ref-review-sop.md +0 -91
- package/src/bollharness/.boll/skills/lead/ref-stages.md +0 -129
- package/src/bollharness/.boll/skills/skill-discovery/SKILL.md +0 -169
- package/src/bollharness/.boll/skills/task-arch/SKILL.md +0 -106
- package/src/bollharness/.boll/skills/toolkit/SKILL.md +0 -57
- package/src/bollharness/.boll/tasks/.gitkeep +0 -0
- package/src/bollharness/.boll/toolkit-index.yaml +0 -112
- package/src/bollharness/.claude/agents/review-base.yaml +0 -108
- package/src/bollharness/.claude/plugins/boll-mode-toolkit/.claude-plugin/plugin.json +0 -44
- package/src/bollharness/.claude/plugins/boll-review-toolkit/.claude-plugin/plugin.json +0 -24
- package/src/bollharness/.claude/plugins/boll-review-toolkit/contracts/evidence-packet-schema.json +0 -102
- package/src/bollharness/.claude/plugins/boll-review-toolkit/contracts/review-contract.yaml +0 -247
- package/src/bollharness/.claude/settings.json +0 -157
- package/src/bollharness/.claude/skills/arch/SKILL.md +0 -64
- package/src/bollharness/.claude/skills/crystal-learn/SKILL.md +0 -93
- package/src/bollharness/.claude/skills/guardian-fixer/PROMPT.md +0 -44
- package/src/bollharness/.claude/skills/guardian-fixer/SKILL.md +0 -324
- package/src/bollharness/.claude/skills/harness-dev/SKILL.md +0 -93
- package/src/bollharness/.claude/skills/harness-dev/examples/README.md +0 -17
- package/src/bollharness/.claude/skills/harness-dev-handoff/SKILL.md +0 -165
- package/src/bollharness/.claude/skills/harness-eng/SKILL.md +0 -183
- package/src/bollharness/.claude/skills/harness-eng-test/SKILL.md +0 -57
- package/src/bollharness/.claude/skills/harness-ops/SKILL.md +0 -57
- package/src/bollharness/.claude/skills/harness-voice/SKILL.md +0 -84
- package/src/bollharness/.claude/skills/lead/INDEX.md +0 -28
- package/src/bollharness/.claude/skills/lead/SKILL.md +0 -24
- package/src/bollharness/.claude/skills/lead/install-wow-harness.md +0 -77
- package/src/bollharness/.claude/skills/lead/ref-review-sop.md +0 -48
- package/src/bollharness/.claude/skills/lead/ref-stages.md +0 -58
- package/src/bollharness/.claude/skills/plan-lock/SKILL.md +0 -74
- package/src/bollharness/.claude/skills/skill-discovery/SKILL.md +0 -120
- package/src/bollharness/.claude/skills/task-arch/SKILL.md +0 -106
- package/src/bollharness/.claude/skills/toolkit/SKILL.md +0 -57
- package/src/bollharness/.claude/skills/toolkit/list.sh +0 -92
- package/src/bollharness/.githooks/pre-commit +0 -21
- package/src/bollharness/.github/workflows/ci.yml +0 -88
- package/src/bollharness/CLAUDE.md +0 -73
- package/src/bollharness/README.md +0 -143
- package/src/bollharness/README.zh-CN.md +0 -131
- package/src/bollharness/docs/decisions/ADR-030-guard-signal-protocol-and-governance-reload.md +0 -1076
- package/src/bollharness/docs/decisions/ADR-038-harness-optimization-strategy.md +0 -2039
- package/src/bollharness/docs/decisions/ADR-041-codex-claude-code-division-of-labor.md +0 -128
- package/src/bollharness/docs/decisions/ADR-H1-crystal-learn-revival.md +0 -188
- package/src/bollharness/docs/decisions/ADR-H2-identity-isolation.md +0 -183
- package/src/bollharness/docs/decisions/ADR-H3-memory-scope.md +0 -133
- package/src/bollharness/docs/decisions/ADR-H4-prompt-governance.md +0 -146
- package/src/bollharness/docs/decisions/ADR-H5-gate-quantization.md +0 -212
- package/src/bollharness/docs/decisions/ADR-H6-state-file-health.md +0 -211
- package/src/bollharness/docs/decisions/ADR-H8-issue-and-doc-compliance.md +0 -202
- package/src/bollharness/docs/decisions/ADR-H9-mailbox.md +0 -231
- package/src/bollharness/docs/decisions/PLAN-H1-crystal-learn-revival.md +0 -270
- package/src/bollharness/docs/decisions/PLAN-H2-identity-isolation.md +0 -291
- package/src/bollharness/docs/decisions/PLAN-H3-memory-scope.md +0 -228
- package/src/bollharness/docs/decisions/PLAN-H4-prompt-governance.md +0 -227
- package/src/bollharness/docs/decisions/PLAN-H5-gate-quantization.md +0 -239
- package/src/bollharness/docs/decisions/PLAN-H6-state-file-health.md +0 -325
- package/src/bollharness/docs/decisions/PLAN-H8-issue-and-doc-compliance.md +0 -242
- package/src/bollharness/docs/decisions/PLAN-H9-mailbox.md +0 -378
- package/src/bollharness/docs/launch-article-en.md +0 -276
- package/src/bollharness/docs/launch-article-zh.md +0 -305
- package/src/bollharness/docs/practice.html +0 -356
- package/src/bollharness/docs/practice.md +0 -82
- package/src/bollharness/docs/research/round-1/README.md +0 -11
- package/src/bollharness/docs/research/round-2/README.md +0 -11
- package/src/bollharness/docs/research/round-3/README.md +0 -11
- package/src/bollharness/docs/research/round-4/README.md +0 -11
- package/src/bollharness/docs/research/round-5/README.md +0 -11
- package/src/bollharness/docs/research/round-6/README.md +0 -11
- package/src/bollharness/package-lock.json +0 -48
- package/src/bollharness/reference/boll-reference/.claude/rules/backend-routes.md +0 -268
- package/src/bollharness/reference/boll-reference/.claude/rules/bridge.md +0 -20
- package/src/bollharness/reference/boll-reference/.claude/rules/closure-semantics.md +0 -30
- package/src/bollharness/reference/boll-reference/.claude/rules/coaching.md +0 -13
- package/src/bollharness/reference/boll-reference/.claude/rules/env-vars.md +0 -50
- package/src/bollharness/reference/boll-reference/.claude/rules/hackathon.md +0 -12
- package/src/bollharness/reference/boll-reference/.claude/rules/repo-structure.md +0 -184
- package/src/bollharness/reference/boll-reference/.claude/rules/review-agent-isolation.md +0 -112
- package/src/bollharness/reference/boll-reference/.claude/rules/scenes.md +0 -12
- package/src/bollharness/reference/boll-reference/.claude/skills/arch/SKILL.md +0 -551
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-animation/SKILL.md +0 -26
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-bridge/SKILL.md +0 -227
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-bridge/agents/openai.yaml +0 -4
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-bridge/references/bridge-failure-taxonomy.md +0 -142
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-bridge/references/bridge-validation-ladder.md +0 -107
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-crystal/SKILL.md +0 -893
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-crystal-learn/SKILL.md +0 -89
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-dev/SKILL.md +0 -93
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-dev/examples/README.md +0 -209
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-dev-handoff/SKILL.md +0 -165
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-eng/SKILL.md +0 -110
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-eng-frontend/SKILL.md +0 -203
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-eng-hdc/SKILL.md +0 -27
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-eng-orchestrator/SKILL.md +0 -28
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-eng-prompt/SKILL.md +0 -27
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-eng-test/SKILL.md +0 -79
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-lab/SKILL.md +0 -372
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-run/SKILL.md +0 -437
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-ux-appstore/SKILL.md +0 -27
- package/src/bollharness/reference/boll-reference/.claude/skills/boll-voice/SKILL.md +0 -442
- package/src/bollharness/reference/boll-reference/.claude/skills/guardian-fixer/PROMPT.md +0 -421
- package/src/bollharness/reference/boll-reference/.claude/skills/guardian-fixer/SKILL.md +0 -326
- package/src/bollharness/reference/boll-reference/.claude/skills/lead/SKILL.md +0 -155
- package/src/bollharness/reference/boll-reference/.claude/skills/lead/ref-review-sop.md +0 -91
- package/src/bollharness/reference/boll-reference/.claude/skills/lead/ref-stages.md +0 -129
- package/src/bollharness/reference/boll-reference/.claude/skills/nature-designer/output/skill-map-preview.png +0 -0
- package/src/bollharness/reference/boll-reference/.claude/skills/nature-designer/output/skill-map-v2.png +0 -0
- package/src/bollharness/reference/boll-reference/.claude/skills/nature-designer/output/skill-map-v3.png +0 -0
- package/src/bollharness/reference/boll-reference/.claude/skills/nature-designer/output/skill-map-v4.png +0 -0
- package/src/bollharness/reference/boll-reference/.claude/skills/plan-lock/SKILL.md +0 -425
- package/src/bollharness/reference/boll-reference/.claude/skills/plan-lock/ref-three-checks.md +0 -62
- package/src/bollharness/reference/boll-reference/.claude/skills/plan-lock/ref-wp-templates.md +0 -78
- package/src/bollharness/reference/boll-reference/.claude/skills/task-arch/SKILL.md +0 -76
- package/src/bollharness/reference/boll-reference/.claude/skills/vibedevteam-graph/SKILL.md +0 -57
- package/src/bollharness/reference/boll-reference/.claude/skills/vibedevteam-graph/beads-graph.sh +0 -153
- package/src/bollharness/reference/boll-reference/.claude/skills/vibedevteam-init/SKILL.md +0 -52
- package/src/bollharness/reference/boll-reference/.claude/skills/vibedevteam-init/beads-auto-link.sh +0 -76
- package/src/bollharness/reference/boll-reference/.claude/skills/vibedevteam-sync/SKILL.md +0 -50
- package/src/bollharness/reference/boll-reference/.claude/skills/vibedevteam-sync/beads-sync-proj.sh +0 -108
- package/src/bollharness/reference/boll-reference/docs/architecture/AGENT-PROFILE.md +0 -151
- package/src/bollharness/reference/boll-reference/docs/architecture/COST-STRUCTURE.md +0 -56
- package/src/bollharness/reference/boll-reference/docs/architecture/INDEX.md +0 -76
- package/src/bollharness/reference/boll-reference/docs/architecture/MODULE1-INTENT-FIELD.md +0 -116
- package/src/bollharness/reference/boll-reference/docs/architecture/MODULE2-CRYSTALLIZATION.md +0 -200
- package/src/bollharness/reference/boll-reference/docs/architecture/PRINCIPLES.md +0 -84
- package/src/bollharness/reference/boll-reference/docs/architecture/PROTOCOL-CORE.md +0 -209
- package/src/bollharness/reference/boll-reference/docs/architecture/VISION.md +0 -181
- package/src/bollharness/reference/boll-reference/docs/architecture/discussions/D-01-MARKET-SCENE-PROTOCOL.md +0 -754
- package/src/bollharness/reference/boll-reference/scripts/hooks/stop-evaluator.md +0 -57
- package/src/bollharness/scripts/context-fragments/artifact-linkage.md +0 -14
- package/src/bollharness/scripts/context-fragments/auth-consumers.md +0 -17
- package/src/bollharness/scripts/context-fragments/bridge-constitution.md +0 -13
- package/src/bollharness/scripts/context-fragments/catalyst-distributed.md +0 -18
- package/src/bollharness/scripts/context-fragments/closure-checklist.md +0 -13
- package/src/bollharness/scripts/context-fragments/contract-consumers.md +0 -15
- package/src/bollharness/scripts/context-fragments/db-shared-structures.md +0 -15
- package/src/bollharness/scripts/context-fragments/fixed-three-layers.md +0 -19
- package/src/bollharness/scripts/context-fragments/general-dev-principles.md +0 -11
- package/src/bollharness/scripts/context-fragments/issue-first.md +0 -8
- package/src/bollharness/scripts/context-fragments/mcp-parity.md +0 -16
- package/src/bollharness/scripts/context-fragments/pi-agent-operations.md +0 -74
- package/src/bollharness/scripts/context-fragments/protocol-consumers.md +0 -15
- package/src/bollharness/scripts/context-fragments/run-events-consumers.md +0 -15
- package/src/bollharness/scripts/context-fragments/scene-fidelity.md +0 -13
- package/src/bollharness/scripts/context-fragments/truth-source-hierarchy.md +0 -15
- package/src/bollharness/scripts/context-fragments/two-language.md +0 -15
- package/src/bollharness/scripts/context-fragments/version-sources.md +0 -14
- package/src/bollharness/scripts/hooks/stop-evaluator.md +0 -83
- package/src/bollharness/templates/scaffold/.boll/guard/.gitkeep +0 -0
- package/src/bollharness/templates/scaffold/.boll/metrics/.gitkeep +0 -0
- package/src/bollharness/templates/scaffold/.boll/state/.gitkeep +0 -0
- package/src/bollharness/templates/scaffold/CLAUDE.md +0 -89
- package/src/bollharness/templates/scaffold/docs/INDEX.md +0 -3
- package/src/bollharness/templates/scaffold/docs/decisions/ADR_TEMPLATE.md +0 -38
- package/src/bollharness/templates/scaffold/docs/decisions/PLAN_TEMPLATE.md +0 -45
- package/src/bollharness/templates/scaffold/docs/decisions/tasks/.gitkeep +0 -2
- package/src/bollharness/templates/scaffold/docs/issues/.gitkeep +0 -0
- package/src/bollharness/templates/scaffold/docs/issues/GUARD_ISSUE_TEMPLATE.md +0 -35
- package/src/bollharness/templates/scaffold/docs/issues/ISSUE_TEMPLATE.md +0 -51
- package/src/bollharness/tsconfig.json +0 -26
- package/src/constraint-runtime/package-lock.json +0 -48
- package/src/constraint-runtime/package.json +0 -34
- package/src/constraint-runtime/src/_archive_helper.ts +0 -16
- package/src/constraint-runtime/src/agent/coordinator.ts +0 -71
- package/src/constraint-runtime/src/agent/index.ts +0 -1
- package/src/constraint-runtime/src/assistant/index.ts +0 -15
- package/src/constraint-runtime/src/bootstrap/index.ts +0 -15
- package/src/constraint-runtime/src/bootstrap_graph.ts +0 -17
- package/src/constraint-runtime/src/bridge/index.ts +0 -15
- package/src/constraint-runtime/src/buddy/index.ts +0 -15
- package/src/constraint-runtime/src/cli/index.ts +0 -15
- package/src/constraint-runtime/src/command_graph.ts +0 -20
- package/src/constraint-runtime/src/commands.ts +0 -83
- package/src/constraint-runtime/src/components/index.ts +0 -15
- package/src/constraint-runtime/src/constants/index.ts +0 -15
- package/src/constraint-runtime/src/constraint/budget.ts +0 -25
- package/src/constraint-runtime/src/constraint/index.ts +0 -3
- package/src/constraint-runtime/src/constraint/permission.ts +0 -28
- package/src/constraint-runtime/src/context.ts +0 -45
- package/src/constraint-runtime/src/coordinator/index.ts +0 -15
- package/src/constraint-runtime/src/cost_hook.ts +0 -6
- package/src/constraint-runtime/src/cost_tracker.ts +0 -9
- package/src/constraint-runtime/src/deferred_init.ts +0 -18
- package/src/constraint-runtime/src/direct_modes.ts +0 -13
- package/src/constraint-runtime/src/dynamic-tool-loader.ts +0 -115
- package/src/constraint-runtime/src/entrypoints/index.ts +0 -15
- package/src/constraint-runtime/src/execution_registry.ts +0 -41
- package/src/constraint-runtime/src/history.ts +0 -16
- package/src/constraint-runtime/src/hooks/index.ts +0 -15
- package/src/constraint-runtime/src/index.ts +0 -28
- package/src/constraint-runtime/src/ink.ts +0 -4
- package/src/constraint-runtime/src/keybindings/index.ts +0 -15
- package/src/constraint-runtime/src/memdir/index.ts +0 -15
- package/src/constraint-runtime/src/migrations/index.ts +0 -15
- package/src/constraint-runtime/src/models.ts +0 -49
- package/src/constraint-runtime/src/moreright/index.ts +0 -15
- package/src/constraint-runtime/src/native_ts/index.ts +0 -15
- package/src/constraint-runtime/src/output_styles/index.ts +0 -15
- package/src/constraint-runtime/src/parity_audit.ts +0 -23
- package/src/constraint-runtime/src/plugins/index.ts +0 -15
- package/src/constraint-runtime/src/port_manifest.ts +0 -20
- package/src/constraint-runtime/src/prefetch.ts +0 -17
- package/src/constraint-runtime/src/query.ts +0 -7
- package/src/constraint-runtime/src/reference_data/archive_surface_snapshot.json +0 -63
- package/src/constraint-runtime/src/reference_data/commands_snapshot.json +0 -1037
- package/src/constraint-runtime/src/reference_data/subsystems/OpenCLI.json +0 -10
- package/src/constraint-runtime/src/reference_data/subsystems/PolymarketSDK.json +0 -12
- package/src/constraint-runtime/src/reference_data/subsystems/SafeSDK.json +0 -14
- package/src/constraint-runtime/src/reference_data/subsystems/assistant.json +0 -8
- package/src/constraint-runtime/src/reference_data/subsystems/bootstrap.json +0 -8
- package/src/constraint-runtime/src/reference_data/subsystems/bridge.json +0 -32
- package/src/constraint-runtime/src/reference_data/subsystems/buddy.json +0 -13
- package/src/constraint-runtime/src/reference_data/subsystems/cli.json +0 -26
- package/src/constraint-runtime/src/reference_data/subsystems/components.json +0 -32
- package/src/constraint-runtime/src/reference_data/subsystems/constants.json +0 -28
- package/src/constraint-runtime/src/reference_data/subsystems/coordinator.json +0 -8
- package/src/constraint-runtime/src/reference_data/subsystems/entrypoints.json +0 -15
- package/src/constraint-runtime/src/reference_data/subsystems/hooks.json +0 -32
- package/src/constraint-runtime/src/reference_data/subsystems/keybindings.json +0 -21
- package/src/constraint-runtime/src/reference_data/subsystems/memdir.json +0 -15
- package/src/constraint-runtime/src/reference_data/subsystems/migrations.json +0 -18
- package/src/constraint-runtime/src/reference_data/subsystems/moreright.json +0 -8
- package/src/constraint-runtime/src/reference_data/subsystems/native_ts.json +0 -11
- package/src/constraint-runtime/src/reference_data/subsystems/outputStyles.json +0 -8
- package/src/constraint-runtime/src/reference_data/subsystems/plugins.json +0 -9
- package/src/constraint-runtime/src/reference_data/subsystems/remote.json +0 -11
- package/src/constraint-runtime/src/reference_data/subsystems/schemas.json +0 -8
- package/src/constraint-runtime/src/reference_data/subsystems/screens.json +0 -10
- package/src/constraint-runtime/src/reference_data/subsystems/server.json +0 -10
- package/src/constraint-runtime/src/reference_data/subsystems/services.json +0 -32
- package/src/constraint-runtime/src/reference_data/subsystems/skills.json +0 -27
- package/src/constraint-runtime/src/reference_data/subsystems/state.json +0 -13
- package/src/constraint-runtime/src/reference_data/subsystems/types.json +0 -18
- package/src/constraint-runtime/src/reference_data/subsystems/upstreamproxy.json +0 -9
- package/src/constraint-runtime/src/reference_data/subsystems/utils.json +0 -32
- package/src/constraint-runtime/src/reference_data/subsystems/vim.json +0 -12
- package/src/constraint-runtime/src/reference_data/subsystems/voice.json +0 -8
- package/src/constraint-runtime/src/reference_data/tools_snapshot.json +0 -1042
- package/src/constraint-runtime/src/remote/index.ts +0 -15
- package/src/constraint-runtime/src/remote_runtime.ts +0 -17
- package/src/constraint-runtime/src/runtime/index.ts +0 -1
- package/src/constraint-runtime/src/runtime/session.ts +0 -42
- package/src/constraint-runtime/src/schemas/index.ts +0 -15
- package/src/constraint-runtime/src/screens/index.ts +0 -15
- package/src/constraint-runtime/src/server/index.ts +0 -15
- package/src/constraint-runtime/src/services/index.ts +0 -15
- package/src/constraint-runtime/src/session_store.ts +0 -32
- package/src/constraint-runtime/src/setup.ts +0 -50
- package/src/constraint-runtime/src/skills/index.ts +0 -1
- package/src/constraint-runtime/src/skills/skill-registry.ts +0 -40
- package/src/constraint-runtime/src/state/index.ts +0 -15
- package/src/constraint-runtime/src/system_init.ts +0 -21
- package/src/constraint-runtime/src/thinking/engine.ts +0 -61
- package/src/constraint-runtime/src/thinking/index.ts +0 -1
- package/src/constraint-runtime/src/tool_pool.ts +0 -20
- package/src/constraint-runtime/src/tools/OpenCLI/execAdapter.ts +0 -12
- package/src/constraint-runtime/src/tools/OpenCLI/listAdapters.ts +0 -12
- package/src/constraint-runtime/src/tools/OpenCLI/runCommand.ts +0 -13
- package/src/constraint-runtime/src/tools/PolymarketSDK/cancelOrder.ts +0 -10
- package/src/constraint-runtime/src/tools/PolymarketSDK/createOrder.ts +0 -13
- package/src/constraint-runtime/src/tools/PolymarketSDK/getMarket.ts +0 -14
- package/src/constraint-runtime/src/tools/PolymarketSDK/getOrders.ts +0 -10
- package/src/constraint-runtime/src/tools/PolymarketSDK/listMarkets.ts +0 -24
- package/src/constraint-runtime/src/tools/SafeSDK/confirmTransaction.ts +0 -13
- package/src/constraint-runtime/src/tools/SafeSDK/createTransaction.ts +0 -23
- package/src/constraint-runtime/src/tools/SafeSDK/deploySafe.ts +0 -12
- package/src/constraint-runtime/src/tools/SafeSDK/executeTransaction.ts +0 -12
- package/src/constraint-runtime/src/tools/SafeSDK/getBalance.ts +0 -10
- package/src/constraint-runtime/src/tools/SafeSDK/getPendingTransactions.ts +0 -10
- package/src/constraint-runtime/src/tools/SafeSDK/proposeTransaction.ts +0 -14
- package/src/constraint-runtime/src/tools/WalletTools/autoPay.ts +0 -58
- package/src/constraint-runtime/src/tools/WalletTools/createWallet.ts +0 -19
- package/src/constraint-runtime/src/tools/WalletTools/getBalance.ts +0 -28
- package/src/constraint-runtime/src/tools/WalletTools/importWallet.ts +0 -34
- package/src/constraint-runtime/src/tools/WalletTools/sendTransaction.ts +0 -50
- package/src/constraint-runtime/src/tools/WalletTools/signMessage.ts +0 -23
- package/src/constraint-runtime/src/tools/WalletTools/transferToken.ts +0 -49
- package/src/constraint-runtime/src/tools.ts +0 -100
- package/src/constraint-runtime/src/transcript.ts +0 -23
- package/src/constraint-runtime/src/types/index.ts +0 -15
- package/src/constraint-runtime/src/upstream_proxy/index.ts +0 -15
- package/src/constraint-runtime/src/utils/index.ts +0 -15
- package/src/constraint-runtime/src/vim/index.ts +0 -15
- package/src/constraint-runtime/src/voice/index.ts +0 -15
- package/src/constraint-runtime/tests/agent.test.ts +0 -20
- package/src/constraint-runtime/tests/constraint.test.ts +0 -47
- package/src/constraint-runtime/tests/skill.test.ts +0 -23
- package/src/constraint-runtime/tests/thinking.test.ts +0 -28
- package/src/constraint-runtime/tsconfig.json +0 -13
- package/src/pi-ecosystem/index.ts +0 -453
- package/src/pi-ecosystem-colony/index.ts +0 -482
- package/src/pi-ecosystem-goals/index.ts +0 -585
- package/src/pi-ecosystem-judgment/decision.ts +0 -431
- package/src/pi-ecosystem-judgment/distillation.ts +0 -398
- package/src/pi-ecosystem-judgment/human-value-store.ts +0 -580
- package/src/pi-ecosystem-judgment/index.ts +0 -678
- package/src/pi-ecosystem-judgment/value-injection.ts +0 -744
- package/src/pi-ecosystem-mcp/index.ts +0 -427
- package/src/pi-ecosystem-subagents/index.ts +0 -408
- package/src/test/ai-judgment-test.ts +0 -92
- package/src/test/bollharness-integration.test.ts +0 -398
- package/src/test/channel-agent-multi-dialogue.ts +0 -265
- package/src/test/channel-heartbeat-agent-test.ts +0 -244
- package/src/test/constraint-layer.test.ts +0 -191
- package/src/test/diap-identity-test.ts +0 -222
- package/src/test/diap-quick-test.ts +0 -73
- package/src/test/global-shared-context.test.ts +0 -393
- package/src/test/harness-judgment-injection.test.ts +0 -353
- package/src/test/harness-workflow-integrator-test.ts +0 -285
- package/src/test/human-value-store.test.ts +0 -316
- package/src/test/hybrid-integration-test.ts +0 -126
- package/src/test/hybrid-messenger-verify.ts +0 -68
- package/src/test/iroh-bistream-debug.ts +0 -50
- package/src/test/iroh-communication.test.ts +0 -81
- package/src/test/iroh-debug-test.ts +0 -69
- package/src/test/iroh-diap-test.ts +0 -90
- package/src/test/iroh-direct-connect.ts +0 -65
- package/src/test/iroh-e2e-fixed.ts +0 -106
- package/src/test/iroh-e2e-same-process.ts +0 -83
- package/src/test/iroh-e2e.ts +0 -83
- package/src/test/iroh-final-e2e.ts +0 -84
- package/src/test/iroh-relay-test.ts +0 -46
- package/src/test/iroh-simple-test.ts +0 -49
- package/src/test/iroh-transport-verify.ts +0 -60
- package/src/test/iroh-transport.test.ts +0 -47
- package/src/test/iroh-two-nodes.ts +0 -87
- package/src/test/iroh-verify.ts +0 -55
- package/src/test/judgment-decision.test.ts +0 -373
- package/src/test/llm-judgment-integration.test.ts +0 -257
- package/src/test/p2p-agent-complex-dialogue.ts +0 -490
- package/src/test/p2p-agent-dialogue.ts +0 -423
- package/src/test/p2p-agent-full-bidirectional.ts +0 -686
- package/src/test/p2p-agent-harness-flow.ts +0 -562
- package/src/test/p2p-agent-harness-single.ts +0 -175
- package/src/test/p2p-ai-dialogue-test.ts +0 -374
- package/src/test/p2p-cid-connect-test.ts +0 -245
- package/src/test/p2p-connect-receiver.ts +0 -85
- package/src/test/p2p-iroh-test.ts +0 -214
- package/src/test/p2p-minimal-test.ts +0 -264
- package/src/test/p2p-node-1.ts +0 -172
- package/src/test/p2p-node-2.ts +0 -172
- package/src/test/p2p-server.ts +0 -335
- package/src/test/p2p-two-nodes-test.ts +0 -542
- package/src/test/pi-sdk.test.ts +0 -47
- package/src/test/set-persona.ts +0 -56
- package/src/test/simple.test.ts +0 -11
- package/src/test/storage-integration.test.ts +0 -191
- package/src/test/subagent-manager.test.ts +0 -392
- package/src/test/test-gate-flow.test.ts +0 -92
- package/src/test/workflow-engine.test.ts +0 -101
- package/src/web/design.md +0 -99
- package/src/workflows/collaboration.ts +0 -455
- package/src/workflows/index.ts +0 -64
- package/vitest.config.ts +0 -12
- package//346/203/263/346/263/225.md +0 -79
|
@@ -1,437 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: boll-run
|
|
3
|
-
description: 结晶协议一键执行器。用户丢一个需求,AI 自动选参与者、组装提示词、以 Agent Teams 方式跑完整管道,全程留日志。不做实验管理(那是 boll-crystal),只做单次完整运行。
|
|
4
|
-
status: active
|
|
5
|
-
tier: meta
|
|
6
|
-
owner: nature
|
|
7
|
-
last_audited: 2026-03-21
|
|
8
|
-
triggers:
|
|
9
|
-
- 单次结晶运行
|
|
10
|
-
- 从需求到交付的一次性执行
|
|
11
|
-
outputs:
|
|
12
|
-
- 单次运行计划
|
|
13
|
-
- 运行记录
|
|
14
|
-
truth_policy:
|
|
15
|
-
- 运行现状以 state.json、config.json 和 run 目录为准
|
|
16
|
-
- skill 不复制动态 pool / run 数字
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
# 流形结晶运行器
|
|
20
|
-
|
|
21
|
-
## 我是谁
|
|
22
|
-
|
|
23
|
-
我是结晶协议的**一键执行入口**。用户说"我想跑一次结晶",我就带着用户走完:
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
需求录入 → 参与者选择 → 管道配置 → Agent Teams 执行 → 日志归档 → 交付输出
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
**我不是 `boll-crystal`**(实验迭代器)。我不管历史 RUN 的审计、prompt 版本迭代、收敛评估。我只管**把这一次跑完、跑好、有记录可查**。
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
## 触发协议(用户执行 `/boll-run` 时)
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
1. 读 tests/convergence_poc/state.json —— 获取 profile_pool
|
|
37
|
-
2. 询问用户:你的需求是什么?
|
|
38
|
-
3. 展示可用参与者列表 + 提供 AI 推荐
|
|
39
|
-
4. 确认参与者后进入 Stage 1
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
## Stage 1:需求录入
|
|
45
|
-
|
|
46
|
-
### 1.1 收集原始意图
|
|
47
|
-
|
|
48
|
-
直接问用户:
|
|
49
|
-
|
|
50
|
-
> **你想解决什么问题?想清楚一件事还是推进一件事?请直接说,不用整理格式。**
|
|
51
|
-
|
|
52
|
-
记录为 `raw_intent`。
|
|
53
|
-
|
|
54
|
-
### 1.2 需求成型(可选)
|
|
55
|
-
|
|
56
|
-
如果用户的表述模糊(含混的愿望、没有具体张力),问:
|
|
57
|
-
|
|
58
|
-
> **这个问题背后有什么阻力?你现在卡在哪里?**
|
|
59
|
-
|
|
60
|
-
如果用户表述已经清晰(有具体场景+目标),跳过,直接用 raw_intent 作为 formulated_demand。
|
|
61
|
-
|
|
62
|
-
**不强制跑 Formulator subagent**——只有需求真的不清晰时才跑。节省 token,保持流程干净。
|
|
63
|
-
|
|
64
|
-
---
|
|
65
|
-
|
|
66
|
-
## Stage 2:参与者选择
|
|
67
|
-
|
|
68
|
-
### 2.1 展示 Profile Pool
|
|
69
|
-
|
|
70
|
-
读 `state.json` 的 `profile_pool.profiles`,向用户展示:
|
|
71
|
-
|
|
72
|
-
```
|
|
73
|
-
可用参与者(共 N 人):
|
|
74
|
-
|
|
75
|
-
P01 枫丝语 INTJ跨界人,全栈运营+教培+电竞+AIGC,10+省份商务网络
|
|
76
|
-
P02 Chrisccc ENTJ,大厂DataPM,正在建 GrowthOS
|
|
77
|
-
P03 西天取经的宝盖头 AIoT产品人,做自我觉察软硬件
|
|
78
|
-
...(按 state.json 实际内容展示)
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
### 2.2 AI 推荐参与者
|
|
82
|
-
|
|
83
|
-
基于 `raw_intent` 分析张力结构,给出推荐理由:
|
|
84
|
-
|
|
85
|
-
```
|
|
86
|
-
【AI 推荐】基于你的需求,建议参与者:
|
|
87
|
-
|
|
88
|
-
- PXX(姓名):理由(一句话,说明与需求的张力点)
|
|
89
|
-
- PXX(姓名):理由
|
|
90
|
-
- PXX(姓名):理由
|
|
91
|
-
|
|
92
|
-
推荐 3~5 人。参与者越多,催化翻译深度越高,但收敛轮数可能增加。
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
**推荐原则**:
|
|
96
|
-
- 需求 = 某类专业知识 → 选对应领域有实战数据的人
|
|
97
|
-
- 需求 = 商业/增长判断 → 选有不同视角的人(ToC + ToB + 研究型)
|
|
98
|
-
- 需求 = 有明显"缺位角色" → 优先补位,而非强化已有方向
|
|
99
|
-
- **不选需求发起人自己**(如果发起人在 pool 里)
|
|
100
|
-
|
|
101
|
-
### 2.3 用户确认
|
|
102
|
-
|
|
103
|
-
```
|
|
104
|
-
你选择了:{participant_names}
|
|
105
|
-
|
|
106
|
-
确认后将:
|
|
107
|
-
1. 生成 RUN-{NNN} 目录
|
|
108
|
-
2. 预组装所有提示词(名称在代码层绑定)
|
|
109
|
-
3. 启动 Agent Teams 管道
|
|
110
|
-
|
|
111
|
-
确认?(y / 修改参与者 / 取消)
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
---
|
|
115
|
-
|
|
116
|
-
## Stage 3:运行配置
|
|
117
|
-
|
|
118
|
-
### 3.1 生成 Run ID
|
|
119
|
-
|
|
120
|
-
```python
|
|
121
|
-
# 读现有 run 目录,取最大编号 + 1
|
|
122
|
-
existing = glob("tests/convergence_poc/simulations/real/run_*/")
|
|
123
|
-
next_id = max(int(d[-4:-1]) for d in existing) + 1
|
|
124
|
-
run_id = f"RUN-{next_id:03d}"
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
### 3.2 创建目录结构
|
|
128
|
-
|
|
129
|
-
```
|
|
130
|
-
tests/convergence_poc/simulations/real/run_NNN/
|
|
131
|
-
├── config.json # 本次运行配置
|
|
132
|
-
├── assembled/ # assemble_prompts.py 输出(名称已绑定)
|
|
133
|
-
└── output/ # 所有 round 输出 + plan + delivery
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
### 3.3 生成 config.json
|
|
137
|
-
|
|
138
|
-
按 `pipeline_config_template.json` 的 canonical 格式生成(由 `config_contract.py` 定义):
|
|
139
|
-
|
|
140
|
-
```json
|
|
141
|
-
{
|
|
142
|
-
"run_id": "RUN-NNN",
|
|
143
|
-
"demand_owner": {"id": "P0X", "name": "需求方姓名", "profile": "data/profiles/real/xxx.md"},
|
|
144
|
-
"raw_intent": "用户原始需求原文",
|
|
145
|
-
"participants": [{"id": "P0X", "name": "参与者姓名", "file": "data/profiles/real/xxx.md"}],
|
|
146
|
-
"prompt_versions": {"clarification-session": "recruit_v2", "catalyst": "recruit_v2", "endpoint": "recruit_v1", "plan": "recruit_v1", "delivery": "recruit_v1"},
|
|
147
|
-
"prompt_files": {...},
|
|
148
|
-
"model": "claude-sonnet-4-6"
|
|
149
|
-
}
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
`demand_owner` 和 `raw_intent` 是必须字段,`validate_pipeline_config()` 会在启动时校验,缺失则 fail-fast。
|
|
153
|
-
|
|
154
|
-
### 3.4 预组装提示词
|
|
155
|
-
|
|
156
|
-
从项目根目录执行(即 CLAUDE.md 所在目录):
|
|
157
|
-
|
|
158
|
-
```bash
|
|
159
|
-
python3 tests/convergence_poc/simulations/real/assemble_prompts.py \
|
|
160
|
-
--config tests/convergence_poc/simulations/real/run_NNN/config.json \
|
|
161
|
-
--output-dir tests/convergence_poc/simulations/real/run_NNN/assembled/
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
**预组装必须成功后才能进入 Stage 4。** 如果报错,定位错误后修复,不跳过。
|
|
165
|
-
|
|
166
|
-
### 3.5 记录 formulated demand
|
|
167
|
-
|
|
168
|
-
将最终的需求表述写入:
|
|
169
|
-
```
|
|
170
|
-
tests/convergence_poc/simulations/real/run_NNN/output/formulated_demand.md
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
如果跑了 Formulator subagent,其输出写此文件;如果直接用 raw_intent,raw_intent 也写入此文件(保持接口一致)。
|
|
174
|
-
|
|
175
|
-
---
|
|
176
|
-
|
|
177
|
-
## Stage 4:Agent Teams 执行
|
|
178
|
-
|
|
179
|
-
### 4.1 团队结构
|
|
180
|
-
|
|
181
|
-
| 角色 | 数量 | subagent_type | 生命周期 |
|
|
182
|
-
|------|------|---------------|---------|
|
|
183
|
-
| Catalyst | 1 | general-purpose | 全程 |
|
|
184
|
-
| Endpoint | N(参与者数量) | general-purpose | 全程 |
|
|
185
|
-
| Plan Generator | 1 | general-purpose | 收敛后 spawn |
|
|
186
|
-
| Delivery Agent | N+1(含需求发起人) | general-purpose | Plan 完成后 spawn |
|
|
187
|
-
|
|
188
|
-
### 4.2 Spawn Catalyst
|
|
189
|
-
|
|
190
|
-
```
|
|
191
|
-
你是 Catalyst。你的任务是观察所有参与者的投影,识别跨语义关系,判断收敛。
|
|
192
|
-
|
|
193
|
-
你的 system prompt 已预组装(参与者列表名称已代码绑定):
|
|
194
|
-
tests/convergence_poc/simulations/real/run_NNN/assembled/catalyst_system.txt
|
|
195
|
-
|
|
196
|
-
直接使用此文件内容。不要给参与者起昵称或使用 name_registry 以外的名称。
|
|
197
|
-
名称注册表:tests/convergence_poc/simulations/real/run_NNN/assembled/name_registry.json
|
|
198
|
-
|
|
199
|
-
Formulated demand:tests/convergence_poc/simulations/real/run_NNN/output/formulated_demand.md
|
|
200
|
-
|
|
201
|
-
每轮你会收到任务("Round N 催化",blocked by 所有 endpoint 任务)。执行时:
|
|
202
|
-
1. 读本轮所有 endpoint 输出(run_NNN/output/round_N_*.md,排除 round_N_catalyst.md)
|
|
203
|
-
2. 读上轮催化输出(首轮无)
|
|
204
|
-
3. 按预组装 catalyst prompt 产出催化分析
|
|
205
|
-
4. 写入:run_NNN/output/round_N_catalyst.md
|
|
206
|
-
5. 在输出末尾标注 [CONVERGED] 或 [CONTINUE](连续 2 轮无新关系 = 收敛)
|
|
207
|
-
6. 完成后通知 lead(说明收敛状态 + 关键发现摘要,不超过 3 句话)
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
### 4.3 Spawn Endpoint × N(并行)
|
|
211
|
-
|
|
212
|
-
为每个参与者 spawn 一个 Endpoint teammate:
|
|
213
|
-
|
|
214
|
-
```
|
|
215
|
-
你是 {participant_name} 的投影代理。你代表这个人,基于 TA 的 Profile 产出投影。
|
|
216
|
-
|
|
217
|
-
你的 system prompt 已预组装(名称和 Profile 已绑定):
|
|
218
|
-
tests/convergence_poc/simulations/real/run_NNN/assembled/endpoint_{PID}_system.txt
|
|
219
|
-
|
|
220
|
-
直接使用此文件内容。不要修改任何人名。
|
|
221
|
-
|
|
222
|
-
Formulated demand:tests/convergence_poc/simulations/real/run_NNN/output/formulated_demand.md
|
|
223
|
-
|
|
224
|
-
每轮你会收到任务("Round N 投影 - {PID}")。执行时:
|
|
225
|
-
1. 读上轮催化输出(首轮无)
|
|
226
|
-
2. 按预组装 endpoint prompt 产出三重投影(能力/方向/边界)
|
|
227
|
-
3. 写入:run_NNN/output/round_N_{PID}.md
|
|
228
|
-
4. 标记任务完成
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
### 4.4 轮次管理(由 Lead / 主 context 执行)
|
|
232
|
-
|
|
233
|
-
```
|
|
234
|
-
Round 1:
|
|
235
|
-
- 创建 Round 1 endpoint 任务 × N(并行,互不依赖)
|
|
236
|
-
- 等待所有 endpoint 完成
|
|
237
|
-
- 创建 Round 1 catalyst 任务(blocked by 所有 endpoint 任务)
|
|
238
|
-
- 等待 catalyst 完成,读收敛信号
|
|
239
|
-
|
|
240
|
-
Round 2:
|
|
241
|
-
- 如果 [CONTINUE]:重复上述流程
|
|
242
|
-
- 如果 [CONVERGED]:跳出循环,进入 Stage 5
|
|
243
|
-
- 如果达到 max_rounds(默认 2):强制结束,进入 Stage 5(记录"到达最大轮次")
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
**收敛判断由 Catalyst 执行**,Lead 只读信号,不覆盖。
|
|
247
|
-
|
|
248
|
-
### 4.5 日志保留
|
|
249
|
-
|
|
250
|
-
每一轮的所有文件都保留,不覆盖:
|
|
251
|
-
- `round_1_P01.md`, `round_1_P03.md`, ..., `round_1_catalyst.md`
|
|
252
|
-
- `round_2_P01.md`, ...
|
|
253
|
-
|
|
254
|
-
如果管道中途因任何原因停止,已生成的文件完整保留,可以从断点恢复。
|
|
255
|
-
|
|
256
|
-
---
|
|
257
|
-
|
|
258
|
-
## Stage 5:方案生成
|
|
259
|
-
|
|
260
|
-
收敛后 spawn Plan Generator:
|
|
261
|
-
|
|
262
|
-
```
|
|
263
|
-
你是推荐报告生成器。你的任务是将结晶过程产出的评估记录转化为一份有立场、有依据的推荐报告。
|
|
264
|
-
|
|
265
|
-
Prompt 文件:tests/convergence_poc/prompts/plan_recruit_v1.md
|
|
266
|
-
Formulated demand:run_NNN/output/formulated_demand.md
|
|
267
|
-
参与者 Profiles:run_NNN/assembled/plan_profiles.txt
|
|
268
|
-
所有轮次输出目录:run_NNN/output/
|
|
269
|
-
|
|
270
|
-
执行:
|
|
271
|
-
1. 读 plan_recruit_v1.md 的 System Prompt 块中的完整指令
|
|
272
|
-
2. 读所有催化输出(round_*_catalyst.md)
|
|
273
|
-
3. 读所有端侧输出(round_*_P*.md)
|
|
274
|
-
4. 读预组装的参与者 profiles(plan_profiles.txt)
|
|
275
|
-
5. 按 prompt 要求生成推荐报告
|
|
276
|
-
6. 写入:run_NNN/output/plan.md
|
|
277
|
-
7. 完成后通知 lead
|
|
278
|
-
```
|
|
279
|
-
|
|
280
|
-
---
|
|
281
|
-
|
|
282
|
-
## Stage 6:交付生成
|
|
283
|
-
|
|
284
|
-
Plan 完成后,并行 spawn Delivery Agents。招聘场景有**两种交付版本**:
|
|
285
|
-
|
|
286
|
-
### 6.1 候选人交付(每个参与者一个)
|
|
287
|
-
|
|
288
|
-
```
|
|
289
|
-
你是 {participant_name} 的交付代理。
|
|
290
|
-
|
|
291
|
-
你的 system prompt 已预组装(名称和 Profile 已绑定,使用候选人版本 prompt):
|
|
292
|
-
run_NNN/assembled/delivery_{PID}_system.txt
|
|
293
|
-
|
|
294
|
-
你需要填入动态内容:
|
|
295
|
-
- {{formulated_demand}} 位置:读 run_NNN/output/formulated_demand.md 的完整内容
|
|
296
|
-
- {{plan}} 位置:读 run_NNN/output/plan.md
|
|
297
|
-
|
|
298
|
-
按 prompt 要求产出候选人视角的交付件("你的 AI 帮你参加了一次面试")。
|
|
299
|
-
输出写入:run_NNN/output/delivery_v1_{PID}.md
|
|
300
|
-
完成后通知 lead。
|
|
301
|
-
```
|
|
302
|
-
|
|
303
|
-
### 6.2 需求方交付(demand_owner)
|
|
304
|
-
|
|
305
|
-
```
|
|
306
|
-
你是 {demand_owner_name} 的交付代理。
|
|
307
|
-
|
|
308
|
-
你的 system prompt 已预组装(名称和 Profile 已绑定,使用需求方版本 prompt):
|
|
309
|
-
run_NNN/assembled/delivery_demand_owner_system.txt
|
|
310
|
-
|
|
311
|
-
你需要填入动态内容:
|
|
312
|
-
- {{raw_intent}} 位置:读 run_NNN/output/formulated_demand.md 的 raw_intent 部分
|
|
313
|
-
- {{plan}} 位置:读 run_NNN/output/plan.md
|
|
314
|
-
|
|
315
|
-
按 prompt 要求产出需求方视角的推荐简报。
|
|
316
|
-
输出写入:run_NNN/output/delivery_v1_demand_owner.md
|
|
317
|
-
完成后通知 lead。
|
|
318
|
-
```
|
|
319
|
-
|
|
320
|
-
> demand_owner 的交付现在也走 assembled 路径(`assemble_prompts.py` 生成 `delivery_demand_owner_system.txt`),与候选人交付统一。
|
|
321
|
-
|
|
322
|
-
---
|
|
323
|
-
|
|
324
|
-
## Stage 7:名称验证 + 完成
|
|
325
|
-
|
|
326
|
-
所有 delivery 文件生成后:
|
|
327
|
-
|
|
328
|
-
```bash
|
|
329
|
-
python3 tests/convergence_poc/simulations/real/validate_names.py \
|
|
330
|
-
--registry run_NNN/assembled/name_registry.json \
|
|
331
|
-
--files run_NNN/output/delivery_v1_*.md
|
|
332
|
-
```
|
|
333
|
-
|
|
334
|
-
**验证通过**:向用户汇报完成,列出所有输出文件路径。
|
|
335
|
-
|
|
336
|
-
**验证失败**:展示具体违规(哪个文件,哪个编号泄漏),询问用户是否重新生成该 delivery 文件。
|
|
337
|
-
|
|
338
|
-
---
|
|
339
|
-
|
|
340
|
-
## 向用户汇报格式
|
|
341
|
-
|
|
342
|
-
运行完成后:
|
|
343
|
-
|
|
344
|
-
```
|
|
345
|
-
✅ RUN-NNN 完成
|
|
346
|
-
|
|
347
|
-
需求:{raw_intent 前 60 字}
|
|
348
|
-
参与者:{name1}、{name2}、{name3}(共 N 人)
|
|
349
|
-
收敛:第 K 轮
|
|
350
|
-
|
|
351
|
-
输出文件:
|
|
352
|
-
方案:run_NNN/output/plan.md
|
|
353
|
-
交付件:
|
|
354
|
-
- run_NNN/output/delivery_v1_{PID1}.md ({name1})
|
|
355
|
-
- run_NNN/output/delivery_v1_{PID2}.md ({name2})
|
|
356
|
-
- run_NNN/output/delivery_v1_demand_owner.md (需求发起人视角)
|
|
357
|
-
|
|
358
|
-
名称验证:PASS
|
|
359
|
-
```
|
|
360
|
-
|
|
361
|
-
---
|
|
362
|
-
|
|
363
|
-
## 关键约束(来自 Section 0.5 + 名称绑定协议)
|
|
364
|
-
|
|
365
|
-
1. **必须先跑 assemble_prompts.py,再 spawn 任何 teammate**。名称在代码层绑定,不通过 LLM 传递。
|
|
366
|
-
2. **Delivery 有两个版本**:候选人用 `delivery_recruit_v1_candidate.md`,需求方用 `delivery_recruit_v1_owner.md`。两者都已预组装到 assembled/ 目录。
|
|
367
|
-
3. **不使用 `run_pipeline.py` 的 API 模式**。本 Skill 全程用 Agent Teams(Task tool)。
|
|
368
|
-
4. **每个 delivery 文件必须通过 validate_names.py**,才算交付。
|
|
369
|
-
5. **不自行评估催化质量**。质量判断留给用户。运行结束只汇报完成状态,不说"效果很好"。
|
|
370
|
-
|
|
371
|
-
---
|
|
372
|
-
|
|
373
|
-
## 参考文件
|
|
374
|
-
|
|
375
|
-
| 文件 | 用途 |
|
|
376
|
-
|------|------|
|
|
377
|
-
| `tests/convergence_poc/state.json` | profile_pool(参与者库)|
|
|
378
|
-
| `tests/convergence_poc/prompts/clarification-session_recruit_v2.md` | 需求成型 prompt(recruit 基线)|
|
|
379
|
-
| `tests/convergence_poc/prompts/catalyst_recruit_v2.md` | 催化 prompt(recruit 基线)|
|
|
380
|
-
| `tests/convergence_poc/prompts/endpoint_recruit_v1.md` | 端侧投影 prompt(recruit 基线)|
|
|
381
|
-
| `tests/convergence_poc/prompts/plan_recruit_v1.md` | 推荐报告 prompt(recruit 基线)|
|
|
382
|
-
| `tests/convergence_poc/prompts/delivery_recruit_v1_owner.md` | 需求方交付 prompt |
|
|
383
|
-
| `tests/convergence_poc/prompts/delivery_recruit_v1_candidate.md` | 候选人交付 prompt |
|
|
384
|
-
| `tests/convergence_poc/simulations/real/assemble_prompts.py` | 预组装脚本 |
|
|
385
|
-
| `tests/convergence_poc/simulations/real/validate_names.py` | 名称验证脚本 |
|
|
386
|
-
| `tests/convergence_poc/simulations/real/pipeline_config_template.json` | config 模板 |
|
|
387
|
-
|
|
388
|
-
---
|
|
389
|
-
|
|
390
|
-
## Bridge 模式(网站联动)
|
|
391
|
-
|
|
392
|
-
当用户说"开始监听"或"bridge mode"时,进入 Bridge 模式。这是产品化流程——用户在网页上提交需求,Claude Code 在本地接住并执行。
|
|
393
|
-
|
|
394
|
-
### 流程
|
|
395
|
-
|
|
396
|
-
```
|
|
397
|
-
1. 运行 await-task 等待网页端提交任务
|
|
398
|
-
2. 任务到达 → 解析 workdir 和参与者信息
|
|
399
|
-
3. 后台运行 monitor 脚本(监控 output/ 文件变化,实时回传事件给后端)
|
|
400
|
-
4. Claude Code 直接执行 Stage 3~7(预组装 → Agent Teams → Plan → Delivery → 验证)
|
|
401
|
-
5. 做完后写 bridge_output.json,运行 complete 发送结果给后端
|
|
402
|
-
```
|
|
403
|
-
|
|
404
|
-
### 具体命令
|
|
405
|
-
|
|
406
|
-
**Step 1: 等待任务**
|
|
407
|
-
```bash
|
|
408
|
-
python3 bridge_agent/bridge_listen.py await-task --config bridge_agent/config.yaml
|
|
409
|
-
```
|
|
410
|
-
这会阻塞直到网页端提交需求。返回 JSON 包含 `workdir`、`run_id`、`lease_id`、参与者列表等。
|
|
411
|
-
|
|
412
|
-
**Step 2: 启动后台监控**(在后台运行,不阻塞)
|
|
413
|
-
```bash
|
|
414
|
-
python3 bridge_agent/bridge_listen.py monitor \
|
|
415
|
-
--config bridge_agent/config.yaml \
|
|
416
|
-
--workdir <workdir> --run-id <run_id> --lease-id <lease_id>
|
|
417
|
-
```
|
|
418
|
-
监控 `output/` 目录文件变化,自动将进度事件推送到后端(→ WebSocket → 前端)。
|
|
419
|
-
|
|
420
|
-
**Step 3: 执行结晶**(Claude Code 直接用本 Skill)
|
|
421
|
-
- 预组装提示词:`cd tests/convergence_poc/simulations/real && python3 assemble_prompts.py --config <config_file>`
|
|
422
|
-
- 写 formulated_demand 到 `<workdir>/output/formulated_demand.md`
|
|
423
|
-
- 执行 Stage 4~7(Agent Teams + Plan + Delivery + 名称验证)
|
|
424
|
-
- 路径映射:Skill 中所有 `run_NNN/output/` → `<workdir>/output/`,`run_NNN/assembled/` → `<workdir>/assembled/`
|
|
425
|
-
|
|
426
|
-
**Step 4: 写 bridge_output.json 并发送完成**
|
|
427
|
-
```bash
|
|
428
|
-
python3 bridge_agent/bridge_listen.py complete \
|
|
429
|
-
--config bridge_agent/config.yaml \
|
|
430
|
-
--workdir <workdir> --run-id <run_id> --lease-id <lease_id>
|
|
431
|
-
```
|
|
432
|
-
|
|
433
|
-
### 关键:Claude Code 就是执行者
|
|
434
|
-
|
|
435
|
-
Bridge 模式不 spawn 子进程。Claude Code 自己读 Skill、spawn Agent Teams、写文件。
|
|
436
|
-
`bridge_listen.py` 只是 HTTP 通信助手——轮询后端、发事件、发完成信号。
|
|
437
|
-
进度回传是代码保障的:output/ 目录出现新文件 → monitor 脚本检测 → 发事件给后端。
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: boll-ux-appstore
|
|
3
|
-
description: App Store 用户旅程与场景展示专才。负责用户旅程设计和场景展示逻辑。
|
|
4
|
-
status: archived
|
|
5
|
-
tier: domain
|
|
6
|
-
owner: nature
|
|
7
|
-
last_audited: 2026-03-21
|
|
8
|
-
triggers:
|
|
9
|
-
- 历史追溯
|
|
10
|
-
outputs:
|
|
11
|
-
- 历史范围
|
|
12
|
-
- 失效原因
|
|
13
|
-
- replacement skills
|
|
14
|
-
truth_policy:
|
|
15
|
-
- 当前 boll 不再从此 skill 获取活体判断
|
|
16
|
-
replacement_skills:
|
|
17
|
-
- nature-designer
|
|
18
|
-
- boll-voice
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
# Archived: boll-ux-appstore
|
|
22
|
-
|
|
23
|
-
- 历史范围:旧版场景展示与 App Store 旅程设计提示词。
|
|
24
|
-
- 失效原因:当前展示层判断拆分给 `nature-designer` 和 `boll-voice`,不再从本 skill 进入。
|
|
25
|
-
- Replacement skills:`nature-designer`、`boll-voice`
|
|
26
|
-
|
|
27
|
-
完整历史内容保留在 git 历史中,不在当前文件继续维护。
|