@maxkle1nz/m1nd 0.9.0-beta.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.
@@ -0,0 +1,81 @@
1
+ # m1nd Universal Agent Pack
2
+
3
+ Use this pack in any coding-agent host that can read project rules, custom
4
+ instructions, memory, or prompt files.
5
+
6
+ ## Prime Directive
7
+
8
+ Use `m1nd` as the first investigative layer before raw grep, filesystem
9
+ globbing, or manual file reads when the task depends on repository structure,
10
+ docs, impact, continuity, or risky change preparation.
11
+
12
+ Skip the first pass only when the user gave exact file/line truth, when compiler
13
+ or runtime output is the only source of truth, or when the task is a trivial
14
+ local file action.
15
+
16
+ ## Startup Trust Loop
17
+
18
+ 1. Call `trust_selftest` if the host exposes it.
19
+ 2. If unavailable, call `session_handshake`.
20
+ 3. If only `health` is exposed, inspect `tool_surface_contract` and
21
+ `host_binding_alignment`.
22
+ 4. If trust is not full, call or follow `recovery_playbook`.
23
+ 5. Only then rely on retrieval surfaces such as `search`, `seek`, or `activate`.
24
+
25
+ `trust_selftest` and `recovery_playbook` are diagnostic. They do not ingest,
26
+ repair, refresh the host, or mutate the graph.
27
+
28
+ ## Tool Routing
29
+
30
+ - Exact text -> `search`
31
+ - Path pattern -> `glob`
32
+ - Known purpose, unknown location -> `seek`
33
+ - Topic, subsystem, or neighborhood -> `activate`
34
+ - Unfamiliar repo -> `audit`
35
+ - Stacktrace or runtime error text -> `trace`
36
+ - Risky change -> `impact`, `predict`, `validate_plan`, then usually
37
+ `surgical_context_v2`
38
+ - Docs/specs -> `ingest` with `adapter="universal"` or `adapter="light"`, then
39
+ document binding/drift tools
40
+
41
+ ## Recovery Rules
42
+
43
+ If `seek`, `search`, or `activate` returns `blocked`, zero candidates, or an
44
+ unexpectedly empty graph after ingest, treat it as possible stale binding or
45
+ session split-brain before blaming the repo.
46
+
47
+ Pass the returned `recovery.arguments` to `recovery_playbook` when present. If
48
+ the response has no payload, call `recovery_playbook` with:
49
+
50
+ ```json
51
+ {"agent_id":"agent","observed_tool":"seek","observed_proof_state":"blocked","observed_candidates":0}
52
+ ```
53
+
54
+ If m1nd is visible but required tools such as `ingest`, `trust_selftest`, or
55
+ `recovery_playbook` are missing, classify the session as
56
+ `degraded_host_tool_surface`. Use m1nd only for orientation and verify final
57
+ truth with local files until the host binding refreshes.
58
+
59
+ ## Change Discipline
60
+
61
+ Before risky edits:
62
+
63
+ 1. Use `seek` or `activate` to find the connected surface.
64
+ 2. Use `impact` for blast radius.
65
+ 3. Use `validate_plan` for missing work.
66
+ 4. Use `surgical_context_v2` for compact edit context.
67
+ 5. Run compiler/tests/runtime checks for execution truth.
68
+
69
+ `m1nd` complements the compiler, test runner, LSP, debugger, security scanner,
70
+ and local file truth. It does not replace them.
71
+
72
+ ## Continuity
73
+
74
+ Keep `agent_id` stable within one investigation. Use trails, perspectives, and
75
+ coverage sessions when work spans agents, branches, or sessions.
76
+
77
+ ## L1GHT
78
+
79
+ Use `adapter="light"` for graph-native semantic markdown. Use
80
+ `adapter="universal"` or `adapter="auto"` for ordinary docs, wiki pages, PDFs,
81
+ and office documents.