immune-brain 5.1.1 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -6
- package/README.zh-CN.md +12 -5
- package/package.json +1 -1
- package/plugins/immune-brain/.claude-plugin/plugin.json +1 -1
- package/plugins/immune-brain/.pi-extension/imm-canary-enroll.ts +14 -2
- package/plugins/immune-brain/.pi-extension/imm-canary-work.ts +93 -0
- package/plugins/immune-brain/.pi-extension/imm-unattended-batch.ts +81 -13
- package/plugins/immune-brain/agents/immune-brain-reviewer.md +20 -0
- package/plugins/immune-brain/dist/BASELINE.md +1 -1
- package/plugins/immune-brain/dist/claude/mcp-server.mjs +8573 -7449
- package/plugins/immune-brain/dist/docs/reference/planning-quality-gate.md +1 -1
- package/plugins/immune-brain/dist/imm-brainstorm.md +6 -6
- package/plugins/immune-brain/dist/imm-doc-prune.md +2 -1
- package/plugins/immune-brain/dist/imm-planner.md +63 -37
- package/plugins/immune-brain/dist/imm-run.md +137 -12
- package/plugins/immune-brain/dist/imm-test-prune.md +233 -0
- package/plugins/immune-brain/dist/registry.yaml +9 -0
- package/plugins/immune-brain/dist/role-prompts/code-review.md +20 -0
- package/plugins/immune-brain/dist/role-prompts/executor.md +15 -0
- package/plugins/immune-brain/hooks/hooks.json +31 -1
- package/plugins/immune-brain/runtime/assurance/active_task_notice.ts +42 -0
- package/plugins/immune-brain/runtime/assurance/alias_file.ts +24 -0
- package/plugins/immune-brain/runtime/assurance/coordinator.ts +9 -0
- package/plugins/immune-brain/runtime/assurance/delivery_workspace.ts +4 -1
- package/plugins/immune-brain/runtime/assurance/phase_entry.ts +143 -0
- package/plugins/immune-brain/runtime/claude/interaction.ts +10 -1
- package/plugins/immune-brain/runtime/claude/kernel_ports.ts +32 -6
- package/plugins/immune-brain/runtime/claude/lane_guard.ts +210 -0
- package/plugins/immune-brain/runtime/claude/mcp_server.ts +85 -7
- package/plugins/immune-brain/runtime/claude/review_host.ts +6 -6
- package/plugins/immune-brain/runtime/commands/kernel.ts +54 -1
- package/plugins/immune-brain/runtime/github_issue_tracker.ts +235 -7
- package/plugins/immune-brain/runtime/kernel/runtime_contracts.json +7 -0
- package/plugins/immune-brain/runtime/kernel/runtime_contracts.ts +75 -0
- package/plugins/immune-brain/runtime/plugin_version.ts +1 -1
- package/plugins/immune-brain/runtime/prompts/code-review.md +20 -0
- package/plugins/immune-brain/runtime/prompts/executor.md +15 -0
- package/plugins/immune-brain/runtime/unattended/batch_delegation.ts +160 -0
- package/plugins/immune-brain/runtime/unattended/batch_final_verification.ts +72 -0
- package/plugins/immune-brain/runtime/unattended/batch_lanes.ts +396 -23
- package/plugins/immune-brain/runtime/unattended/batch_leak_restore.ts +131 -0
- package/plugins/immune-brain/runtime/unattended/batch_preflight.ts +25 -4
- package/plugins/immune-brain/runtime/unattended/batch_reasons.ts +3 -2
- package/plugins/immune-brain/runtime/unattended/batch_runner.ts +42 -0
- package/plugins/immune-brain/runtime/unattended/batch_schedule.ts +40 -0
- package/plugins/immune-brain/runtime/unattended/batch_state.ts +155 -0
- package/plugins/immune-brain/runtime/unattended/lane_workspace.ts +58 -0
- package/plugins/immune-brain/skills/BASELINE.md +1 -1
- package/plugins/immune-brain/skills/imm-brainstorm/SKILL.md +3 -2
- package/plugins/immune-brain/skills/imm-planner/SKILL.md +8 -6
- package/plugins/immune-brain/skills/imm-run/SKILL.md +2 -1
- package/plugins/immune-brain/skills/imm-test-prune/SKILL.md +28 -0
- package/plugins/immune-brain/skills/registry.yaml +9 -0
|
@@ -11,7 +11,8 @@ ordinary host input never resumes a Managed owner implicitly.
|
|
|
11
11
|
|
|
12
12
|
Mandatory constraints before any action: verify the active backend claim,
|
|
13
13
|
TaskIntent, and TaskRecord via `imm_kernel_canary` `status` first; invalid or
|
|
14
|
-
contradictory projections fail closed.
|
|
14
|
+
contradictory projections fail closed. With no active claim, the first step
|
|
15
|
+
is the native Enrollment gate for the validated candidate, invoked once. Resume only from those authority facts:
|
|
15
16
|
a compaction heading, HANDOFF summary, or Issue state is prose, never authority.
|
|
16
17
|
All Managed authority gates use the
|
|
17
18
|
current Host's native interaction. A failed gate stays fail-closed and
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: imm-test-prune
|
|
3
|
+
description: Use when the user explicitly requests Immune-Brain audit or pruning of redundant, bloated, or orphaned tests.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Immune-Brain: Test Prune
|
|
7
|
+
|
|
8
|
+
Use [`../../dist/imm-test-prune.md`](../../dist/imm-test-prune.md) as the canonical
|
|
9
|
+
contract index, not a whole-document read. This is a
|
|
10
|
+
standalone host-native maintenance entry, not a Managed Path continuation
|
|
11
|
+
and not an `imm-run` internal-role dispatch.
|
|
12
|
+
|
|
13
|
+
Mandatory constraints: audit is read-only. Mutation requires exact hash-bound
|
|
14
|
+
manifest approval and immediate revalidation. Preserve active Managed ownership;
|
|
15
|
+
use only the repository's own test and coverage commands; never install
|
|
16
|
+
dependencies, weaken a live assertion, change production source, or commit.
|
|
17
|
+
Interruption requires a fresh scan.
|
|
18
|
+
|
|
19
|
+
Section routes - load a section's instructions only when its branch applies.
|
|
20
|
+
Read each linked heading body up to the next heading; nested sections and
|
|
21
|
+
references load only under their own condition. Never read the whole contract
|
|
22
|
+
or all references as an entry prerequisite.
|
|
23
|
+
|
|
24
|
+
- common: [Authority Boundary](../../dist/imm-test-prune.md#authority-boundary), [Invocation](../../dist/imm-test-prune.md#invocation)
|
|
25
|
+
- audit or manifest preparation: [Inventory and Manifest](../../dist/imm-test-prune.md#inventory-and-manifest)
|
|
26
|
+
- approved mutation before any edit: [Mutation Envelope](../../dist/imm-test-prune.md#mutation-envelope), [Approved Mutation](../../dist/imm-test-prune.md#approved-mutation)
|
|
27
|
+
- completion: [Verify and Report](../../dist/imm-test-prune.md#verify-and-report)
|
|
28
|
+
- recovery or deletion recoverability: [Recovery](../../dist/imm-test-prune.md#recovery)
|
|
@@ -56,6 +56,15 @@ skills:
|
|
|
56
56
|
output_artifacts: [maintain_report]
|
|
57
57
|
next_actions: []
|
|
58
58
|
boundary: Minimize tracked agent-instruction context after explicit manifest approval; no Managed authority mutation, contract installation, or reference-document creation.
|
|
59
|
+
- name: imm-test-prune
|
|
60
|
+
path: skills/imm-test-prune/SKILL.md
|
|
61
|
+
role: execute
|
|
62
|
+
title: Test Prune
|
|
63
|
+
role_class: repair
|
|
64
|
+
canonical: true
|
|
65
|
+
output_artifacts: [test_prune_report]
|
|
66
|
+
next_actions: []
|
|
67
|
+
boundary: Audit and prune redundant tests after explicit manifest approval; no Managed authority mutation, production-source change, or assertion weakening.
|
|
59
68
|
- name: imm-retro
|
|
60
69
|
path: skills/imm-retro/SKILL.md
|
|
61
70
|
role: execute
|