@heretek-ai/epistemic-swarm 0.7.21 → 0.7.22

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 (91) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +1 -1
  3. package/bin/cli.js +3 -2
  4. package/extensions/pi/index.js +3 -2
  5. package/package.json +1 -1
  6. package/plugins/antigravity/plugin.json +1 -1
  7. package/plugins/factory/skills/factory/SKILL.md +1 -1
  8. package/plugins/opencode/config-io.js +598 -31
  9. package/plugins/opencode/index.js +56 -15
  10. package/plugins/opencode/tui.js +115 -11
  11. package/plugins/research-cache/skills/research_cache/hasher.py +33 -8
  12. package/runner/__pycache__/__init__.cpython-311.pyc +0 -0
  13. package/runner/__pycache__/auctioneer.cpython-311.pyc +0 -0
  14. package/runner/__pycache__/auditor_engine.cpython-311.pyc +0 -0
  15. package/runner/__pycache__/claim_store.cpython-311.pyc +0 -0
  16. package/runner/__pycache__/claim_witness.cpython-311.pyc +0 -0
  17. package/runner/__pycache__/darkharvest_claims.cpython-311.pyc +0 -0
  18. package/runner/__pycache__/errors.cpython-311.pyc +0 -0
  19. package/runner/__pycache__/living_dossiers.cpython-311.pyc +0 -0
  20. package/runner/__pycache__/mcp_protocol.cpython-311.pyc +0 -0
  21. package/runner/__pycache__/mcp_server.cpython-311.pyc +0 -0
  22. package/runner/__pycache__/path_safety.cpython-311.pyc +0 -0
  23. package/runner/__pycache__/pcrb.cpython-311.pyc +0 -0
  24. package/runner/__pycache__/pcrb_verify.cpython-311.pyc +0 -0
  25. package/runner/__pycache__/preflight.cpython-311.pyc +0 -0
  26. package/runner/__pycache__/refinement.cpython-311.pyc +0 -0
  27. package/runner/__pycache__/research_swarm.cpython-311.pyc +0 -0
  28. package/runner/__pycache__/retrieval_log.cpython-311.pyc +0 -0
  29. package/runner/__pycache__/schema_validate.cpython-311.pyc +0 -0
  30. package/runner/__pycache__/schemas.cpython-311.pyc +0 -0
  31. package/runner/__pycache__/state_machine.cpython-311.pyc +0 -0
  32. package/runner/mcp_server.py +249 -81
  33. package/runner/refinement.py +5 -0
  34. package/runner/schema_validate.py +63 -1
  35. package/runner/schemas.py +9 -4
  36. package/runner/tests/__pycache__/test_antigravity_plugin.cpython-311.pyc +0 -0
  37. package/runner/tests/__pycache__/test_auction_order.cpython-311.pyc +0 -0
  38. package/runner/tests/__pycache__/test_backends.cpython-311.pyc +0 -0
  39. package/runner/tests/__pycache__/test_bet1_spike.cpython-311.pyc +0 -0
  40. package/runner/tests/__pycache__/test_claim_store.cpython-311.pyc +0 -0
  41. package/runner/tests/__pycache__/test_claim_witness.cpython-311.pyc +0 -0
  42. package/runner/tests/__pycache__/test_claude_plugin.cpython-311.pyc +0 -0
  43. package/runner/tests/__pycache__/test_config_schema.cpython-311.pyc +0 -0
  44. package/runner/tests/__pycache__/test_contract_tooling.cpython-311.pyc +0 -0
  45. package/runner/tests/__pycache__/test_darkharvest_audit.cpython-311.pyc +0 -0
  46. package/runner/tests/__pycache__/test_domain_packs.cpython-311.pyc +0 -0
  47. package/runner/tests/__pycache__/test_dossier_contract.cpython-311.pyc +0 -0
  48. package/runner/tests/__pycache__/test_factory.cpython-311.pyc +0 -0
  49. package/runner/tests/__pycache__/test_fleet_seam.cpython-311.pyc +0 -0
  50. package/runner/tests/__pycache__/test_frontier_concurrency.cpython-311.pyc +0 -0
  51. package/runner/tests/__pycache__/test_frontier_mirror_standalone.cpython-311.pyc +0 -0
  52. package/runner/tests/__pycache__/test_grounding.cpython-311.pyc +0 -0
  53. package/runner/tests/__pycache__/test_hardening_contract.cpython-311.pyc +0 -0
  54. package/runner/tests/__pycache__/test_living_dossiers.cpython-311.pyc +0 -0
  55. package/runner/tests/__pycache__/test_manifest_concurrency.cpython-311.pyc +0 -0
  56. package/runner/tests/__pycache__/test_mcp_server.cpython-311.pyc +0 -0
  57. package/runner/tests/__pycache__/test_opencode_ux.cpython-311.pyc +0 -0
  58. package/runner/tests/__pycache__/test_opencode_v2_registrars.cpython-311.pyc +0 -0
  59. package/runner/tests/__pycache__/test_pcrb.cpython-311.pyc +0 -0
  60. package/runner/tests/__pycache__/test_phase08_waiver_reopens.cpython-311.pyc +0 -0
  61. package/runner/tests/__pycache__/test_refinement.cpython-311.pyc +0 -0
  62. package/runner/tests/__pycache__/test_search_anomaly.cpython-311.pyc +0 -0
  63. package/runner/tests/__pycache__/test_search_provider.cpython-311.pyc +0 -0
  64. package/runner/tests/__pycache__/test_search_provider_plugin.cpython-311.pyc +0 -0
  65. package/runner/tests/__pycache__/test_swarm.cpython-311.pyc +0 -0
  66. package/runner/tests/__pycache__/test_swarm_config.cpython-311.pyc +0 -0
  67. package/runner/tests/__pycache__/test_sweep_regressions.cpython-311.pyc +0 -0
  68. package/runner/tests/__pycache__/test_webcache.cpython-311.pyc +0 -0
  69. package/runner/tests/fixtures/config_validation_cases.json +60 -0
  70. package/runner/tests/test_config_schema.py +119 -15
  71. package/runner/tests/test_hardening_contract.py +391 -0
  72. package/runner/tests/test_opencode_ux.py +232 -0
  73. package/runner/tests/test_opencode_v2_registrars.py +548 -16
  74. package/runner/tests/test_phase08_waiver_reopens.py +539 -0
  75. package/schemas/config.schema.json +4 -3
  76. package/scripts/__pycache__/bet1_advisory_spike.cpython-311.pyc +0 -0
  77. package/scripts/__pycache__/build_adapters.cpython-311.pyc +0 -0
  78. package/scripts/__pycache__/check_docs.cpython-311.pyc +0 -0
  79. package/scripts/__pycache__/divergence_experiment.cpython-311.pyc +0 -0
  80. package/scripts/__pycache__/gen_schemas.cpython-311.pyc +0 -0
  81. package/skills/epistemic_search/scripts/__pycache__/search.cpython-311.pyc +0 -0
  82. package/skills/factory/SKILL.md +1 -1
  83. package/skills/grilling/__pycache__/__init__.cpython-311.pyc +0 -0
  84. package/skills/grilling/__pycache__/socratic_tree.cpython-311.pyc +0 -0
  85. package/skills/research_cache/__pycache__/__init__.cpython-311.pyc +0 -0
  86. package/skills/research_cache/__pycache__/hasher.cpython-311.pyc +0 -0
  87. package/skills/research_cache/hasher.py +33 -8
  88. package/skills/swarm_config/SKILL.md +6 -1
  89. package/skills/swarm_config/__pycache__/__init__.cpython-311.pyc +0 -0
  90. package/skills/swarm_config/__pycache__/configure.cpython-311.pyc +0 -0
  91. package/skills/swarm_config/configure.py +254 -17
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "epistemic-swarm",
3
- "version": "0.7.21",
3
+ "version": "0.7.22",
4
4
  "description": "High-Integrity Dialectic Research Agent Harness for Claude Code enforcing empirical evidence over parametric hallucination.",
5
5
  "author": {
6
6
  "name": "Heretek AI",
package/README.md CHANGED
@@ -224,7 +224,7 @@ The canonical MCP server (`python3 runner/mcp_server.py`, stdio) exposes these t
224
224
  | `iumbtems_oss_scout` | Scout open-source libraries, audit licenses, and build clean-room blueprints. |
225
225
  | `iumbtems_brainstorm` | Lateral ideation portfolio: feature vectors, paradigm moves, falsifiable spikes. Never bug fixes. |
226
226
  | `iumbtems_darkharvest` | Product competitor teardown with per-feature `depend\|vendor\|clean-room\|skip` verdicts and SPDX attribution. |
227
- | `iumbtems_factory` | Drive factory run state: `init` / `phase-add` / `qa-record` / `expansion` / `stop`. State in `<project>/.factory` and `.roadmap`. |
227
+ | `iumbtems_factory` | Drive factory run state: `init` / `phase-add` / `qa-record` / `expansion` / `stop` / `gate`. State in `<project>/.factory` and `.roadmap`. |
228
228
  | `iumbtems_verify_quote` | Audit a verbatim citation against the SHA-256 source cache (`.research/sources/<hash>.md`). |
229
229
  | `iumbtems_socratic_frontier` | Inspect or advance the Socratic decision-tree frontier (`.research/frontier.json`). |
230
230
  | `iumbtems_export_brief` | Export a proof-carrying research brief (PCRB): a self-contained signed bundle of synthesis, claims, quote witnesses, and full source texts. |
package/bin/cli.js CHANGED
@@ -50,7 +50,7 @@ Commands:
50
50
  run "<objective>" Run the dialectic multi-agent research swarm
51
51
  brainstorm "<prompt>" Run lateral brainstorming (feature vectors + spikes)
52
52
  darkharvest "<arena>" Product competitor teardown with harvest verdicts
53
- factory <subcommand> Factory run-state helper (init, phase-add, qa-record, expansion, stop)
53
+ factory <subcommand> Factory run-state helper (init, phase-add, qa-record, expansion, stop, gate)
54
54
  grill Launch interactive Socratic decision tree framing
55
55
  adapters Rebuild harness adapter mirrors (skills -> plugins/*, .agents)
56
56
  install Install skills & MCP servers into ~/.claude/
@@ -183,12 +183,13 @@ switch (command) {
183
183
  // iumbtems factory qa-record --run arena --phase 01-x --seat qa-a --verdict pass
184
184
  if (args[1] === '--help' || !args[1]) {
185
185
  console.log([
186
- 'Usage: iumbtems factory <init|phase-add|qa-record|expansion|stop> [options]',
186
+ 'Usage: iumbtems factory <init|phase-add|qa-record|expansion|stop|gate> [options]',
187
187
  ' init --run <name>',
188
188
  ' phase-add --run <name> --phase <id> --goal "<goal>" --accept "a;b"',
189
189
  ' qa-record --run <name> --phase <id> --seat <qa-a|qa-b> --verdict <pass|fail|conditional> [--reason "..."]',
190
190
  ' expansion --run <name> --loops <n> [--max-loops 10]',
191
191
  ' stop --run <name> (writes .factory/STOP kill-file)',
192
+ ' gate --run <name> --phase <id> --action <open|settle|approve|waive|escalate|count> [--reason "..."]',
192
193
  ].join('\n'));
193
194
  break;
194
195
  }
@@ -319,11 +319,12 @@ export default function initPiExtension(pi) {
319
319
  // Tool: iumbtems_factory (run-state helper, no script paths)
320
320
  pi.registerTool({
321
321
  name: 'iumbtems_factory',
322
- description: 'Drive factory run state: init / phase-add / qa-record / expansion / stop',
322
+ description: 'Drive factory run state: init / phase-add / qa-record / expansion / stop / gate',
323
323
  parameters: {
324
324
  type: 'object',
325
325
  properties: {
326
- command: { type: 'string', enum: ['init', 'phase-add', 'qa-record', 'expansion', 'stop'] },
326
+ command: { type: 'string', enum: ['init', 'phase-add', 'qa-record', 'expansion', 'stop', 'gate'] },
327
+ action: { type: 'string', enum: ['open', 'settle', 'approve', 'waive', 'escalate', 'count'], description: 'Gate action (with command: gate)' },
327
328
  run: { type: 'string', description: 'Factory run name' },
328
329
  phase: { type: 'string' },
329
330
  goal: { type: 'string' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heretek-ai/epistemic-swarm",
3
- "version": "0.7.21",
3
+ "version": "0.7.22",
4
4
  "description": "IUMBTEMS (Epistemic Swarm) \u2014 High-Integrity Dialectic Research Agent Harness for Claude Code, OpenCode V2, Pi (pi.dev), OMP (oh-my-pi), Gemini CLI, Codex CLI, and AntiGravity",
5
5
  "main": "bin/cli.js",
6
6
  "bin": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://antigravity.google/schemas/v1/plugin.json",
3
3
  "name": "epistemic-swarm",
4
- "version": "0.7.21",
4
+ "version": "0.7.22",
5
5
  "description": "IUMBTEMS (Epistemic Swarm) \u2014 High-Integrity Dialectic Research, Architecture Auditing, Competitor Teardowns, and Socratic Planning for Antigravity.",
6
6
  "author": {
7
7
  "name": "Heretek AI",
@@ -21,7 +21,7 @@ npm cache in consuming projects, and relative paths broke live: the manager
21
21
  agent ran `find / -name factory.py`). The tool wraps the same helper and
22
22
  resolves the project via `project_dir` argument, `IUMBTEMS_PROJECT_DIR`, or
23
23
  the session cwd. It supports `init`, `phase-add`, `qa-record`, `expansion`,
24
- `stop`, and returns `status: escalated` (exit 2) on the 3rd QA failure.
24
+ `stop`, `gate` (`--action open|settle|approve|waive|escalate|count`), and returns `status: escalated` (exit 2) on the 3rd QA failure.
25
25
 
26
26
  ## 2. Gate protocol (max 5 swarm cycles per gate)
27
27