arcane-cli 0.25.0 → 0.26.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,13 @@
1
+ ---
2
+ description: Use PROACTIVELY when naming anything new (a spell, a field, a product, an internal concept) before committing to it — clears a candidate name against both the outside world and this repository itself.
3
+ ---
4
+
5
+ # Scry
6
+
7
+ Invoke the Arcane `spell-scry` spell workflow.
8
+
9
+ See the full prompt at `.github/prompts/spell-scry.prompt.md` for the complete workflow definition.
10
+
11
+ ---
12
+
13
+ @.github/prompts/spell-scry.prompt.md
@@ -0,0 +1,123 @@
1
+ ---
2
+ name: Spell — Scry
3
+ description: Clear a candidate name before it ships — four outward checks (who coined it, estate still trading, same-audience giants, first-association salience) plus a mandatory inward repo-local collision pass. Use when naming anything new (a spell, a field, a product, an internal concept) before committing to it.
4
+ argument-hint: '<candidate name or term>'
5
+ agent: agent
6
+ ---
7
+
8
+ ## Executive Summary
9
+
10
+ - This spell clears a candidate name before it ships, checking both the outside world and this
11
+ repository itself.
12
+ - The inward pass runs first and is mandatory, not optional — a real naming decision (ARC-028's
13
+ `workspace`) was nearly settled on a clean external read alone, until a single `grep -ri` found the
14
+ word already load-bearing inside the repository in two other senses.
15
+ - Both passes classify hits with the same taxonomy (same-space / adjacent / out-of-space) and combine
16
+ into one verdict: pass / pass-with-disclosure / kill.
17
+ - `spell ward` is the opposite direction of this same concern — it finds what leaked **in**; this spell
18
+ clears what's about to go **out**. They do not call each other; ward's denylist scanning and scry's
19
+ single-candidate classification are different operations on the same underlying grep primitive.
20
+
21
+ ---
22
+
23
+ Clear the candidate name given in the prompt argument.
24
+
25
+ ## Step 1 — Resolve the candidate
26
+
27
+ Take the term verbatim from the argument. If none was given, ask for it — do not guess a name to check.
28
+
29
+ ## Step 2 — Inward pass (mandatory, run first)
30
+
31
+ Grep this repository for the candidate term before doing any outward research:
32
+
33
+ - **Prose**: markdown, comments, documentation.
34
+ - **Identifiers**: variable, function, type, and class names — weight these **above** prose, since
35
+ consumers already depend on code identifiers in a way they never depend on a sentence mentioning a
36
+ word.
37
+ - **Config keys and schema fields**: `.arcane.json` fields, YAML/JSON config keys, any validated schema.
38
+
39
+ Use word-boundary matching (the same principle `spell ward`'s denylist scan uses, expressed here as a
40
+ `grep -w` / IDE-search equivalent over the codebase) — a bare substring match on a short candidate term
41
+ will drown in false positives from unrelated words that merely contain it.
42
+
43
+ **Classify each internal hit with the same taxonomy the outward checks use below:**
44
+
45
+ - **Same-space**: the term is already load-bearing for a closely related concept (a config field, a
46
+ directory name, a class doing adjacent work) — a genuine internal collision.
47
+ - **Adjacent**: the term appears near the concept but for something distinguishable enough that a
48
+ reader would not confuse the two once told them apart.
49
+ - **Out-of-space**: incidental — a comment, an unrelated variable, coincidental substring overlap.
50
+
51
+ **Why this runs first:** a same-space internal collision is often cheaper to find than the outward
52
+ research below, and finding one early can save the effort of a full outward pass on a name that was
53
+ already going to be killed. This is not a formality — the ARC-028 `workspace` incident is the concrete
54
+ case: a clean external read had nearly settled the decision before a single `grep -ri` found the word
55
+ already meaning something else in two other places inside this exact repository.
56
+
57
+ ## Step 3 — Outward pass: the four checks
58
+
59
+ Research the candidate term against the outside world:
60
+
61
+ 1. **Who coined it** — search for the term's origin and earliest known usage in the relevant space
62
+ (software, apps, AI, games — whichever applies to this candidate).
63
+ 2. **Is an estate/trademark holder still trading** — distinguish an actively-used, enforced brand from
64
+ an abandoned or long-defunct one. A defunct mark carries much less collision risk than a live one.
65
+ 3. **Same-audience giants** — do major, well-known players who share this candidate's actual target
66
+ audience already use this name saliently? A collision with a giant outside the target audience
67
+ matters far less than one inside it.
68
+ 4. **First-association salience per market** — for someone in the target market, what does this term
69
+ bring to mind *first*? If the first association is something else entirely, that is a real cost even
70
+ without a formal trademark conflict.
71
+
72
+ Classify each outward finding with the **same** same-space / adjacent / out-of-space taxonomy as the
73
+ inward pass — never a separate scheme. Cite sources for every outward claim; do not assert a name's
74
+ history or salience from unverified general knowledge alone.
75
+
76
+ ## Step 4 — Combine into one verdict
77
+
78
+ A name that clears outward but collides inward is not a clean pass, and the reverse is equally true —
79
+ combine both passes into a single verdict, not two separate reports:
80
+
81
+ - **pass** — no same-space finding, inward or outward; adjacent/out-of-space findings, if any, are
82
+ noted but do not block.
83
+ - **pass-with-disclosure** — a same-space finding exists but is distant, low-traffic, or otherwise minor
84
+ enough that proceeding is reasonable with the collision stated explicitly, not discovered later.
85
+ - **kill** — a genuine, blocking same-space collision, inward or outward. Do not soften this to
86
+ pass-with-disclosure merely because the outward research took effort to produce.
87
+
88
+ ## Step 5 — Report
89
+
90
+ ```markdown
91
+ ## Scry verdict: <candidate> — PASS | PASS-WITH-DISCLOSURE | KILL
92
+
93
+ ### Inward pass
94
+ | Hit | Location | Classification |
95
+ |---|---|---|
96
+ | <term usage> | <file:line> | same-space / adjacent / out-of-space |
97
+
98
+ ### Outward pass
99
+ | Check | Finding | Classification | Source |
100
+ |---|---|---|---|
101
+ | Who coined it | ... | ... | <url or citation> |
102
+ | Estate still trading | ... | ... | <url or citation> |
103
+ | Same-audience giants | ... | ... | <url or citation> |
104
+ | First-association salience | ... | ... | <url or citation> |
105
+
106
+ ### Verdict rationale
107
+ <why this combination of inward + outward findings produced this verdict>
108
+ ```
109
+
110
+ ## Related Spells
111
+
112
+ - `spell ward` — the opposite direction: finds third-party identifiers that already leaked into the
113
+ repo, rather than clearing a candidate before it ships out.
114
+
115
+ ## Rules
116
+
117
+ - **Never skip the inward pass.** It is not optional, and it runs before the outward pass, not after.
118
+ - **Never assert an outward finding without a source.** "Based on general knowledge" is not a citation.
119
+ - **Never use a separate classification scheme for inward vs. outward findings.** Same-space / adjacent
120
+ / out-of-space applies to both, so a reader can compare them directly.
121
+ - **Never round pass-with-disclosure up to pass, or down to kill, to avoid stating a nuanced verdict.**
122
+ - This spell classifies and reports. It does not rename, alias, or otherwise resolve a collision it
123
+ finds — that decision belongs to whoever asked for the name cleared.
package/dist/index.js CHANGED
@@ -551,7 +551,9 @@ var COMPONENTS = [
551
551
  ".github/prompts/spell-generate-bot-icons.prompt.md",
552
552
  ".claude/commands/spell-generate-bot-icons.md",
553
553
  ".github/prompts/spell-make-discoverable.prompt.md",
554
- ".claude/commands/spell-make-discoverable.md"
554
+ ".claude/commands/spell-make-discoverable.md",
555
+ ".github/prompts/spell-scry.prompt.md",
556
+ ".claude/commands/spell-scry.md"
555
557
  ]
556
558
  },
557
559
  {