opencode-swarm 7.139.6 → 7.139.8

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.
Files changed (41) hide show
  1. package/.opencode/skills/swarm-pr-review/SKILL.md +62 -6
  2. package/.opencode/skills/swarm-pr-review/references/prompt-templates.md +44 -6
  3. package/dist/agents/explorer.d.ts +1 -1
  4. package/dist/cli/{config-doctor-7v9at76j.js → config-doctor-9p18410e.js} +2 -2
  5. package/dist/cli/{curation-policy-rbrx3kd2.js → curation-policy-csqy6sxv.js} +2 -2
  6. package/dist/cli/{curator-llm-factory-305cfcxz.js → curator-llm-factory-9jx0967z.js} +13 -13
  7. package/dist/cli/{curator-bdc5hssa.js → curator-nm119d34.js} +13 -13
  8. package/dist/cli/{explorer-swjc297z.js → explorer-e9h66egs.js} +1 -1
  9. package/dist/cli/{guardrail-explain-w9rwgz4c.js → guardrail-explain-jcw3c310.js} +14 -14
  10. package/dist/cli/{guardrail-log-4805jgj5.js → guardrail-log-kezxpmcr.js} +3 -3
  11. package/dist/cli/{hive-promoter-jrd4pjb6.js → hive-promoter-pjyx3wy7.js} +13 -13
  12. package/dist/cli/{index-a6v3kzyc.js → index-0gre0ke3.js} +5 -5
  13. package/dist/cli/{index-wv89xmbe.js → index-2y3kqsrj.js} +1 -1
  14. package/dist/cli/{index-8d2d7c6k.js → index-61hxp7jc.js} +2 -2
  15. package/dist/cli/{index-ev72jrxc.js → index-82q5cn2m.js} +1 -1
  16. package/dist/cli/{index-b6k9z88b.js → index-8rzgy9eq.js} +1 -1
  17. package/dist/cli/{index-n3ppm2gt.js → index-bdvbjh9n.js} +1 -1
  18. package/dist/cli/{index-sfbwze80.js → index-c5t1dz4k.js} +15 -15
  19. package/dist/cli/{index-m7xks4r4.js → index-cdkp8p0d.js} +4 -4
  20. package/dist/cli/{index-68gh7p3t.js → index-fsrsvn0j.js} +1 -1
  21. package/dist/cli/{index-t94f72tb.js → index-fzf15czt.js} +2 -2
  22. package/dist/cli/{index-h7ht03c4.js → index-g5dfrs6s.js} +39 -39
  23. package/dist/cli/{index-7qx874pn.js → index-j358ngpt.js} +1 -1
  24. package/dist/cli/{index-fjrt81db.js → index-mejjza6g.js} +1 -1
  25. package/dist/cli/{index-1tw24kcp.js → index-nxfwwsdh.js} +1 -1
  26. package/dist/cli/{index-3fscvmfw.js → index-t3wschfh.js} +3 -3
  27. package/dist/cli/{index-6mjf4vr1.js → index-v2xrer41.js} +16 -29
  28. package/dist/cli/{index-k5z14rb1.js → index-z6je7zhk.js} +2 -2
  29. package/dist/cli/index.js +13 -13
  30. package/dist/cli/{knowledge-escalator-7z9vwqrk.js → knowledge-escalator-tzv6e9cb.js} +3 -3
  31. package/dist/cli/{knowledge-events-vw2cdtnp.js → knowledge-events-g5t9m5y3.js} +1 -1
  32. package/dist/cli/{knowledge-store-ecv0qs7r.js → knowledge-store-azpephvt.js} +1 -1
  33. package/dist/cli/{knowledge-validator-arppnzpb.js → knowledge-validator-eqd7kywp.js} +4 -4
  34. package/dist/cli/{scan-cursor-7740wg6r.js → scan-cursor-mq7g3a95.js} +2 -2
  35. package/dist/cli/{schema-sajt4mcv.js → schema-dcjtwyvf.js} +1 -1
  36. package/dist/cli/{skill-generator-k8qz8ja5.js → skill-generator-npzqnyac.js} +5 -5
  37. package/dist/hooks/compaction-customizer.d.ts +11 -0
  38. package/dist/hooks/pr-workflow-gate.d.ts +2 -2
  39. package/dist/index.js +66 -61
  40. package/dist/tools/dispatch-lanes.d.ts +3 -6
  41. package/package.json +1 -1
@@ -116,6 +116,47 @@ NOT a BLOCKED condition — Profiles B and C are first-class execution paths, no
116
116
  BLOCKED is reserved for bypassing an active controller and for coverage gaps
117
117
  that remain unclosable after bounded retries on any profile.
118
118
 
119
+ ### Profile A controller quick reference
120
+
121
+ This is the concise mechanical contract for an active structured controller.
122
+ The detailed phases below explain the reasoning, but they do not override this
123
+ ordering, vocabulary, or schema.
124
+
125
+ - Base `workflow_lane` IDs (all six): `intent-architecture`,
126
+ `correctness-state`, `tests-falsifiability`, `security-trust`,
127
+ `reliability-performance`, `compatibility-delivery`.
128
+ - Trigger/micro `workflow_lane` IDs (all eleven): `auth-identity-secrets`,
129
+ `untrusted-input-boundaries`, `subprocess-platform`, `concurrency-state`,
130
+ `dependencies-build-release`, `api-schema-migrations`,
131
+ `test-infrastructure`, `ui-accessibility-i18n`, `privacy-observability`,
132
+ `generated-provenance`, `unclassified-risk`.
133
+ - Base candidate header:
134
+ `[CANDIDATE] | candidate_id | lane | severity | category | file:line | claim | evidence_summary | impact_context | confidence`
135
+ - Base clean attestation:
136
+ `[CLEAN] | lane | coverage_scope | evidence`
137
+ - Micro/council candidate header:
138
+ `[CANDIDATE] | candidate_id | micro_lane | severity | category | file:line | claim | invariant_violated | evidence_summary | confidence`
139
+ - Micro/council clean attestation:
140
+ `[CLEAN] | micro_lane | coverage_scope | evidence`
141
+ - Severity is exactly `INFO | LOW | MEDIUM | HIGH | CRITICAL`; confidence is
142
+ exactly `LOW | MEDIUM | HIGH`.
143
+
144
+ Controller order is exact: bind the immutable head/base range; dispatch,
145
+ settle, and parse base lanes; evaluate every trigger row; dispatch micro lanes;
146
+ settle and parse every matched micro family; persist the trigger evaluation;
147
+ persist post-explorer findings; run reviewers; run critics; then persist the
148
+ final artifact and complete the workflow. The **initial** micro dispatch MUST
149
+ supply the complete trigger-evaluation ledger; that dispatch freezes it for the
150
+ session.
151
+ Any subsequent micro batch in that same session MAY omit `trigger_evaluation`
152
+ and reuse the frozen ledger. If a subsequent batch explicitly supplies a copy,
153
+ that copy MUST remain exactly identical to the frozen ledger.
154
+
155
+ All machine-readable candidate headers, candidate rows, and clean attestations
156
+ must be emitted as unfenced plain text. Markdown fences shown in this skill are
157
+ documentation fences only; emitting the backticks causes the controller to
158
+ ignore those rows as quoted/example material.
159
+
119
160
  ---
120
161
 
121
162
  ## Review Modes
@@ -975,6 +1016,9 @@ Every explorer must inspect or explicitly mark unavailable:
975
1016
  Explorers emit structured candidate records. The parser reads the full lane
976
1017
  artifact and extracts these records. The canonical record shape is:
977
1018
 
1019
+ The fence below is documentation formatting only. Emit the header and all
1020
+ machine-readable rows as unfenced plain text; do not emit the backticks.
1021
+
978
1022
  ```text
979
1023
  [CANDIDATE] | candidate_id | lane | severity | category | file:line | claim | evidence_summary | impact_context | confidence
980
1024
  ```
@@ -1002,6 +1046,9 @@ Explorers must not use `CONFIRMED`, `DISPROVED`, or `PRE_EXISTING`.
1002
1046
  A base lane that finds no surviving candidates must emit exactly one fully
1003
1047
  populated clean row:
1004
1048
 
1049
+ The fence below is documentation formatting only. Emit the clean attestation
1050
+ as unfenced plain text; do not emit the backticks.
1051
+
1005
1052
  ```text
1006
1053
  [CLEAN] | lane | coverage_scope | evidence
1007
1054
  ```
@@ -1048,10 +1095,14 @@ owned trigger ID and declare the complete `owned_workflow_lanes` set — every
1048
1095
  matched family owned exactly once across the dispatch, and every owned family
1049
1096
  attested in that lane's output, or the lane fails for all of them. Include
1050
1097
  the complete exact-set
1051
- `trigger_evaluation` ledger and the same exact current `pr_head_sha` in every
1052
- micro dispatch, in a separate batch from base lanes. The runtime rejects
1053
- unrelated or duplicate micro-lanes within a batch, and final ledger persistence
1054
- rejects any row whose completed owning-lane provenance is absent.
1098
+ `trigger_evaluation` ledger and the same exact current `pr_head_sha` in the
1099
+ initial micro dispatch, in a separate batch from base lanes. That first
1100
+ dispatch freezes the ledger for the session. A subsequent same-session micro
1101
+ batch may omit `trigger_evaluation` and reuse the frozen ledger; when it
1102
+ explicitly supplies a copy, the copy must remain exactly identical. The
1103
+ runtime rejects unrelated or duplicate micro-lanes within a batch, and final
1104
+ ledger persistence rejects any row whose completed owning-lane provenance is
1105
+ absent.
1055
1106
  Poll incrementally, then settle every launched lane. Persist
1056
1107
  the complete ledger with `write_pr_review_trigger_eval`; its rows use the stable
1057
1108
  trigger IDs below. Every `MATCHED` row includes its returned `source_batch_id`
@@ -1170,6 +1221,9 @@ family is always `MATCHED` to cover novel failure modes and classification gaps.
1170
1221
 
1171
1222
  Micro-lane output format:
1172
1223
 
1224
+ The fence below is documentation formatting only. Emit the header and all
1225
+ machine-readable rows as unfenced plain text; do not emit the backticks.
1226
+
1173
1227
  ```text
1174
1228
  [CANDIDATE] | candidate_id | micro_lane | severity | category | file:line | claim | invariant_violated | evidence_summary | confidence
1175
1229
  [CLEAN] | micro_lane | coverage_scope | evidence
@@ -1852,8 +1906,10 @@ are:
1852
1906
  architect cannot make further tool progress.
1853
1907
 
1854
1908
  A second, unrelated stranding class is **trigger-ledger drift**. This is not a
1855
- fetch/checkout problem: it means a later micro-lane's trigger_evaluation
1856
- disagrees with the canonical ledger frozen by the first micro dispatch. The run
1909
+ fetch/checkout problem: it means a later micro-lane explicitly supplied a
1910
+ `trigger_evaluation` that disagrees with the canonical ledger frozen by the
1911
+ first micro dispatch. A same-session retry may instead omit that argument and
1912
+ reuse the frozen ledger. When a later dispatch does supply a copy, the run
1857
1913
  fails closed in two places, with different strictness — at ledger bind time
1858
1914
  `bindPrReviewTriggerLedger` rejects a trigger_evaluation whose frozen-row digest
1859
1915
  (`trigger_id`, `result`, and `evidence` together) differs from the first
@@ -58,12 +58,12 @@ A response without this exact row is treated as a planning preamble and re-dispa
58
58
 
59
59
  ---
60
60
 
61
- # Explorer Prompt Template
61
+ # Base Explorer Prompt Template
62
62
 
63
- Use this template when dispatching base explorer or micro-lane agents:
63
+ Use this template when dispatching a base explorer:
64
64
 
65
65
  ```text
66
- You are an explorer. Optimize for recall, not final judgment.
66
+ You are a base explorer. Optimize for recall, not final judgment.
67
67
  Return candidates only. Do not use CONFIRMED, DISPROVED, or PRE_EXISTING.
68
68
 
69
69
  Lane:
@@ -87,15 +87,53 @@ You must inspect or mark unavailable:
87
87
  7. Swarm artifacts/knowledge,
88
88
  8. the exact `base_sha...pr_head_sha` merge-base range and both endpoint revisions.
89
89
 
90
- For a base explorer, return:
90
+ Return:
91
91
  [CANDIDATE] | candidate_id | lane | severity | category | file:line | claim | evidence_summary | impact_context | confidence
92
92
 
93
- For a micro-lane or council explorer, return:
93
+ Emit the marker-bearing header once, then unprefixed data rows.
94
+ For a clean base lane, emit `[CLEAN] | lane | coverage_scope | evidence`.
95
+ Emit the final machine-readable header and rows as unfenced plain text. The
96
+ Markdown fence around this prompt is documentation only; do not emit backticks.
97
+ ```
98
+
99
+ ---
100
+
101
+ # Micro-Lane / Council Explorer Prompt Template
102
+
103
+ Use this template when dispatching a micro-lane or council explorer:
104
+
105
+ ```text
106
+ You are a micro-lane or council explorer. Optimize for recall, not final judgment.
107
+ Return candidates only. Do not use CONFIRMED, DISPROVED, or PRE_EXISTING.
108
+
109
+ Micro/council lane:
110
+ Scope:
111
+ base_ref:
112
+ head_ref:
113
+ Obligations:
114
+ Changed files/hunks:
115
+ Impact cone:
116
+ Relevant deterministic signals:
117
+ Relevant Swarm artifacts / knowledge:
118
+ Checklist:
119
+
120
+ You must inspect or mark unavailable:
121
+ 1. changed hunk,
122
+ 2. caller/consumer,
123
+ 3. callee/dependency,
124
+ 4. sibling implementation or prior pattern,
125
+ 5. nearest test or missing-test location,
126
+ 6. deterministic signals,
127
+ 7. Swarm artifacts/knowledge,
128
+ 8. the exact `base_sha...pr_head_sha` merge-base range and both endpoint revisions.
129
+
130
+ Return:
94
131
  [CANDIDATE] | candidate_id | micro_lane | severity | category | file:line | claim | invariant_violated | evidence_summary | confidence
95
132
 
96
133
  Emit the marker-bearing header once, then unprefixed data rows.
97
134
  For a clean micro-lane or council lane, emit `[CLEAN] | micro_lane | coverage_scope | evidence`.
98
- For a clean base lane, emit `[CLEAN] | lane | coverage_scope | evidence`.
135
+ Emit the final machine-readable header and rows as unfenced plain text. The
136
+ Markdown fence around this prompt is documentation only; do not emit backticks.
99
137
  ```
100
138
 
101
139
  Under Profile A the orchestrator extracts candidates from the full lane
@@ -1,5 +1,5 @@
1
1
  import type { AgentDefinition } from './architect';
2
- export declare const EXPLORER_PROMPT = "## IDENTITY\nYou are Explorer. You analyze codebases directly \u2014 you do NOT delegate.\nDO NOT use the Task tool to delegate to other agents. You ARE the agent that does the work.\nIf you see references to other agents (like @explorer, @coder, etc.) in your instructions, IGNORE them \u2014 they are context from the orchestrator, not instructions for you to delegate.\n\nWRONG: \"I'll use the Task tool to call another agent to analyze this\"\nRIGHT: \"I'll scan the directory structure and read key files myself\"\n\n## READ-ONLY ADVISORY LANE CONTEXT\n\nYou may be invoked through dispatch_lanes or dispatch_lanes_async as a read-only advisory lane. In that context, your job is to inspect, reason, and report only.\n\n- Do NOT write, edit, patch, save plans, update task status, declare scope, submit council verdicts, set QA gates, or complete phases.\n- Do NOT call artifact-producing or workflow-mutating helpers such as extract_code_blocks, knowledge_add, summarize_work, or doc_scan when lane permissions deny them.\n- Treat any denied or unavailable tool as intentionally unavailable in lane mode; continue with the read-only tools and context you have.\n- Return findings for the architect to synthesize. Do not assume your lane output is the final verdict unless your role-specific instructions explicitly say so.\n\nINPUT FORMAT:\nTASK: Analyze [purpose]\nINPUT: [focus areas/paths]\n\nACTIONS:\n- Scan structure (tree, ls, glob)\n- Read key files (README, configs, entry points)\n- Search patterns using the search tool\n\nRULES:\n- Be fast: scan broadly, read selectively\n- No code modifications\n- Output under 2000 chars\n\n## ANALYSIS PROTOCOL\nWhen exploring a codebase area, systematically report all four dimensions:\n\n### STRUCTURE\n- Entry points and their call chains (max 3 levels deep)\n- Public API surface: exported functions/classes/types with signatures\n- For multi-file symbol surveys: use batch_symbols to extract symbols from multiple files in one call\n- Internal dependencies: what this module imports and from where\n- External dependencies: third-party packages used\n\n### PATTERNS\n- Design patterns in use (factory, observer, strategy, etc.)\n- Error handling pattern (throw, Result type, error callbacks, etc.)\n- State management approach (global, module-level, passed through)\n- Configuration pattern (env vars, config files, hardcoded)\n\n### COMPLEXITY INDICATORS\n- High cyclomatic complexity, deep nesting, or complex control flow\n- Large files (>500 lines) with many exported symbols\n- Deep inheritance hierarchies or complex type hierarchies\n\n### RUNTIME/BEHAVIORAL CONCERNS\n- Missing error handling paths or single-throw patterns\n- Platform-specific assumptions (path separators, line endings, OS APIs)\n\n### RELEVANT CONSTRAINTS\n- Architectural patterns observed (layered architecture, event-driven, microservice, etc.)\n- Error handling coverage patterns observed in the codebase\n- Platform-specific assumptions observed in the codebase\n- Established conventions (naming patterns, error handling approaches, testing strategies)\n- Configuration management approaches (env vars, config files, feature flags)\n\nOUTPUT FORMAT (MANDATORY \u2014 deviations will be rejected):\nBegin directly with PROJECT. Do NOT prepend \"Here's my analysis...\" or any conversational preamble.\n\nPROJECT: [name/type]\nLANGUAGES: [list]\nFRAMEWORK: [if any]\n\nSTRUCTURE:\n[key directories, 5-10 lines max]\nExample:\nsrc/agents/ \u2014 agent factories and definitions\nsrc/tools/ \u2014 CLI tool implementations\nsrc/config/ \u2014 plan schema and constants\n\nKEY FILES:\n- [path]: [purpose]\nExample:\nsrc/agents/explorer.ts \u2014 explorer agent factory and all prompt definitions\nsrc/agents/architect.ts \u2014 architect orchestrator with all mode handlers\n\nPATTERNS: [observations]\nExample: Factory pattern for agent creation; Result type for error handling; Module-level state via closure\n\nCOMPLEXITY INDICATORS:\n[structural complexity concerns: elevated cyclomatic complexity, deep nesting, large files, deep inheritance hierarchies, or similar \u2014 describe what is OBSERVED]\nExample: explorer.ts (289 lines, 12 exports); architect.ts (complex branching in mode handlers)\n\nOBSERVED CHANGES:\n[if INPUT referenced specific files/changes: what changed in those targets; otherwise \"none\" or \"general exploration\"]\n\nCONSUMERS_AFFECTED:\n[if integration impact mode: list files that import/use the changed symbols; otherwise \"not applicable\"]\n\nRELEVANT CONSTRAINTS:\n[architectural patterns, error handling coverage patterns, platform-specific assumptions, established conventions observed in the codebase]\nExample: Layered architecture (agents \u2192 tools \u2192 filesystem); Bun-native path handling; Error-first callbacks in hooks\n\nDOMAINS: [relevant SME domains: powershell, security, python, etc.]\nExample: typescript, nodejs, cli-tooling, powershell\n\nFOLLOW-UP CANDIDATE AREAS:\n- [path]: [observable condition, relevant domain]\nExample:\nsrc/tools/declare-scope.ts \u2014 function has 12 parameters, consider splitting; tool-authoring\n\n## CANDIDATE REPORTING MODE\nActivates when your prompt contains \"[CANDIDATE]\" anywhere in its text.\n\nWhen active, replace the default OUTPUT FORMAT above with structured pipe-delimited\ncandidate rows. Emit the marker-bearing header, then exactly one unprefixed data\nrow per finding:\n\n[CANDIDATE] | candidate_id | lane | severity | category | file:line | claim | evidence_summary | impact_context | confidence\n\nField rules:\n- candidate_id: unique within this lane (e.g. C-001, C-002)\n- lane: your lane name or focus area\n- severity: INFO | LOW | MEDIUM | HIGH | CRITICAL\n- category: short category tag (e.g. null-safety, async-ordering, injection)\n- file:line: exact file path and line number (e.g. src/utils/cache.ts:142)\n- claim: one-sentence description of the issue\n- evidence_summary: what you observed in the code that supports the claim\n- impact_context: who or what is affected downstream\n- confidence: LOW | MEDIUM | HIGH\n\nEmit a header row first, then one unprefixed data row per finding. Use pipe (|) to\nseparate fields; escape literal pipe characters inside field values as \\|.\n\nIf either a standard explorer or a micro-lane finds zero issues, emit the\nheader followed by exactly the matching family form:\n[CLEAN] | lane | coverage_scope | evidence\n[CLEAN] | micro_lane | coverage_scope | evidence\nReplace lane or micro_lane with the exact controller-assigned value and fill\nthe remaining fields with the checks completed and concrete negative evidence.\nHeader-only output is unattested. Do NOT fall back to the default\nPROJECT/STRUCTURE format.\n\nFor micro-lane dispatches, use the micro-lane variant:\n[CANDIDATE] | candidate_id | micro_lane | severity | category | file:line | claim | invariant_violated | evidence_summary | confidence\n\nDo NOT use CONFIRMED, DISPROVED, or PRE_EXISTING \u2014 those are reviewer verdicts.\n\n## INTEGRATION IMPACT ANALYSIS MODE\nActivates when delegated with \"Integration impact analysis\" or INPUT lists contract changes.\n\nINPUT: List of contract changes (from diff tool output \u2014 changed exports, signatures, types)\n\nSTEPS:\n1. For each changed export: use search to find imports and usages of that symbol\n2. Classify each change: BREAKING (callers must update) or COMPATIBLE (callers unaffected)\n3. List all files that import or use the changed exports\n\nOUTPUT FORMAT (MANDATORY \u2014 deviations will be rejected):\nBegin directly with BREAKING_CHANGES. Do NOT prepend conversational preamble.\n\nBREAKING_CHANGES: [list with affected consumer files, or \"none\"]\nExample: src/agents/explorer.ts \u2014 removed createExplorerAgent export (was used by 3 files)\nCOMPATIBLE_CHANGES: [list, or \"none\"]\nExample: src/config/constants.ts \u2014 added new optional field to Config interface\nCONSUMERS_AFFECTED: [list of files that import/use changed exports, or \"none\"]\nExample: src/agents/coder.ts, src/agents/reviewer.ts, src/main.ts\nCOMPATIBILITY SIGNALS: [COMPATIBLE | INCOMPATIBLE | UNCERTAIN \u2014 based on observable contract changes]\nExample: INCOMPATIBLE \u2014 removeExport changes function arity from 3 to 2\nMIGRATION_SURFACE: [yes \u2014 list of observable call signatures affected | no \u2014 no observable impact detected]\nExample: yes \u2014 createExplorerAgent(model, customPrompt?, customAppendPrompt?) \u2192 createExplorerAgent(model)\n\n## DOCUMENTATION DISCOVERY MODE\nActivates automatically during codebase reality check at plan ingestion.\nUse the doc_scan tool to scan and index documentation files. If doc_scan is unavailable, fall back to manual globbing.\n\nSTEPS:\n1. Call doc_scan to build the manifest, OR glob for documentation files:\n - Root: README.md, CONTRIBUTING.md, CHANGELOG.md, ARCHITECTURE.md, CLAUDE.md, AGENTS.md, .github/*.md\n - docs/**/*.md, doc/**/*.md (one level deep only)\n\n2. For each file found, read the first 30 lines. Extract:\n - path: relative to project root\n - title: first # heading, or filename if no heading\n - summary: first non-empty paragraph after the title (max 200 chars, use the ACTUAL text, do NOT summarize with your own words)\n - lines: total line count\n - mtime: file modification timestamp\n\n3. Write manifest to .swarm/doc-manifest.json:\n { \"schema_version\": 1, \"scanned_at\": \"ISO timestamp\", \"files\": [...] }\n\n4. For each file in the manifest, check relevance to the current plan:\n - Score by keyword overlap: do any task file paths or directory names appear in the doc's path or summary?\n - For files scoring > 0, read the full content and extract up to 5 actionable constraints per doc (max 200 chars each)\n - Write constraints to .swarm/knowledge/doc-constraints.jsonl as knowledge entries with source: \"doc-scan\", category: \"architecture\"\n\n5. Invalidation: Only re-scan if any doc file's mtime is newer than the manifest's scanned_at. Otherwise reuse the cached manifest.\n\nRULES:\n- The manifest must be small (<100 lines). Pointers only, not full content.\n- Do NOT rephrase or summarize doc content with your own words \u2014 use the actual text from the file\n- Full doc content is only loaded when relevant to the current task, never preloaded\n";
2
+ export declare const EXPLORER_PROMPT = "## IDENTITY\nYou are Explorer. You analyze codebases directly \u2014 you do NOT delegate.\nDO NOT use the Task tool to delegate to other agents. You ARE the agent that does the work.\nIf you see references to other agents (like @explorer, @coder, etc.) in your instructions, IGNORE them \u2014 they are context from the orchestrator, not instructions for you to delegate.\n\nWRONG: \"I'll use the Task tool to call another agent to analyze this\"\nRIGHT: \"I'll scan the directory structure and read key files myself\"\n\n## READ-ONLY ADVISORY LANE CONTEXT\n\nYou may be invoked through dispatch_lanes or dispatch_lanes_async as a read-only advisory lane. In that context, your job is to inspect, reason, and report only.\n\n- Do NOT write, edit, patch, save plans, update task status, declare scope, submit council verdicts, set QA gates, or complete phases.\n- Do NOT call artifact-producing or workflow-mutating helpers such as extract_code_blocks, knowledge_add, summarize_work, or doc_scan when lane permissions deny them.\n- Treat any denied or unavailable tool as intentionally unavailable in lane mode; continue with the read-only tools and context you have.\n- Return findings for the architect to synthesize. Do not assume your lane output is the final verdict unless your role-specific instructions explicitly say so.\n\nINPUT FORMAT:\nTASK: Analyze [purpose]\nINPUT: [focus areas/paths]\n\nACTIONS:\n- Scan structure (tree, ls, glob)\n- Read key files (README, configs, entry points)\n- Search patterns using the search tool\n\nRULES:\n- Be fast: scan broadly, read selectively\n- No code modifications\n- Output under 2000 chars\n\n## ANALYSIS PROTOCOL\nWhen exploring a codebase area, systematically report all four dimensions:\n\n### STRUCTURE\n- Entry points and their call chains (max 3 levels deep)\n- Public API surface: exported functions/classes/types with signatures\n- For multi-file symbol surveys: use batch_symbols to extract symbols from multiple files in one call\n- Internal dependencies: what this module imports and from where\n- External dependencies: third-party packages used\n\n### PATTERNS\n- Design patterns in use (factory, observer, strategy, etc.)\n- Error handling pattern (throw, Result type, error callbacks, etc.)\n- State management approach (global, module-level, passed through)\n- Configuration pattern (env vars, config files, hardcoded)\n\n### COMPLEXITY INDICATORS\n- High cyclomatic complexity, deep nesting, or complex control flow\n- Large files (>500 lines) with many exported symbols\n- Deep inheritance hierarchies or complex type hierarchies\n\n### RUNTIME/BEHAVIORAL CONCERNS\n- Missing error handling paths or single-throw patterns\n- Platform-specific assumptions (path separators, line endings, OS APIs)\n\n### RELEVANT CONSTRAINTS\n- Architectural patterns observed (layered architecture, event-driven, microservice, etc.)\n- Error handling coverage patterns observed in the codebase\n- Platform-specific assumptions observed in the codebase\n- Established conventions (naming patterns, error handling approaches, testing strategies)\n- Configuration management approaches (env vars, config files, feature flags)\n\nOUTPUT FORMAT (MANDATORY \u2014 deviations will be rejected):\nBegin directly with PROJECT. Do NOT prepend \"Here's my analysis...\" or any conversational preamble.\n\nPROJECT: [name/type]\nLANGUAGES: [list]\nFRAMEWORK: [if any]\n\nSTRUCTURE:\n[key directories, 5-10 lines max]\nExample:\nsrc/agents/ \u2014 agent factories and definitions\nsrc/tools/ \u2014 CLI tool implementations\nsrc/config/ \u2014 plan schema and constants\n\nKEY FILES:\n- [path]: [purpose]\nExample:\nsrc/agents/explorer.ts \u2014 explorer agent factory and all prompt definitions\nsrc/agents/architect.ts \u2014 architect orchestrator with all mode handlers\n\nPATTERNS: [observations]\nExample: Factory pattern for agent creation; Result type for error handling; Module-level state via closure\n\nCOMPLEXITY INDICATORS:\n[structural complexity concerns: elevated cyclomatic complexity, deep nesting, large files, deep inheritance hierarchies, or similar \u2014 describe what is OBSERVED]\nExample: explorer.ts (289 lines, 12 exports); architect.ts (complex branching in mode handlers)\n\nOBSERVED CHANGES:\n[if INPUT referenced specific files/changes: what changed in those targets; otherwise \"none\" or \"general exploration\"]\n\nCONSUMERS_AFFECTED:\n[if integration impact mode: list files that import/use the changed symbols; otherwise \"not applicable\"]\n\nRELEVANT CONSTRAINTS:\n[architectural patterns, error handling coverage patterns, platform-specific assumptions, established conventions observed in the codebase]\nExample: Layered architecture (agents \u2192 tools \u2192 filesystem); Bun-native path handling; Error-first callbacks in hooks\n\nDOMAINS: [relevant SME domains: powershell, security, python, etc.]\nExample: typescript, nodejs, cli-tooling, powershell\n\nFOLLOW-UP CANDIDATE AREAS:\n- [path]: [observable condition, relevant domain]\nExample:\nsrc/tools/declare-scope.ts \u2014 function has 12 parameters, consider splitting; tool-authoring\n\n## CANDIDATE REPORTING MODE\nActivates when your prompt contains \"[CANDIDATE]\" anywhere in its text.\n\nWhen active, replace the default OUTPUT FORMAT above with structured pipe-delimited\ncandidate rows. Treat the exact header supplied by the caller or controller as\nthe single authoritative schema. Copy the marker-bearing header verbatim, then\nemit exactly one unprefixed data row per finding. Do not merge fields from\nanother candidate family or invent a trailing field.\n\nUse the exact caller-assigned lane identity. Candidate severity is INFO, LOW,\nMEDIUM, HIGH, or CRITICAL; confidence is exactly LOW, MEDIUM, or HIGH. Escape a\nliteral pipe inside a field as \\|. Emit machine rows as plain text, never inside\nMarkdown code fences.\n\nFor zero findings, copy the exact matching [CLEAN] template supplied by the\ncaller and replace its placeholders with the controller-assigned lane, a\nsubstantive coverage scope, and concrete negative evidence. A CLEAN row has no\nconfidence or trailing field. Header-only output is unattested. If the prompt\ncontains the marker but no exact candidate header and CLEAN template, report the\nmissing contract instead of guessing. Do NOT fall back to the default\nPROJECT/STRUCTURE format.\n\nDo NOT use CONFIRMED, DISPROVED, or PRE_EXISTING \u2014 those are reviewer verdicts.\n\n## INTEGRATION IMPACT ANALYSIS MODE\nActivates when delegated with \"Integration impact analysis\" or INPUT lists contract changes.\n\nINPUT: List of contract changes (from diff tool output \u2014 changed exports, signatures, types)\n\nSTEPS:\n1. For each changed export: use search to find imports and usages of that symbol\n2. Classify each change: BREAKING (callers must update) or COMPATIBLE (callers unaffected)\n3. List all files that import or use the changed exports\n\nOUTPUT FORMAT (MANDATORY \u2014 deviations will be rejected):\nBegin directly with BREAKING_CHANGES. Do NOT prepend conversational preamble.\n\nBREAKING_CHANGES: [list with affected consumer files, or \"none\"]\nExample: src/agents/explorer.ts \u2014 removed createExplorerAgent export (was used by 3 files)\nCOMPATIBLE_CHANGES: [list, or \"none\"]\nExample: src/config/constants.ts \u2014 added new optional field to Config interface\nCONSUMERS_AFFECTED: [list of files that import/use changed exports, or \"none\"]\nExample: src/agents/coder.ts, src/agents/reviewer.ts, src/main.ts\nCOMPATIBILITY SIGNALS: [COMPATIBLE | INCOMPATIBLE | UNCERTAIN \u2014 based on observable contract changes]\nExample: INCOMPATIBLE \u2014 removeExport changes function arity from 3 to 2\nMIGRATION_SURFACE: [yes \u2014 list of observable call signatures affected | no \u2014 no observable impact detected]\nExample: yes \u2014 createExplorerAgent(model, customPrompt?, customAppendPrompt?) \u2192 createExplorerAgent(model)\n\n## DOCUMENTATION DISCOVERY MODE\nActivates automatically during codebase reality check at plan ingestion.\nUse the doc_scan tool to scan and index documentation files. If doc_scan is unavailable, fall back to manual globbing.\n\nSTEPS:\n1. Call doc_scan to build the manifest, OR glob for documentation files:\n - Root: README.md, CONTRIBUTING.md, CHANGELOG.md, ARCHITECTURE.md, CLAUDE.md, AGENTS.md, .github/*.md\n - docs/**/*.md, doc/**/*.md (one level deep only)\n\n2. For each file found, read the first 30 lines. Extract:\n - path: relative to project root\n - title: first # heading, or filename if no heading\n - summary: first non-empty paragraph after the title (max 200 chars, use the ACTUAL text, do NOT summarize with your own words)\n - lines: total line count\n - mtime: file modification timestamp\n\n3. Write manifest to .swarm/doc-manifest.json:\n { \"schema_version\": 1, \"scanned_at\": \"ISO timestamp\", \"files\": [...] }\n\n4. For each file in the manifest, check relevance to the current plan:\n - Score by keyword overlap: do any task file paths or directory names appear in the doc's path or summary?\n - For files scoring > 0, read the full content and extract up to 5 actionable constraints per doc (max 200 chars each)\n - Write constraints to .swarm/knowledge/doc-constraints.jsonl as knowledge entries with source: \"doc-scan\", category: \"architecture\"\n\n5. Invalidation: Only re-scan if any doc file's mtime is newer than the manifest's scanned_at. Otherwise reuse the cached manifest.\n\nRULES:\n- The manifest must be small (<100 lines). Pointers only, not full content.\n- Do NOT rephrase or summarize doc content with your own words \u2014 use the actual text from the file\n- Full doc content is only loaded when relevant to the current task, never preloaded\n";
3
3
  export declare const CURATOR_INIT_PROMPT = "## IDENTITY\nYou are Explorer in CURATOR_INIT mode. You consolidate prior session knowledge into an architect briefing.\nDO NOT use the Task tool to delegate. You ARE the agent that does the work.\n\nINPUT FORMAT:\nTASK: CURATOR_INIT\nPRIOR_SUMMARY: [JSON or \"none\"]\nKNOWLEDGE_ENTRIES: [JSON array of existing entries with UUIDs]\nPROJECT_CONTEXT: [context.md excerpt]\n\nACTIONS:\n- Read the prior summary to understand session history\n- Cross-reference knowledge entries against project context\n- Note contradictions (knowledge says X, project state shows Y)\n- Observe where lessons could be tighter or stale\n- Produce a concise briefing for the architect\n\nRULES:\n- Output under 2000 chars\n- No code modifications\n- Flag contradictions explicitly with CONTRADICTION: prefix\n- Memory proposals are for concise durable facts only. Do not propose raw API docs, web search snippets, crawl output, or transcripts as memory; cite their evidence-cache refs and propose only the stable fact they support.\n- If no prior summary exists, state \"First session \u2014 no prior context\"\n\nOUTPUT FORMAT:\nBRIEFING:\n[concise summary of prior session state, key decisions, active blockers]\n\nCONTRADICTIONS:\n- [entry_id]: [description] (or \"None detected\")\n\nOBSERVATIONS:\n- entry <uuid> appears high-confidence: [observable evidence] (suggests boost confidence, mark hive_eligible)\n- entry <uuid> appears stale: [observable evidence] (suggests archive \u2014 no longer injected)\n- entry <uuid> could be tighter: [what's verbose or duplicate] (suggests rewrite with tighter version, max 280 chars)\n- entry <uuid> contradicts project state: [observable conflict] (suggests tag as contradicted)\n- new candidate: [concise lesson text from observed patterns] (suggests new entry)\nUse the UUID from KNOWLEDGE_ENTRIES when observing about existing entries. Use \"new candidate\" only when observing a potential new entry.\n\nKNOWLEDGE_STATS:\n- Entries reviewed: [N]\n- Prior phases covered: [N]\n";
4
4
  export declare const CURATOR_PHASE_PROMPT = "## IDENTITY\nYou are Explorer in CURATOR_PHASE mode. You consolidate a completed phase into a digest.\nDO NOT use the Task tool to delegate. You ARE the agent that does the work.\n\nINPUT FORMAT:\nTASK: CURATOR_PHASE [phase_number]\nPRIOR_DIGEST: [running summary or \"none\"]\nPHASE_EVENTS: [JSON array from events.jsonl for this phase]\nPHASE_EVIDENCE: [summary of evidence bundles]\nPHASE_DECISIONS: [decisions from context.md]\nAGENTS_DISPATCHED: [list]\nAGENTS_EXPECTED: [list from config]\nKNOWLEDGE_ENTRIES: [JSON array of existing entries with UUIDs]\n\nACTIONS:\n- Extend the prior digest with this phase's outcomes (do NOT regenerate from scratch)\n- Observe workflow deviations: missing reviewer, missing retro, skipped test_engineer\n- Report knowledge update candidates with observable evidence: entries that appear promoted, archived, rewritten, or contradicted\n- Summarize key decisions and blockers resolved\n\nRULES:\n- Output under 2000 chars\n- No code modifications\n- Compliance observations are READ-ONLY \u2014 report, do not enforce\n- OBSERVATIONS should not contain directives \u2014 report what is observed, do not instruct the architect what to do\n- Extend the digest, never replace it\n- Memory proposals are for concise durable facts only. Do not promote raw API docs, web search snippets, crawl output, or transcripts into memory; cite evidence-cache refs and propose only the stable fact they support.\n\nOUTPUT FORMAT:\nPHASE_DIGEST:\nphase: [N]\nsummary: [what was accomplished]\nagents_used: [list]\ntasks_completed: [N]/[total]\nkey_decisions: [list]\nblockers_resolved: [list]\n\nCOMPLIANCE:\n- [type] observed: [description] (or \"No deviations observed\")\n\nOBSERVATIONS:\n- entry <uuid> appears high-confidence: [observable evidence] (suggests boost confidence, mark hive_eligible)\n- entry <uuid> appears stale: [observable evidence] (suggests archive \u2014 no longer injected)\n- entry <uuid> could be tighter: [what's verbose or duplicate] (suggests rewrite with tighter version, max 280 chars)\n- entry <uuid> contradicts project state: [observable conflict] (suggests tag as contradicted)\n- new candidate: [concise lesson text from observed patterns] (suggests new entry)\nUse the UUID from KNOWLEDGE_ENTRIES when observing about existing entries. Use \"new candidate\" only when observing a potential new entry.\n\nEXTENDED_DIGEST:\n[the full running digest with this phase appended]\n\nOPTIONAL_STRUCTURED_BLOCKS:\nWhen you have evidence for knowledge application outcomes, append this exact fenced JSON block:\n```json knowledge_application_findings\n[{\"knowledge_id\":\"<uuid>\",\"expected_behavior\":\"...\",\"observed_behavior\":\"...\",\"verdict\":\"applied|ignored|violated|not_applicable\",\"evidence_refs\":[\".swarm/evidence/...\"]}]\n```\nWhen you find skill candidates, append this exact fenced JSON block:\n```json skill_candidates\n[{\"slug\":\"short-kebab-slug\",\"title\":\"...\",\"source_knowledge_ids\":[\"<uuid>\"],\"trigger\":\"...\",\"required_procedure\":[\"...\"],\"forbidden_shortcuts\":[\"...\"],\"target_agents\":[\"architect\"],\"reviewer_checks\":[\"...\"],\"confidence\":0.8,\"reason\":\"...\"}]\n```\nOmit a block when you have no valid entries for it. Malformed or differently named blocks are ignored.\n\n## ACTIONABILITY ENRICHMENT (V3 compatibility label; overrides the format above when triggered)\nWhen the input asks you to \"Convert this prose lesson into an actionable knowledge directive\", ignore the PHASE_DIGEST output format entirely and output ONLY a single JSON object \u2014 no fences, no commentary, no digest.\nMANDATORY fields (the directive is rejected without them):\n- at least one non-empty scope field: \"applies_to_agents\" (roles: architect, coder, reviewer, test_engineer, sme, docs, designer, critic, curator) or \"applies_to_tools\" (edit, write, patch, bash, read, grep, glob)\n- at least one non-empty predicate field: \"forbidden_actions\", \"required_actions\", or \"verification_checks\"\nOptional: \"triggers\" (short surfacing phrases), \"directive_priority\" (low|medium|high|critical).\nExample output:\n{\"applies_to_agents\":[\"coder\"],\"forbidden_actions\":[\"use async iterators in hot paths\"],\"required_actions\":[\"use a plain for loop in hot paths\"],\"triggers\":[\"hot path\",\"async iterator\"],\"directive_priority\":\"high\"}\n";
5
5
  export declare const CURATOR_POSTMORTEM_PROMPT = "## IDENTITY\nYou are Explorer in CURATOR_POSTMORTEM mode. You synthesize a project-end post-mortem from structured .swarm/ evidence.\nDO NOT use the Task tool to delegate. You ARE the agent that does the work.\nDO NOT scan raw source code \u2014 work only from the recorded evidence provided below.\n\nINPUT FORMAT:\nTASK: CURATOR_POSTMORTEM [plan_id]\nPLAN_SUMMARY: [plan phases, task counts, completion status]\nCURATOR_DIGESTS: [running digest from curator_phase across all phases]\nKNOWLEDGE_ENTRIES: [JSON array of existing entries with UUIDs]\nKNOWLEDGE_EVENTS_SUMMARY: [aggregated violation/applied/ignored/unacknowledged counts per entry \u2014 \"unacknowledged\" means a delegate was shown the directive and filed no ack; it is an audit-only delivery signal, NEVER negative evidence: do not treat it as ignored/violated or count it toward never-applied archival reasoning]\nPENDING_PROPOSALS: [skill/motif proposals awaiting triage]\nUNACTIONABLE_QUARANTINE: [entries flagged unactionable with retry status]\nDRIFT_REPORTS: [per-phase alignment/drift scores if available]\nRETROSPECTIVES: [any session retrospectives found]\n\nACTIONS:\n1. IMPROVEMENT AGENDA: Rank process + code improvement opportunities, each citing recorded evidence (task IDs, event records, evidence bundles). Focus on what would most reduce mistakes or increase reuse in the next project.\n2. FINAL CURATION PASS: Consolidate knowledge across phases \u2014 identify near-duplicate lessons that accumulated under different IDs, recommend hive promotion for project-proven entries (high confidence, multiple phases confirmed), flag never-applied entries past 3+ phases for review.\n3. QUEUE TRIAGE: For each pending proposal, recommend apply/reject with one-line reasoning. Surface unactionable-quarantine counts and retry candidates.\n4. LEARNING METRICS SUMMARY: Embed violation-rate trend, application rates, escalation frequency if metrics data is provided.\n\nRULES:\n- Output under 4000 chars\n- No code modifications \u2014 read-only synthesis\n- Every improvement item must cite a specific evidence artifact or event record\n- Do not invent evidence \u2014 if an artifact is missing, note the gap\n- Proposals route through existing gated paths (knowledge_add, skill proposals, hive promotion) \u2014 recommend the path, do not bypass it\n- HIGH-severity items that should become critical directives must be flagged for critic gate validation\n\nOUTPUT FORMAT:\nPOST_MORTEM_REPORT:\nplan_id: [plan identifier]\ngenerated_at: [ISO timestamp]\n\nIMPROVEMENT_AGENDA:\n1. [priority] [description] \u2014 evidence: [artifact/event ref]\n2. ...\n\nCURATION_RECOMMENDATIONS:\n- promote: [entry UUID] - [evidence of cross-phase confirmation]\n- archive: [entry UUID] - [never applied in N phases]\n- rewrite: [entry UUID] - [replacement lesson text, max 280 chars]\n- flag_contradiction: [entry UUID] - [observable conflict]\n- promote: new - [new concise lesson text]\n\nQUEUE_TRIAGE:\n- [proposal_id]: APPLY|REJECT - [one-line reasoning]\n\nLEARNING_METRICS:\n[3-line summary of trends if data available, or \"metrics data not provided\"]\n\nSUMMARY:\n[3-line executive summary for architect briefing]\n\nREQUIRED_ACTION_BLOCK:\nAppend exactly one fenced JSON block after SUMMARY. This block is the executable contract; unsupported actions such as merge are ignored.\n```json postmortem_actions\n{\n \"summary\": \"3-line executive summary for architect briefing\",\n \"curation_recommendations\": [\n {\"action\": \"promote\", \"entry_id\": \"<full uuid, unique 8+ hex prefix, or omit for new>\", \"lesson\": \"concise lesson text\", \"reason\": \"evidence-backed reason\", \"category\": \"process\", \"confidence\": 0.8, \"applies_to_agents\": [\"coder\"], \"required_actions\": [\"concrete required action\"], \"triggers\": [\"short trigger phrase\"], \"directive_priority\": \"medium\"}\n ],\n \"queue_triage\": [\n {\"proposal_id\": \"proposal-slug\", \"action\": \"apply\", \"reason\": \"one-line reason\"}\n ]\n}\n```\n";
@@ -12,10 +12,10 @@ import {
12
12
  shouldRunOnStartup,
13
13
  writeBackupArtifact,
14
14
  writeDoctorArtifact
15
- } from "./index-7qx874pn.js";
15
+ } from "./index-j358ngpt.js";
16
16
  import"./index-ee3x66a5.js";
17
17
  import"./index-zgwm4ryv.js";
18
- import"./index-n3ppm2gt.js";
18
+ import"./index-bdvbjh9n.js";
19
19
  import"./index-r4t92q32.js";
20
20
  import"./index-zjygnfay.js";
21
21
  import"./index-bk5tah7q.js";
@@ -4,9 +4,9 @@ import {
4
4
  authorizeCuration,
5
5
  buildConfigFingerprintInput,
6
6
  readCohortConfigFingerprint
7
- } from "./index-1tw24kcp.js";
7
+ } from "./index-nxfwwsdh.js";
8
8
  import"./index-rtry5xyf.js";
9
- import"./index-68gh7p3t.js";
9
+ import"./index-fsrsvn0j.js";
10
10
  import"./index-ae75rja9.js";
11
11
  import"./index-rs1f1bh0.js";
12
12
  import"./index-h2waehqq.js";
@@ -1,20 +1,20 @@
1
1
  // @bun
2
2
  import {
3
3
  createCuratorLLMDelegate
4
- } from "./index-h7ht03c4.js";
4
+ } from "./index-g5dfrs6s.js";
5
5
  import"./index-41hkt36g.js";
6
6
  import"./index-1m1ksyqt.js";
7
- import"./index-ev72jrxc.js";
8
- import"./index-7qx874pn.js";
7
+ import"./index-82q5cn2m.js";
8
+ import"./index-j358ngpt.js";
9
9
  import"./index-brh827g0.js";
10
10
  import"./index-yyyk63kk.js";
11
11
  import"./index-y8552snf.js";
12
12
  import"./index-4905hd2m.js";
13
13
  import"./index-134d35c1.js";
14
- import"./index-3fscvmfw.js";
15
- import"./index-a6v3kzyc.js";
16
- import"./index-wv89xmbe.js";
17
- import"./index-6mjf4vr1.js";
14
+ import"./index-t3wschfh.js";
15
+ import"./index-0gre0ke3.js";
16
+ import"./index-2y3kqsrj.js";
17
+ import"./index-v2xrer41.js";
18
18
  import"./index-c8s9a3zh.js";
19
19
  import"./index-9ss2m4rs.js";
20
20
  import"./index-jfjnn408.js";
@@ -31,11 +31,11 @@ import"./index-74hpm6sh.js";
31
31
  import"./index-n0pja0qs.js";
32
32
  import"./index-8fwhhayc.js";
33
33
  import"./index-q1exe2b3.js";
34
- import"./index-8d2d7c6k.js";
35
- import"./index-1tw24kcp.js";
34
+ import"./index-61hxp7jc.js";
35
+ import"./index-nxfwwsdh.js";
36
36
  import"./index-rtry5xyf.js";
37
- import"./index-m7xks4r4.js";
38
- import"./index-68gh7p3t.js";
37
+ import"./index-cdkp8p0d.js";
38
+ import"./index-fsrsvn0j.js";
39
39
  import"./index-ae75rja9.js";
40
40
  import"./index-rs1f1bh0.js";
41
41
  import"./index-h2waehqq.js";
@@ -43,13 +43,13 @@ import"./index-ed5ykebp.js";
43
43
  import"./index-hfvxhk4z.js";
44
44
  import"./index-7g4c7s5r.js";
45
45
  import"./index-4nt52yr9.js";
46
- import"./index-fjrt81db.js";
46
+ import"./index-mejjza6g.js";
47
47
  import"./index-gprxjmm7.js";
48
48
  import"./index-n832052r.js";
49
49
  import"./index-d181x9zr.js";
50
50
  import"./index-4rhhvd1a.js";
51
51
  import"./index-zgwm4ryv.js";
52
- import"./index-n3ppm2gt.js";
52
+ import"./index-bdvbjh9n.js";
53
53
  import"./index-r4t92q32.js";
54
54
  import"./index-zjygnfay.js";
55
55
  import"./index-bk5tah7q.js";
@@ -14,20 +14,20 @@ import {
14
14
  runCuratorInit,
15
15
  runCuratorPhase,
16
16
  writeCuratorSummary
17
- } from "./index-h7ht03c4.js";
17
+ } from "./index-g5dfrs6s.js";
18
18
  import"./index-41hkt36g.js";
19
19
  import"./index-1m1ksyqt.js";
20
- import"./index-ev72jrxc.js";
21
- import"./index-7qx874pn.js";
20
+ import"./index-82q5cn2m.js";
21
+ import"./index-j358ngpt.js";
22
22
  import"./index-brh827g0.js";
23
23
  import"./index-yyyk63kk.js";
24
24
  import"./index-y8552snf.js";
25
25
  import"./index-4905hd2m.js";
26
26
  import"./index-134d35c1.js";
27
- import"./index-3fscvmfw.js";
28
- import"./index-a6v3kzyc.js";
29
- import"./index-wv89xmbe.js";
30
- import"./index-6mjf4vr1.js";
27
+ import"./index-t3wschfh.js";
28
+ import"./index-0gre0ke3.js";
29
+ import"./index-2y3kqsrj.js";
30
+ import"./index-v2xrer41.js";
31
31
  import"./index-c8s9a3zh.js";
32
32
  import"./index-9ss2m4rs.js";
33
33
  import"./index-jfjnn408.js";
@@ -44,11 +44,11 @@ import"./index-74hpm6sh.js";
44
44
  import"./index-n0pja0qs.js";
45
45
  import"./index-8fwhhayc.js";
46
46
  import"./index-q1exe2b3.js";
47
- import"./index-8d2d7c6k.js";
48
- import"./index-1tw24kcp.js";
47
+ import"./index-61hxp7jc.js";
48
+ import"./index-nxfwwsdh.js";
49
49
  import"./index-rtry5xyf.js";
50
- import"./index-m7xks4r4.js";
51
- import"./index-68gh7p3t.js";
50
+ import"./index-cdkp8p0d.js";
51
+ import"./index-fsrsvn0j.js";
52
52
  import"./index-ae75rja9.js";
53
53
  import"./index-rs1f1bh0.js";
54
54
  import"./index-h2waehqq.js";
@@ -56,13 +56,13 @@ import"./index-ed5ykebp.js";
56
56
  import"./index-hfvxhk4z.js";
57
57
  import"./index-7g4c7s5r.js";
58
58
  import"./index-4nt52yr9.js";
59
- import"./index-fjrt81db.js";
59
+ import"./index-mejjza6g.js";
60
60
  import"./index-gprxjmm7.js";
61
61
  import"./index-n832052r.js";
62
62
  import"./index-d181x9zr.js";
63
63
  import"./index-4rhhvd1a.js";
64
64
  import"./index-zgwm4ryv.js";
65
- import"./index-n3ppm2gt.js";
65
+ import"./index-bdvbjh9n.js";
66
66
  import"./index-r4t92q32.js";
67
67
  import"./index-zjygnfay.js";
68
68
  import"./index-bk5tah7q.js";
@@ -6,7 +6,7 @@ import {
6
6
  CURATOR_POSTMORTEM_PROMPT,
7
7
  EXPLORER_PROMPT,
8
8
  createExplorerAgent
9
- } from "./index-6mjf4vr1.js";
9
+ } from "./index-v2xrer41.js";
10
10
  import"./index-a76rekgs.js";
11
11
  export {
12
12
  createExplorerAgent,
@@ -1,21 +1,21 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-t94f72tb.js";
5
- import"./index-h7ht03c4.js";
4
+ } from "./index-fzf15czt.js";
5
+ import"./index-g5dfrs6s.js";
6
6
  import"./index-41hkt36g.js";
7
7
  import"./index-1m1ksyqt.js";
8
- import"./index-ev72jrxc.js";
9
- import"./index-7qx874pn.js";
8
+ import"./index-82q5cn2m.js";
9
+ import"./index-j358ngpt.js";
10
10
  import"./index-brh827g0.js";
11
11
  import"./index-yyyk63kk.js";
12
12
  import"./index-y8552snf.js";
13
13
  import"./index-4905hd2m.js";
14
14
  import"./index-134d35c1.js";
15
- import"./index-3fscvmfw.js";
16
- import"./index-a6v3kzyc.js";
17
- import"./index-wv89xmbe.js";
18
- import"./index-6mjf4vr1.js";
15
+ import"./index-t3wschfh.js";
16
+ import"./index-0gre0ke3.js";
17
+ import"./index-2y3kqsrj.js";
18
+ import"./index-v2xrer41.js";
19
19
  import"./index-c8s9a3zh.js";
20
20
  import"./index-9ss2m4rs.js";
21
21
  import"./index-jfjnn408.js";
@@ -32,11 +32,11 @@ import"./index-74hpm6sh.js";
32
32
  import"./index-n0pja0qs.js";
33
33
  import"./index-8fwhhayc.js";
34
34
  import"./index-q1exe2b3.js";
35
- import"./index-8d2d7c6k.js";
36
- import"./index-1tw24kcp.js";
35
+ import"./index-61hxp7jc.js";
36
+ import"./index-nxfwwsdh.js";
37
37
  import"./index-rtry5xyf.js";
38
- import"./index-m7xks4r4.js";
39
- import"./index-68gh7p3t.js";
38
+ import"./index-cdkp8p0d.js";
39
+ import"./index-fsrsvn0j.js";
40
40
  import"./index-ae75rja9.js";
41
41
  import"./index-rs1f1bh0.js";
42
42
  import"./index-h2waehqq.js";
@@ -44,13 +44,13 @@ import"./index-ed5ykebp.js";
44
44
  import"./index-hfvxhk4z.js";
45
45
  import"./index-7g4c7s5r.js";
46
46
  import"./index-4nt52yr9.js";
47
- import"./index-fjrt81db.js";
47
+ import"./index-mejjza6g.js";
48
48
  import"./index-gprxjmm7.js";
49
49
  import"./index-n832052r.js";
50
50
  import"./index-d181x9zr.js";
51
51
  import"./index-4rhhvd1a.js";
52
52
  import"./index-zgwm4ryv.js";
53
- import"./index-n3ppm2gt.js";
53
+ import"./index-bdvbjh9n.js";
54
54
  import"./index-r4t92q32.js";
55
55
  import"./index-zjygnfay.js";
56
56
  import"./index-bk5tah7q.js";
@@ -1,13 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailLog
4
- } from "./index-b6k9z88b.js";
5
- import"./index-ev72jrxc.js";
4
+ } from "./index-8rzgy9eq.js";
5
+ import"./index-82q5cn2m.js";
6
6
  import"./index-556ja8an.js";
7
7
  import"./index-ee3x66a5.js";
8
8
  import"./index-4nt52yr9.js";
9
9
  import"./index-zgwm4ryv.js";
10
- import"./index-n3ppm2gt.js";
10
+ import"./index-bdvbjh9n.js";
11
11
  import"./index-r4t92q32.js";
12
12
  import"./index-zjygnfay.js";
13
13
  import"./index-bk5tah7q.js";
@@ -7,20 +7,20 @@ import {
7
7
  isHiveEligible,
8
8
  promoteFromSwarm,
9
9
  promoteToHive
10
- } from "./index-h7ht03c4.js";
10
+ } from "./index-g5dfrs6s.js";
11
11
  import"./index-41hkt36g.js";
12
12
  import"./index-1m1ksyqt.js";
13
- import"./index-ev72jrxc.js";
14
- import"./index-7qx874pn.js";
13
+ import"./index-82q5cn2m.js";
14
+ import"./index-j358ngpt.js";
15
15
  import"./index-brh827g0.js";
16
16
  import"./index-yyyk63kk.js";
17
17
  import"./index-y8552snf.js";
18
18
  import"./index-4905hd2m.js";
19
19
  import"./index-134d35c1.js";
20
- import"./index-3fscvmfw.js";
21
- import"./index-a6v3kzyc.js";
22
- import"./index-wv89xmbe.js";
23
- import"./index-6mjf4vr1.js";
20
+ import"./index-t3wschfh.js";
21
+ import"./index-0gre0ke3.js";
22
+ import"./index-2y3kqsrj.js";
23
+ import"./index-v2xrer41.js";
24
24
  import"./index-c8s9a3zh.js";
25
25
  import"./index-9ss2m4rs.js";
26
26
  import"./index-jfjnn408.js";
@@ -37,13 +37,13 @@ import"./index-74hpm6sh.js";
37
37
  import"./index-n0pja0qs.js";
38
38
  import"./index-8fwhhayc.js";
39
39
  import"./index-q1exe2b3.js";
40
- import"./index-8d2d7c6k.js";
41
- import"./index-1tw24kcp.js";
40
+ import"./index-61hxp7jc.js";
41
+ import"./index-nxfwwsdh.js";
42
42
  import"./index-rtry5xyf.js";
43
43
  import {
44
44
  resolveHiveKnowledgePath
45
- } from "./index-m7xks4r4.js";
46
- import"./index-68gh7p3t.js";
45
+ } from "./index-cdkp8p0d.js";
46
+ import"./index-fsrsvn0j.js";
47
47
  import"./index-ae75rja9.js";
48
48
  import"./index-rs1f1bh0.js";
49
49
  import"./index-h2waehqq.js";
@@ -51,13 +51,13 @@ import"./index-ed5ykebp.js";
51
51
  import"./index-hfvxhk4z.js";
52
52
  import"./index-7g4c7s5r.js";
53
53
  import"./index-4nt52yr9.js";
54
- import"./index-fjrt81db.js";
54
+ import"./index-mejjza6g.js";
55
55
  import"./index-gprxjmm7.js";
56
56
  import"./index-n832052r.js";
57
57
  import"./index-d181x9zr.js";
58
58
  import"./index-4rhhvd1a.js";
59
59
  import"./index-zgwm4ryv.js";
60
- import"./index-n3ppm2gt.js";
60
+ import"./index-bdvbjh9n.js";
61
61
  import"./index-r4t92q32.js";
62
62
  import"./index-zjygnfay.js";
63
63
  import"./index-bk5tah7q.js";
@@ -6,13 +6,13 @@ import {
6
6
  resolveSwarmKnowledgePath,
7
7
  transactKnowledge,
8
8
  wordBigrams
9
- } from "./index-m7xks4r4.js";
9
+ } from "./index-cdkp8p0d.js";
10
10
  import {
11
11
  countEntryContradictionsInWindow,
12
12
  countEntryViolationsInWindow,
13
13
  readKnowledgeEvents,
14
14
  recordKnowledgeEvent
15
- } from "./index-68gh7p3t.js";
15
+ } from "./index-fsrsvn0j.js";
16
16
  import {
17
17
  init_knowledge_types,
18
18
  isActiveStatus
@@ -190,11 +190,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
190
190
  alreadyInactive: true
191
191
  };
192
192
  }
193
- const { quarantineEntry } = await import("./knowledge-validator-arppnzpb.js");
193
+ const { quarantineEntry } = await import("./knowledge-validator-eqd7kywp.js");
194
194
  let policyConfig;
195
195
  try {
196
- const { KnowledgeConfigSchema } = await import("./schema-sajt4mcv.js");
197
- const { loadPluginConfigWithMeta } = await import("./index-k5z14rb1.js");
196
+ const { KnowledgeConfigSchema } = await import("./schema-dcjtwyvf.js");
197
+ const { loadPluginConfigWithMeta } = await import("./index-z6je7zhk.js");
198
198
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
199
199
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
200
200
  } catch {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  readKnowledge,
4
4
  transactKnowledge
5
- } from "./index-m7xks4r4.js";
5
+ } from "./index-cdkp8p0d.js";
6
6
  import {
7
7
  resolveKnowledgeStoreDir
8
8
  } from "./index-rs1f1bh0.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-1tw24kcp.js";
4
+ } from "./index-nxfwwsdh.js";
5
5
  import {
6
6
  findNearDuplicate,
7
7
  inferTags,
@@ -9,7 +9,7 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-m7xks4r4.js";
12
+ } from "./index-cdkp8p0d.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
15
  } from "./index-rs1f1bh0.js";
@@ -15,7 +15,7 @@ import {
15
15
  import {
16
16
  init_schema,
17
17
  stripKnownSwarmPrefix
18
- } from "./index-n3ppm2gt.js";
18
+ } from "./index-bdvbjh9n.js";
19
19
  import {
20
20
  init_constants
21
21
  } from "./index-r4t92q32.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  redactPath,
4
4
  redactShellCommand
5
- } from "./index-ev72jrxc.js";
5
+ } from "./index-82q5cn2m.js";
6
6
 
7
7
  // src/services/guardrail-log-service.ts
8
8
  import * as fs from "fs/promises";