Skip to content

Commit 02b15e2

Browse files
DarKWinGTMclaude
andcommitted
feat: add deterministic standalone trial emission
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a70970c commit 02b15e2

37 files changed

Lines changed: 3636 additions & 419 deletions

plugin/memory-context-intelligence/.claude-plugin/plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "memory-context-intelligence",
3-
"version": "0.9.29",
4-
"description": "Claude Code plugin package for guided init configuration, bounded memory-trace intake, internal signal/topic analysis, topic presentation, choose-flow selection, optional controlled research enrichment, runtime-local bounded orchestration, candidate packet building, and gated single-topic-per-artifact additional-stage emission, plus deterministic historical replay validation, bounded live additional-stage trial reporting, and checked-scope readiness reporting. Phase 016 reports usable in checked scope only when evidence gates pass and has no stable/broad production readiness, install/publication, marketplace release, main RULES mutation, main RULES promotion, or main RULES merge claims.",
3+
"version": "0.9.30",
4+
"description": "Claude Code plugin package for guided init configuration, bounded memory-trace intake, internal signal/topic analysis, advisory topic presentation, optional controlled research enrichment, runtime-local bounded orchestration, candidate entailment and evidence normalization, and deterministic selected-topic additional-stage trial emission. Explicit later selection creates one rich standalone artifact per topic only after full-set collision and containment preflight; existing files are never overwritten, and Main RULES promotion remains a separate unapproved action. This package has no stable/broad production readiness, install/publication, marketplace release, Main RULES mutation, Main RULES promotion, or Main RULES merge claims.",
55
"author": {
66
"name": "darkwingtm",
77
"url": "https://github.com/darkwingtm"

plugin/memory-context-intelligence/README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# memory-context-intelligence
22

3-
> **Status:** Plugin-scoped init-configuration surface completed in checked scope; `/memory-context-intelligence:init` now owns guided setup, `/memory-context-intelligence:analysis` remains the review surface, `review` and `packet` remain deferred, and packet/additional emission stays one-topic-per-artifact
4-
> **Current Version:** 0.1.77
5-
> **Plugin Package Version:** 0.9.29
6-
> **Session:** d42465eb-30a7-4bc8-b9d6-03e52306e9a5 (2026-06-02)
3+
> **Status:** Deterministic selected-topic additional-stage emission is implemented and verified in the local plugin test/smoke scope; `/memory-context-intelligence:analysis` remains read-only and advisory, while package publication and remote release verification remain pending
4+
> **Current Version:** 0.1.78
5+
> **Plugin Package Version:** 0.9.30
6+
> **Session:** 48a3ef9b-50cf-4574-8f00-4f6b6e28f76e (2026-08-09)
77
88
---
99

@@ -32,7 +32,11 @@ Current checked behavior that matters:
3232
- `recall_evidence`, `durable_memory_context`, and `governance_context` can strengthen wording and context, but they do not replace trace proof
3333
- when adaptive deep-analysis marks a top topic as requiring deeper review, the checked current skill contract now requires one **bounded read-only deepening pass** before the first response instead of silently skipping it
3434
- that deepening can use read-only subagent help plus optional web/external research support, but it still stays advisory-only and cannot replace local trace proof
35-
- if several advisory topics are deepened or compared, any later packet-derived or additional-stage output must still keep **one selected topic per artifact** and must **split into separate per-topic artifacts** instead of emitting a combined file
35+
- the initial analysis response remains **read-only and advisory**; choosing a Topic for discussion does not create a file
36+
- after an explicit later request to create selected Topics as additional-stage trials, the plugin uses deterministic defaults rather than asking about internal template, routing, overwrite, or source-sync choices
37+
- every selected Topic becomes **one rich standalone artifact**, and a multi-topic selection remains a set of independent one-topic artifacts rather than one combined file
38+
- the complete selected set is preflighted before the first write; any duplicate or existing destination rejects the whole set, preserves existing bytes, and has no overwrite fallback
39+
- additional-stage selection does not approve Main RULES promotion, which remains a separate governed decision
3640
- if no config file is loaded, the plugin can show a **guided config helper** and point the operator to `/memory-context-intelligence:init` instead of expecting raw arguments as the normal UX
3741
- the default config target is now the user-scope file `~/.claude/memory-context-intelligence.config.json`
3842

@@ -163,10 +167,13 @@ If usable evidence is available, you should get topic-card output such as:
163167
- when the adaptive payload flags a top topic for deeper review, the first response may now include one bounded read-only deepening pass before the cards are finished, while still keeping the final result advisory-only and trace-anchored
164168

165169
At the end of the output, you should also see `Next action options`, such as:
166-
- choose a topic number
170+
- choose a topic number for further advisory review
171+
- explicitly request later additional-stage trial creation for one or several Topic numbers
167172
- type a direct request
168173
- ask for deep thinking, websearch, or webfetch first
169174

175+
Choosing a Topic by itself does not authorize file creation. When you explicitly ask to create selected Topics as additional-stage trials, the deterministic workflow creates one standalone artifact per Topic only after the entire destination set passes collision and containment checks. Existing files are preserved, overwrite is unavailable, and Main RULES promotion remains unapproved.
176+
170177
### If no config file is loaded
171178

172179
If the current run does not load `~/.claude/memory-context-intelligence.config.json`, you should see a **Config helper** that points you toward `/memory-context-intelligence:init` and asks operator-facing questions such as:
@@ -248,7 +255,10 @@ Current checked boundaries for this plugin:
248255
- bare `/analysis` is **not** current proved runtime behavior
249256
- `/memory-context-intelligence:review` and `/memory-context-intelligence:packet` are still deferred
250257
- `bin/memory-context-intelligence` is an internal implementation adapter, not the main user workflow
251-
- packet/additional-stage emission remains a single-topic-per-artifact flow; if several topics are ever carried forward, they must split into separate per-topic artifacts rather than one combined file
258+
- initial analysis and ordinary Topic choice remain no-write advisory operations
259+
- explicit later additional-stage trial creation remains one-topic-per-artifact; several selected Topics are independently rendered and pass one full-set preflight before any write
260+
- any duplicate or existing destination blocks the complete selected set; existing bytes are preserved and no overwrite path is available
261+
- additional-stage trial selection does not approve Main RULES promotion
252262
- plugin-managed auto-flow is not currently claimed as proved behavior
253263
- this README does not claim external marketplace publication or broad production readiness
254264

plugin/memory-context-intelligence/bin/memory-context-intelligence

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ show_status() {
1414
printf '%s\n' "research enrichment command: enrich"
1515
printf '%s\n' "native-agent orchestration command: orchestrate"
1616
printf '%s\n' "candidate packet command: packet"
17-
printf '%s\n' "additional-stage emission command: emit"
17+
printf '%s\n' "additional-stage emission commands: emit (one packet) and emit-selected (full selected set)"
1818
printf '%s\n' "historical replay command: replay"
1919
printf '%s\n' "live bounded trial command: trial"
2020
printf '%s\n' "checked-scope readiness command: ready"
@@ -27,7 +27,7 @@ show_status() {
2727
printf '%s\n' "research enrichment: optional through enrich using one selected topic report and controlled/recorded sources; no live web access by default"
2828
printf '%s\n' "native-agent orchestration: runtime-local bounded orchestration available; no external agent process is spawned"
2929
printf '%s\n' "candidate packet building: available through packet; output remains local structured stdout and one selected topic maps to one artifact"
30-
printf '%s\n' "/additional/ emission: dry-run preview by default; approved write requires emit --approved-write and combined multi-topic output is not allowed"
30+
printf '%s\n' "/additional/ emission: dry-run by default; explicit later Topic selection uses one packet per topic, one full-set preflight, exclusive writes, and collision refusal with no overwrite path"
3131
printf '%s\n' "historical replay: bounded deterministic phase-014 replay with dry-run emit preview only; approved writes are unavailable and any future multi-topic carry-forward must split first"
3232
printf '%s\n' "live bounded trial: one selected candidate can be emitted under an explicitly selected additional root with --approved-write; multiple topics require separate per-topic artifacts"
3333
printf '%s\n' "checked-scope readiness: aggregates phases 007-015 and reports usable in checked scope only when evidence gates pass"
@@ -45,8 +45,9 @@ show_status() {
4545
printf '%s\n' "usage: bash ./bin/memory-context-intelligence choose --signals-report <signals-report.json> --topic-id <topic-id> [--output-mode auto|native-first|bilingual|fixed]"
4646
printf '%s\n' "usage: bash ./bin/memory-context-intelligence enrich --selection-report <choose-report.json> [--sources-fixture <sources.json>]"
4747
printf '%s\n' "usage: bash ./bin/memory-context-intelligence orchestrate [--intake-report <intake.json>] [--signals-report <signals.json>] [--selection-report <choose.json>] [--enrichment-report <enrich.json>] [--sources-fixture <sources.json>] [--max-sources <n>]"
48-
printf '%s\n' "usage: bash ./bin/memory-context-intelligence packet --orchestration-report <orchestrate.json> --owner-domain <domain> --main-rule-target <rule.md>"
49-
printf '%s\n' "usage: bash ./bin/memory-context-intelligence emit --packet-report <packet.json> [--additional-root <additional-root>] [--approved-write] [--allow-overwrite]"
48+
printf '%s\n' "usage: bash ./bin/memory-context-intelligence packet --orchestration-report <orchestrate.json> --owner-domain <domain> --main-rule-target <rule.md> [--integration-anchor <rule.md>] [--selected-for-additional-trial]"
49+
printf '%s\n' "usage: bash ./bin/memory-context-intelligence emit --packet-report <packet.json> [--additional-root <additional-root>] [--approved-write]"
50+
printf '%s\n' "usage: bash ./bin/memory-context-intelligence emit-selected --packet-report <packet.json> [--packet-report <packet-2.json>] [--additional-root <additional-root>] [--approved-write]"
5051
printf '%s\n' "usage: bash ./bin/memory-context-intelligence replay --memory-root <memory-root> [--scope <text>] [--sources-fixture <sources.json>] [--additional-root <additional-root>]"
5152
printf '%s\n' "usage: bash ./bin/memory-context-intelligence trial --memory-root <memory-root> --owner-domain <domain> --main-rule-target <rule.md> --additional-root <additional-root> [--approved-write]"
5253
printf '%s\n' "usage: bash ./bin/memory-context-intelligence ready --memory-root <memory-root> --owner-domain <domain> --main-rule-target <rule.md> --additional-root <additional-root> --main-rules-root <rules-root> [--phase-015-trial-artifact <artifact.md>]"
@@ -92,6 +93,10 @@ case "${1:---help}" in
9293
shift
9394
python3 "${PACKAGE_ROOT}/lib/candidate_packet.py" emit "$@"
9495
;;
96+
emit-selected)
97+
shift
98+
python3 "${PACKAGE_ROOT}/lib/candidate_packet.py" emit-selected "$@"
99+
;;
95100
replay)
96101
shift
97102
python3 "${PACKAGE_ROOT}/lib/historical_replay.py" "$@"
@@ -106,7 +111,7 @@ case "${1:---help}" in
106111
;;
107112
*)
108113
printf '%s\n' "memory-context-intelligence: unknown command '$1'" >&2
109-
printf '%s\n' "Run with --help, status, noop, intake, signals, present, choose, enrich, orchestrate, packet, emit, replay, trial, or ready." >&2
114+
printf '%s\n' "Run with --help, status, noop, intake, signals, present, choose, enrich, orchestrate, packet, emit, emit-selected, replay, trial, or ready." >&2
110115
exit 2
111116
;;
112117
esac

0 commit comments

Comments
 (0)