cairn-ai 0.2.1 → 0.2.3
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/.agents/workflows/cairn-plan.md +11 -11
- package/.agents/workflows/cairn-work.md +10 -8
- package/.claude/commands/cairn-plan.md +1 -1
- package/.claude/commands/cairn-work.md +1 -1
- package/.codex-plugin/plugin.json +12 -18
- package/README.de.md +13 -11
- package/README.es.md +13 -11
- package/README.fr.md +13 -11
- package/README.ja.md +13 -11
- package/README.ko.md +15 -13
- package/README.md +15 -13
- package/README.pt.md +13 -11
- package/README.zh.md +13 -11
- package/commands/cairn-doctor.md +5 -3
- package/commands/cairn-install.md +5 -4
- package/commands/cairn-plan.md +13 -16
- package/commands/cairn-review.md +1 -1
- package/commands/cairn-uninstall.md +4 -2
- package/commands/cairn-upgrade.md +6 -6
- package/commands/cairn-work.md +12 -11
- package/docs/model-guidance/README.md +6 -2
- package/docs/model-guidance/codex.md +5 -0
- package/hooks/hooks.json +1 -1
- package/package.json +2 -2
- package/scripts/cairn-goal.mjs +522 -101
- package/scripts/cairn-lifecycle.mjs +926 -313
- package/scripts/cairn-safe-fs.mjs +246 -0
- package/scripts/cairn-state.mjs +80 -30
- package/scripts/cairn-state.sh +2 -0
- package/scripts/cairn-toolcheck.mjs +116 -34
- package/scripts/cairn.mjs +9 -8
- package/scripts/release-integrity-0.2.2.json +68 -0
- package/skills/cairn-plan/SKILL.md +23 -17
- package/skills/cairn-review/SKILL.md +1 -1
- package/skills/cairn-work/SKILL.md +39 -16
- package/templates/PLAN.md +1 -0
- package/templates/work-plan.md +23 -2
|
@@ -4,22 +4,22 @@ Use the `cairn-plan` skill.
|
|
|
4
4
|
|
|
5
5
|
Read the installed Cairn runtime locator at `{{CAIRN_RUNTIME_LOCATOR_JSON}}`. Resolve Cairn scripts, model guidance, templates, commands, and agents through that locator; only repository state such as `MEMORY.md`, `PLAN.md`, and `docs/plan/` belongs to the target project.
|
|
6
6
|
|
|
7
|
-
Goal:
|
|
7
|
+
Goal: write an initial plan with triage as its active task before exploration, persist the goal/roadmap, then update the same plan to a decision-complete implementation revision after triage.
|
|
8
8
|
|
|
9
9
|
Procedure:
|
|
10
10
|
|
|
11
11
|
1. Every agent must read the project-root `MEMORY.md` for domain knowledge and repository policy before repository exploration, tool selection, work, or delegation.
|
|
12
|
-
2.
|
|
13
|
-
3.
|
|
14
|
-
4.
|
|
15
|
-
5.
|
|
16
|
-
6.
|
|
17
|
-
7.
|
|
18
|
-
8.
|
|
12
|
+
2. For implementation or continued execution, write the initial repository plan and `PLAN.md` entry from the request and `MEMORY.md`. Include a planned `triage-plan` task and anticipated execution/verification stages, then start or attach the repository Cairn goal before exploration.
|
|
13
|
+
3. When the surface exposes native plan/goal UI tools, synchronize the same roadmap there before exploration; otherwise record that those tools are unavailable.
|
|
14
|
+
4. Read relevant `docs/memory/*.md` and perform toolcheck, exploration, and Light/Heavy Path triage according to the initial task.
|
|
15
|
+
5. Update the same plan to a decision-complete implementation revision before implementation.
|
|
16
|
+
6. If the active or assigned model is Claude-family, read `claude.md` under the locator's `resources.modelGuidance`; if Codex-family, read `codex.md` there.
|
|
17
|
+
7. Invoke Node directly with the locator's absolute `entrypoints.cli`, `toolcheck`, and `--root` for the target repository.
|
|
18
|
+
8. If required LSP/check tools are missing, follow the installed toolcheck policy before any explicitly approved installation attempt.
|
|
19
19
|
9. Use Light Path by default unless a Heavy Path condition clearly applies.
|
|
20
20
|
10. Use `explorer` for independent read-only discovery, impact analysis, pattern search, and read-only verification when available.
|
|
21
21
|
11. Treat the user-called/main agent as the orchestrator: it plans, assigns, verifies, relays received subagent status events or observable lifecycle events to the user, and records evidence. Use `worker` for actual implementation edits with clear file ownership whenever subagent tools are available, on both Light Path and Heavy Path. When the subagent tool provides a progress-reporting channel, require subagents to report status when starting work, when deciding or confirming direction, during periodic progress, and when finishing; immediately relay received status events to the user. If no mid-run reporting channel exists, relay observable events such as assignment, waiting, and final completion. Require delegated subagents to provide a final report before leaving; after capturing the final report and evidence, close or release the completed subagent, then review the final report and evidence before marking the work complete. When subagent tools are available, each agent may recursively delegate bounded sub-tasks to subagents. Tell every delegated agent and child subagent to read the project-root `MEMORY.md` before work, keep scope, and preserve others' edits. If subagent tools are unavailable, the main agent takes over implementation directly and records that takeover in evidence.
|
|
22
|
-
12.
|
|
23
|
-
13.
|
|
24
|
-
14.
|
|
22
|
+
12. Record selected path, checked Heavy Path signals, tool readiness, module acceptance verification, and surface integration verification on every implementation task in the existing plan.
|
|
23
|
+
13. Advance native UI steps only after the matching repository task transition succeeds with its required bound evidence records.
|
|
24
|
+
14. Keep the existing `PLAN.md` entry and repository goal synchronized with the finalized plan status.
|
|
25
25
|
15. Use the OS locale for user-visible responses and generated or updated documentation, plans, and memory artifacts unless the user asks for another language.
|
|
@@ -14,11 +14,13 @@ Procedure:
|
|
|
14
14
|
4. Select one small module task.
|
|
15
15
|
5. Confirm required tool readiness by invoking Node directly with the locator's absolute `entrypoints.cli`, `toolcheck`, and `--root` for the target repository. Follow the installed toolcheck policy before any explicitly approved installation attempt.
|
|
16
16
|
6. Confirm the complexity triage and selected Light/Heavy Path recorded in the plan. If missing, update the plan before mutating files.
|
|
17
|
-
7.
|
|
18
|
-
8. For
|
|
19
|
-
9.
|
|
20
|
-
10.
|
|
21
|
-
11.
|
|
22
|
-
12.
|
|
23
|
-
13.
|
|
24
|
-
14.
|
|
17
|
+
7. Spend reasoning on a focused executable test contract before implementation: requirements, invariants, boundaries, and failure modes. Confirm the intended failure, then require only the minimum implementation that passes.
|
|
18
|
+
8. For Light Path, keep the user-called/main agent in the orchestrator role and delegate implementation edits to one bounded `worker` whenever subagent tools are available, then run focused verification.
|
|
19
|
+
9. For Heavy Path, follow the plan's staged implementation and review gates without role-mapping shortcuts.
|
|
20
|
+
10. Give implementation only the test contract, failing evidence, exact file ownership, and constraints. Delegate actual implementation edits to `worker` on both paths whenever subagent tools are available. When the subagent tool provides a progress-reporting channel, require subagents to report status to the orchestrator when starting work, when deciding or confirming direction, during periodic progress, and when finishing; immediately relay received status events to the user. If no mid-run reporting channel exists, relay observable events such as assignment, waiting, and final completion. Require delegated subagents to provide a final report before leaving; after capturing the final report and evidence, close or release the completed subagent, then review the final report and evidence before marking the work complete. When subagent tools are available, each agent may recursively delegate bounded sub-tasks to subagents. Tell every delegated agent and child subagent to read the project-root `MEMORY.md` before work, keep scope, and preserve others' edits. If subagent tools are unavailable, the main agent takes over implementation directly and records that takeover in evidence.
|
|
21
|
+
11. Treat tool exit codes and bounded machine summaries as authoritative. Keep success concise; expand context only around failing tests.
|
|
22
|
+
12. Run focused tests, then one final full repository check through `goal verify -- ...`. Verification defaults to 600,000 ms (10 minutes), is capped at 3,600,000 ms (1 hour), and records evidence only when the starting goal/task identity and pre/post watched fingerprint still match. Select a semantic boundary that proves the claim. Any relevant later mutation makes affected evidence stale.
|
|
23
|
+
13. Inspect package lifecycle scripts before package verification and run normal `npm pack --dry-run` by default. Content-producing or unknown lifecycle scripts must never use `--ignore-scripts`; only absent or proven content-neutral scripts may use it while the full-check evidence remains fresh.
|
|
24
|
+
14. Record tool readiness and verification evidence in `docs/plan/<topic>.md` and update `PLAN.md`.
|
|
25
|
+
15. If the user asks a side question, status question, or narrow clarification while this task is still active, answer it briefly and then resume the previous active work unless the user explicitly asks to pause, stop, or switch tasks.
|
|
26
|
+
16. Use the OS locale for user-visible responses and generated or updated documentation, plans, and memory artifacts unless the user asks for another language.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# cairn-plan
|
|
2
2
|
|
|
3
|
-
Start by reading the project-root `MEMORY.md`,
|
|
3
|
+
Start by reading the project-root `MEMORY.md`, write an initial `PLAN.md` and `docs/plan/<topic>.md` with a planned triage task, persist the goal before exploration, then update the same plan after Light/Heavy Path triage and tool readiness checks before implementation.
|
|
4
4
|
|
|
5
5
|
Read the installed Cairn runtime locator at `{{CAIRN_RUNTIME_LOCATOR_JSON}}`. Resolve `resources.commands` from that JSON object and follow `cairn-plan.md` in that directory. Resolve model guidance and templates through the same locator. Do not resolve Cairn runtime resources from the target project.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# cairn-work
|
|
2
2
|
|
|
3
|
-
Start by reading the project-root `MEMORY.md`, then execute the next incomplete module task only after the plan records Light/Heavy Path complexity triage, tool readiness, module acceptance verification, and surface integration verification.
|
|
3
|
+
Start by reading the project-root `MEMORY.md`, then execute the next incomplete module task only after the plan records Light/Heavy Path complexity triage, tool readiness, module acceptance verification, and surface integration verification. Before implementation, spend reasoning on a focused executable test contract covering requirements, invariants, boundaries, and failure modes; confirm the intended failure and make only the minimum implementation that passes. Run verification through `goal verify -- ...`; the default timeout is 600,000 ms (10 minutes), the maximum is 3,600,000 ms (1 hour), and evidence is committed only when the starting goal/task identity and pre/post watched fingerprint still match. Choose a semantic boundary that proves the claim, treat tool exit codes and bounded machine summaries as authoritative, keep successes concise, and expand context only for failing tests. Inspect package lifecycle scripts and run normal `npm pack --dry-run` by default. Content-producing or unknown lifecycle scripts must never use `--ignore-scripts`; only absent or proven content-neutral scripts may use it while the prior full check remains fresh.
|
|
4
4
|
|
|
5
5
|
If the user asks a side question, status question, or narrow clarification while a task is still active, answer it briefly and then resume the previous active work unless the user explicitly asks to pause, stop, or switch tasks.
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cairn",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Token-efficient agent harness with tool readiness for Codex, Claude Code, and Antigravity.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "WkNam"
|
|
@@ -22,23 +22,17 @@
|
|
|
22
22
|
],
|
|
23
23
|
"defaultPrompt": [
|
|
24
24
|
"Use Cairn to create MEMORY.md and PLAN.md for this repository.",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"Run cairn-work from the current PLAN.md and pass dry-run/check, module acceptance, and surface integration gates.",
|
|
37
|
-
"For implementation or continued-execution requests, treat the request itself as authorization to persist one active Cairn goal with stable, ordered task steps, even when the user does not mention a goal. Create or attach it after the decision-complete plan and before implementation. Keep the full task roadmap and current task in hook context so a side question returns to the original work unless the user explicitly pauses, stops, or switches tasks. Do not create a goal for consultation, explanation, or plan-only requests. After a task passes its required bound receipts, advance immediately to the next task and continue until goal-level final review completes; active is never a completion state.",
|
|
38
|
-
"Missing, failed, skipped, stale, or placeholder evidence never completes a task. A worker may report only its assigned task; the main agent reviews the handoff and advances the goal.",
|
|
39
|
-
"If progress cannot continue, explicitly pause, block with a concrete reason, or cancel the Cairn goal instead of silently stopping. Do not repeatedly block a re-entered stop hook in the same turn.",
|
|
40
|
-
"Tool installation is an external-state change: report the proposal and obtain explicit user approval before using a pinned/supported installer.",
|
|
41
|
-
"If I ask a side question, status question, or narrow clarification while a plan or task is still active, answer it briefly and then resume the previous active work unless I explicitly ask you to pause, stop, or switch tasks."
|
|
25
|
+
"Every agent must read the project-root MEMORY.md before planning, implementation, review, or delegation. Keep MEMORY.md and PLAN.md as short indexes; open only current-task details.",
|
|
26
|
+
"Resolve Cairn runtime resources only through the installed locator, keep repoRoot separate, and run toolcheck before implementation planning. Tool installation requires explicit approval.",
|
|
27
|
+
"Run cairn-plan before non-trivial changes. Understand the whole work, split it into executable tasks/sub-tasks, record Light/Heavy Path triage, and finalize a decision-complete implementation plan before editing.",
|
|
28
|
+
"The user-called/main agent is the orchestrator. Delegate bounded implementation edits to worker subagents when allowed; otherwise the main agent implements and records takeover evidence.",
|
|
29
|
+
"With a progress-reporting channel, subagents report start, direction, periodic progress, and finish; relay those events immediately. Otherwise relay assignment, waiting, and final completion.",
|
|
30
|
+
"Delegated agents read MEMORY.md, preserve others' edits, return a final report, and may recursively delegate only bounded work. Capture evidence, close/release the agent, then review its report before completion.",
|
|
31
|
+
"Implementation/continue requests authorize an active Cairn goal even without the word goal. After MEMORY.md, write an initial plan with triage-plan active; before exploration call update_plan, then create_goal, then start/attach the repository goal. Triage finalizes the repository and UI plans before implementation. Keep roadmap/current-task recovery context; consultation, explanation, and plan-only requests stay goal-free.",
|
|
32
|
+
"Use a test contract first: spend reasoning on requirements, invariants, boundaries, and failure modes; design executable tests before implementation; make the minimum implementation that passes. Treat tool exit codes and machine summaries as authoritative, and expand context only for failing tests.",
|
|
33
|
+
"Missing, failed, skipped, stale, or placeholder evidence never completes work. Advance a UI step only after the matching repository task passes bound evidence; workers report only assigned tasks; active is not complete.",
|
|
34
|
+
"Use goal verify -- <argv>, quiet state mutations, and concise success summaries. Run focused tests and one final full check. Inspect package lifecycle scripts before packaging: run normal npm pack --dry-run by default; never skip content-producing or unknown scripts with --ignore-scripts, and use it only for absent or proven content-neutral scripts while evidence is fresh.",
|
|
35
|
+
"If blocked, pause/block/cancel explicitly. Answer side questions briefly, then resume the current task unless asked to pause, stop, or switch."
|
|
42
36
|
]
|
|
43
37
|
}
|
|
44
38
|
}
|
package/README.de.md
CHANGED
|
@@ -11,7 +11,7 @@ Die Grundidee ist, nützliches agent-harness-Verhalten beizubehalten: hooks, per
|
|
|
11
11
|
|
|
12
12
|
Bevor ein task externen Zustand verändert, zeichnet Cairn den nächstliegenden dry-run oder check mode auf und führt ihn aus. Verification ist begrenzt: Jeder task erhält standardmäßig zwei verification passes; danach zeichnet der agent einen blocker auf oder teilt den task, statt eine offene Schleife fortzusetzen.
|
|
13
13
|
|
|
14
|
-
Cairn behandelt tool readiness ebenfalls als Teil der Arbeit. LSP, typecheck, lint, dry-run und verification tools werden gegen den repository stack geprüft.
|
|
14
|
+
Cairn behandelt tool readiness ebenfalls als Teil der Arbeit. LSP, typecheck, lint, dry-run und verification tools werden gegen den repository stack geprüft. Installation erfolgt nur mit ausdrücklicher Zustimmung und einem gepinnten unterstützten installer; andernfalls wird ein blocker gemeldet.
|
|
15
15
|
|
|
16
16
|
## LazyCodex Attribution
|
|
17
17
|
|
|
@@ -38,7 +38,7 @@ cairn toolcheck --install --yes --root .
|
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
- `toolcheck` meldet detected stacks und missing tools.
|
|
41
|
-
- `toolcheck --install`
|
|
41
|
+
- `toolcheck --install` erfordert ausdrückliche Zustimmung und `--yes`; ein nicht unterstützter installer liefert das kanonische Ergebnis `installer-unavailable` und wird nicht ausgeführt.
|
|
42
42
|
- Cairn plans erfassen detected stack, required tools, install commands und blockers.
|
|
43
43
|
- Ein fehlender LSP server ist kein gültiger Grund, precise codebase exploration zu überspringen, bevor installation oder ein gleichwertiger symbol-aware fallback versucht wurde.
|
|
44
44
|
|
|
@@ -65,12 +65,14 @@ Das harness erstellt und pflegt diese files im Ziel-repository root.
|
|
|
65
65
|
|
|
66
66
|
- `MEMORY.md`: kurzer Index persistent domain knowledge.
|
|
67
67
|
- `docs/memory/*.md`: detailliertes Wissen je domain.
|
|
68
|
-
- `.cairn/state.json`: git-ignorierter Goal-, Task- und
|
|
68
|
+
- `.cairn/state.json`: git-ignorierter Goal-, Task- und Evidence-Record-Status für Wiederaufnahme und scoped stop gates.
|
|
69
69
|
- `PLAN.md`: kurzer Index aktiver und abgeschlossener work topics.
|
|
70
70
|
- `docs/plan/*.md`: detailed execution plans.
|
|
71
71
|
|
|
72
72
|
Root files bleiben kurz, Details wandern unter `docs/`, damit agents nur den benötigten context lesen.
|
|
73
73
|
|
|
74
|
+
Für geringe Tokenkosten entsteht zuerst ein test contract aus Anforderungen, Invarianten, Grenzen und Fehlermodi. Der tool exit code von `goal verify -- <argv>` ist maßgeblich; Erfolge bleiben kurz, nur Fehler erweitern den Kontext. Package lifecycle scripts werden geprüft; standardmäßig läuft ein normales `npm pack --dry-run`. Content-producing oder unbekannte scripts dürfen `--ignore-scripts` nie verwenden; es ist nur bei fehlenden oder nachweislich content-neutral scripts und frischer full-check evidence erlaubt.
|
|
75
|
+
|
|
74
76
|
## Commands
|
|
75
77
|
|
|
76
78
|
Das veröffentlichte package kann mit `bunx` oder global installierten `cairn` commands ausgeführt werden.
|
|
@@ -94,17 +96,17 @@ cairn uninstall
|
|
|
94
96
|
cairn toolcheck
|
|
95
97
|
```
|
|
96
98
|
|
|
97
|
-
- `cairn install`: installiert
|
|
98
|
-
- `cairn upgrade`:
|
|
99
|
-
- `cairn doctor`:
|
|
100
|
-
- `cairn uninstall`: entfernt
|
|
101
|
-
- `cairn toolcheck`: erkennt repository stacks und prüft
|
|
99
|
+
- `cairn install`: installiert transaktional custom marketplace source, versioned runtime, Cairn-eigene config sections und aktuelle host mirrors.
|
|
100
|
+
- `cairn upgrade`: ersetzt nur unveränderte Einträge des ownership manifest nach staged validation und nutzt rollback bei Fehlern.
|
|
101
|
+
- `cairn doctor`: prüft ownership digests, effektive Codex features, den tatsächlichen plugin status und runtime locators ohne Reparatur.
|
|
102
|
+
- `cairn uninstall`: entfernt nur unveränderte verwaltete Einträge; modified oder unmanaged Ziele bleiben als conflict erhalten.
|
|
103
|
+
- `cairn toolcheck`: erkennt repository stacks und prüft required tools; Installation läuft nur für einen genehmigten unterstützten installer, sonst gilt `installer-unavailable`.
|
|
102
104
|
- `cairn-memory`: erkundet domain knowledge und aktualisiert `MEMORY.md`.
|
|
103
105
|
- `cairn-plan`: erstellt einen decision-complete plan unter `docs/plan/`.
|
|
104
106
|
- `cairn-work`: führt den nächsten module task im aktuellen `PLAN.md` mit zwei verification gates aus.
|
|
105
107
|
- `cairn-review`: prüft completed tasks gegen plan, memory und evidence.
|
|
106
108
|
|
|
107
|
-
|
|
109
|
+
Der custom marketplace lifecycle hält source und versioned runtime getrennt. Staged validation geht jedem commit voraus, das ownership manifest bindet alle managed digests, und ein Fehler führt zu reverse-order rollback. Modified oder unmanaged artifacts werden preserved und als conflict gemeldet. Cairn ändert nur eigene TOML sections und erzwingt keine öffentlichen feature/agent settings.
|
|
108
110
|
|
|
109
111
|
Codex verwendet `skills/` und `commands/`. Claude Code verwendet gespiegelte commands und agent definitions unter `.claude/`. Antigravity verwendet `.agents/workflows` und globale skills mirrors.
|
|
110
112
|
|
|
@@ -112,8 +114,8 @@ Codex verwendet `skills/` und `commands/`. Claude Code verwendet gespiegelte com
|
|
|
112
114
|
|
|
113
115
|
Antigravity unterstützt `SKILL.md`-basierte Agent Skills und Workflows, die als `/workflow-name` aufgerufen werden. Cairn installiert für diese Oberfläche die folgenden paths.
|
|
114
116
|
|
|
115
|
-
- Antigravity IDE: `~/.
|
|
116
|
-
- Antigravity CLI:
|
|
117
|
+
- Antigravity IDE: `~/.gemini/config/skills/cairn-*/SKILL.md`.
|
|
118
|
+
- Antigravity CLI: flache Skill-Dateien unter `~/.gemini/antigravity-cli/skills/cairn-*.md`.
|
|
117
119
|
|
|
118
120
|
Codex-only hooks werden nicht nach Antigravity portiert. Stattdessen laufen dieselben planning-, memory-, complexity triage- und two-gate verification procedures über Skills und Workflows. Setze `ANTIGRAVITY_HOME` oder `ANTIGRAVITY_CLI_HOME`, um paths zu überschreiben.
|
|
119
121
|
|
package/README.es.md
CHANGED
|
@@ -11,7 +11,7 @@ La idea central es conservar comportamientos útiles de agent harness: hooks, es
|
|
|
11
11
|
|
|
12
12
|
Antes de que un task modifique estado externo, Cairn registra y ejecuta el dry-run o check mode más cercano disponible. La verificación está acotada: cada task tiene dos verification passes por defecto; después, el agente registra un blocker o divide el task en lugar de continuar un bucle abierto.
|
|
13
13
|
|
|
14
|
-
Cairn también trata la preparación de herramientas como parte del trabajo. LSP, typecheck, lint, dry-run y verification tools se revisan contra el stack del repositorio.
|
|
14
|
+
Cairn también trata la preparación de herramientas como parte del trabajo. LSP, typecheck, lint, dry-run y verification tools se revisan contra el stack del repositorio. Solo se instala con aprobación explícita y un installer compatible y fijado; de lo contrario se registra un blocker.
|
|
15
15
|
|
|
16
16
|
## LazyCodex Attribution
|
|
17
17
|
|
|
@@ -38,7 +38,7 @@ cairn toolcheck --install --yes --root .
|
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
- `toolcheck` reporta detected stacks y missing tools.
|
|
41
|
-
- `toolcheck --install`
|
|
41
|
+
- `toolcheck --install` exige aprobación explícita y `--yes`; un installer no compatible devuelve el resultado canónico `installer-unavailable` y no se ejecuta.
|
|
42
42
|
- Los planes de Cairn registran detected stack, required tools, install commands y blockers.
|
|
43
43
|
- Que falte un LSP server no es razón válida para saltarse precise codebase exploration hasta intentar installation o un fallback symbol-aware equivalente.
|
|
44
44
|
|
|
@@ -65,12 +65,14 @@ El harness crea y mantiene estos archivos en la raíz del repositorio objetivo.
|
|
|
65
65
|
|
|
66
66
|
- `MEMORY.md`: índice corto de conocimiento persistente del dominio.
|
|
67
67
|
- `docs/memory/*.md`: conocimiento detallado por dominio.
|
|
68
|
-
- `.cairn/state.json`: estado git-ignored de goal, task y
|
|
68
|
+
- `.cairn/state.json`: estado git-ignored de goal, task y evidence record para reanudación y stop gates acotados.
|
|
69
69
|
- `PLAN.md`: índice corto de temas activos y completados.
|
|
70
70
|
- `docs/plan/*.md`: planes de ejecución detallados.
|
|
71
71
|
|
|
72
72
|
Los archivos raíz se mantienen cortos y los detalles pasan a `docs/`, para que los agentes lean solo el contexto que necesitan.
|
|
73
73
|
|
|
74
|
+
Para ahorrar tokens, define primero un test contract con requisitos, invariantes, límites y modos de fallo. Usa el tool exit code de `goal verify -- <argv>` como autoridad, resume el éxito y amplía el contexto solo al fallar. Inspecciona el package lifecycle y ejecuta normalmente `npm pack --dry-run`. Los scripts content-producing o desconocidos nunca deben usar `--ignore-scripts`; úsalo solo si no hay scripts o son content-neutral demostrados y la evidencia del full check sigue vigente.
|
|
75
|
+
|
|
74
76
|
## Commands
|
|
75
77
|
|
|
76
78
|
El paquete publicado puede ejecutarse con `bunx` o con comandos `cairn` instalados globalmente.
|
|
@@ -94,17 +96,17 @@ cairn uninstall
|
|
|
94
96
|
cairn toolcheck
|
|
95
97
|
```
|
|
96
98
|
|
|
97
|
-
- `cairn install`: instala
|
|
98
|
-
- `cairn upgrade`:
|
|
99
|
-
- `cairn doctor`:
|
|
100
|
-
- `cairn uninstall`: elimina
|
|
101
|
-
- `cairn toolcheck`: detecta repository stacks y revisa
|
|
99
|
+
- `cairn install`: instala de forma transaccional custom marketplace source, versioned runtime, secciones config propias de Cairn y mirrors actuales.
|
|
100
|
+
- `cairn upgrade`: reemplaza solo entradas sin modificar del ownership manifest tras staged validation y usa rollback al fallar.
|
|
101
|
+
- `cairn doctor`: valida ownership digests, features efectivos de Codex, el estado real del plugin y runtime locators sin reparar.
|
|
102
|
+
- `cairn uninstall`: elimina solo entradas gestionadas sin modificar; los objetivos modified o unmanaged se preservan como conflict.
|
|
103
|
+
- `cairn toolcheck`: detecta repository stacks y revisa required tools; solo ejecuta un installer compatible aprobado, o devuelve `installer-unavailable`.
|
|
102
104
|
- `cairn-memory`: explora domain knowledge y actualiza `MEMORY.md`.
|
|
103
105
|
- `cairn-plan`: crea un decision-complete plan bajo `docs/plan/`.
|
|
104
106
|
- `cairn-work`: ejecuta el siguiente module task del `PLAN.md` actual con dos verification gates.
|
|
105
107
|
- `cairn-review`: revisa completed tasks contra plan, memory y evidence.
|
|
106
108
|
|
|
107
|
-
|
|
109
|
+
El custom marketplace lifecycle mantiene separados source y versioned runtime. Staged validation precede cada commit, el ownership manifest vincula todos los managed digests y un fallo aplica reverse-order rollback. Los artifacts modified o unmanaged se preservan y se reportan como conflict. Cairn modifica solo sus propias TOML sections y no fuerza feature/agent settings públicos.
|
|
108
110
|
|
|
109
111
|
Codex usa `skills/` y `commands/`. Claude Code usa comandos reflejados y definiciones de agentes bajo `.claude/`. Antigravity usa `.agents/workflows` y mirrors globales de skills.
|
|
110
112
|
|
|
@@ -112,8 +114,8 @@ Codex usa `skills/` y `commands/`. Claude Code usa comandos reflejados y definic
|
|
|
112
114
|
|
|
113
115
|
Antigravity soporta Agent Skills y Workflows basados en `SKILL.md` invocados como `/workflow-name`. Cairn instala estas rutas para esa superficie.
|
|
114
116
|
|
|
115
|
-
- Antigravity IDE: `~/.
|
|
116
|
-
- Antigravity CLI: `~/.gemini/antigravity-cli/skills/cairn
|
|
117
|
+
- Antigravity IDE: `~/.gemini/config/skills/cairn-*/SKILL.md`.
|
|
118
|
+
- Antigravity CLI: archivos skill planos en `~/.gemini/antigravity-cli/skills/cairn-*.md`.
|
|
117
119
|
|
|
118
120
|
Los hooks exclusivos de Codex no se portan a Antigravity. En su lugar, los mismos procedimientos de planning, memory, complexity triage y two-gate verification se ejecutan mediante Skills y Workflows. Define `ANTIGRAVITY_HOME` o `ANTIGRAVITY_CLI_HOME` para sobrescribir las rutas.
|
|
119
121
|
|
package/README.fr.md
CHANGED
|
@@ -11,7 +11,7 @@ L'idée centrale est de conserver des comportements utiles d'agent harness : hoo
|
|
|
11
11
|
|
|
12
12
|
Avant qu'un task ne modifie un état externe, Cairn enregistre et exécute le dry-run ou check mode disponible le plus proche. La vérification est bornée : chaque task reçoit deux verification passes par défaut, puis l'agent enregistre un blocker ou divise le task au lieu de continuer une boucle ouverte.
|
|
13
13
|
|
|
14
|
-
Cairn traite aussi la préparation des outils comme une partie du travail. LSP, typecheck, lint, dry-run et verification tools sont vérifiés par rapport au stack du repository.
|
|
14
|
+
Cairn traite aussi la préparation des outils comme une partie du travail. LSP, typecheck, lint, dry-run et verification tools sont vérifiés par rapport au stack du repository. Une installation exige une approbation explicite et un installer pris en charge et épinglé ; sinon un blocker est signalé.
|
|
15
15
|
|
|
16
16
|
## LazyCodex Attribution
|
|
17
17
|
|
|
@@ -38,7 +38,7 @@ cairn toolcheck --install --yes --root .
|
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
- `toolcheck` signale les detected stacks et missing tools.
|
|
41
|
-
- `toolcheck --install`
|
|
41
|
+
- `toolcheck --install` exige une approbation explicite et `--yes` ; un installer non pris en charge renvoie le résultat canonique `installer-unavailable` sans s'exécuter.
|
|
42
42
|
- Les plans Cairn enregistrent detected stack, required tools, install commands et blockers.
|
|
43
43
|
- Un LSP server manquant n'est pas une raison valable pour ignorer precise codebase exploration tant qu'une installation ou un fallback symbol-aware équivalent n'a pas été tenté.
|
|
44
44
|
|
|
@@ -65,12 +65,14 @@ Le harness crée et maintient ces fichiers à la racine du repository cible.
|
|
|
65
65
|
|
|
66
66
|
- `MEMORY.md` : index court de persistent domain knowledge.
|
|
67
67
|
- `docs/memory/*.md` : connaissances détaillées par domaine.
|
|
68
|
-
- `.cairn/state.json` : état git-ignored des goals, tasks et
|
|
68
|
+
- `.cairn/state.json` : état git-ignored des goals, tasks et evidence records pour la reprise et les stop gates ciblés.
|
|
69
69
|
- `PLAN.md` : index court des sujets actifs et terminés.
|
|
70
70
|
- `docs/plan/*.md` : detailed execution plans.
|
|
71
71
|
|
|
72
72
|
Les fichiers racine restent courts et les détails vont sous `docs/`, afin que les agents ne lisent que le contexte nécessaire.
|
|
73
73
|
|
|
74
|
+
Pour économiser les tokens, définissez d'abord un test contract couvrant exigences, invariants, limites et modes d'échec. Prenez le tool exit code de `goal verify -- <argv>` comme autorité, résumez les succès et n'élargissez le contexte qu'en cas d'échec. Inspectez le package lifecycle et exécutez normalement `npm pack --dry-run`. Les scripts content-producing ou inconnus ne doivent jamais utiliser `--ignore-scripts`; utilisez-le seulement si les scripts sont absents ou prouvés content-neutral et si la preuve du full check reste valide.
|
|
75
|
+
|
|
74
76
|
## Commands
|
|
75
77
|
|
|
76
78
|
Le package publié peut être exécuté avec `bunx` ou avec des commandes `cairn` installées globalement.
|
|
@@ -94,17 +96,17 @@ cairn uninstall
|
|
|
94
96
|
cairn toolcheck
|
|
95
97
|
```
|
|
96
98
|
|
|
97
|
-
- `cairn install` : installe
|
|
98
|
-
- `cairn upgrade` :
|
|
99
|
-
- `cairn doctor` :
|
|
100
|
-
- `cairn uninstall` : supprime
|
|
101
|
-
- `cairn toolcheck` : détecte repository stacks et vérifie
|
|
99
|
+
- `cairn install` : installe transactionnellement custom marketplace source, versioned runtime, sections config propres à Cairn et mirrors actuels.
|
|
100
|
+
- `cairn upgrade` : remplace uniquement les entrées intactes du ownership manifest après staged validation, avec rollback en cas d'échec.
|
|
101
|
+
- `cairn doctor` : valide ownership digests, features Codex effectives, état réel du plugin et runtime locators sans réparation.
|
|
102
|
+
- `cairn uninstall` : supprime uniquement les entrées gérées intactes ; les cibles modified ou unmanaged sont préservées comme conflict.
|
|
103
|
+
- `cairn toolcheck` : détecte repository stacks et vérifie required tools ; seul un installer approuvé et pris en charge s'exécute, sinon `installer-unavailable`.
|
|
102
104
|
- `cairn-memory` : explore domain knowledge et met à jour `MEMORY.md`.
|
|
103
105
|
- `cairn-plan` : crée un decision-complete plan sous `docs/plan/`.
|
|
104
106
|
- `cairn-work` : exécute le prochain module task du `PLAN.md` courant avec deux verification gates.
|
|
105
107
|
- `cairn-review` : relit completed tasks par rapport au plan, memory et evidence.
|
|
106
108
|
|
|
107
|
-
|
|
109
|
+
Le custom marketplace lifecycle sépare source et versioned runtime. Staged validation précède chaque commit, le ownership manifest lie tous les managed digests et un échec déclenche un reverse-order rollback. Les artifacts modified ou unmanaged sont preserved et signalés comme conflict. Cairn ne modifie que ses propres TOML sections et ne force aucun feature/agent setting public.
|
|
108
110
|
|
|
109
111
|
Codex utilise `skills/` et `commands/`. Claude Code utilise les commandes miroir et définitions d'agents sous `.claude/`. Antigravity utilise `.agents/workflows` et les global skills mirrors.
|
|
110
112
|
|
|
@@ -112,8 +114,8 @@ Codex utilise `skills/` et `commands/`. Claude Code utilise les commandes miroir
|
|
|
112
114
|
|
|
113
115
|
Antigravity prend en charge les Agent Skills et Workflows basés sur `SKILL.md`, invoqués comme `/workflow-name`. Cairn installe ces paths pour cette surface.
|
|
114
116
|
|
|
115
|
-
- Antigravity IDE : `~/.
|
|
116
|
-
- Antigravity CLI : `~/.gemini/antigravity-cli/skills/cairn
|
|
117
|
+
- Antigravity IDE : `~/.gemini/config/skills/cairn-*/SKILL.md`.
|
|
118
|
+
- Antigravity CLI : fichiers skill plats sous `~/.gemini/antigravity-cli/skills/cairn-*.md`.
|
|
117
119
|
|
|
118
120
|
Les hooks propres à Codex ne sont pas portés vers Antigravity. À la place, les mêmes procédures planning, memory, complexity triage et two-gate verification s'exécutent via Skills et Workflows. Définissez `ANTIGRAVITY_HOME` ou `ANTIGRAVITY_CLI_HOME` pour remplacer les paths.
|
|
119
121
|
|
package/README.ja.md
CHANGED
|
@@ -11,7 +11,7 @@ Cairn の基本方針は、hooks、永続状態、明示的な planning、focuse
|
|
|
11
11
|
|
|
12
12
|
task が外部状態を変更する前に、Cairn は最も近い dry-run または check mode を記録して実行します。verification は制限されます。既定では各 task は 2 回の verification pass を持ち、その後は反復 loop を続けず blocker を記録するか task を分割します。
|
|
13
13
|
|
|
14
|
-
Cairn は tool readiness も作業の一部として扱います。LSP、typecheck、lint、dry-run、verification tools を repository stack
|
|
14
|
+
Cairn は tool readiness も作業の一部として扱います。LSP、typecheck、lint、dry-run、verification tools を repository stack に照らして確認します。installation は明示的な承認と固定された対応 installer がある場合だけ実行し、それ以外は blocker を報告します。
|
|
15
15
|
|
|
16
16
|
## LazyCodex Attribution
|
|
17
17
|
|
|
@@ -38,7 +38,7 @@ cairn toolcheck --install --yes --root .
|
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
- `toolcheck` は detected stacks と missing tools を報告します。
|
|
41
|
-
- `toolcheck --install`
|
|
41
|
+
- `toolcheck --install` は明示的な承認と `--yes` を必要とし、非対応 installer は実行せず canonical `installer-unavailable` を返します。
|
|
42
42
|
- Cairn plans は detected stack、required tools、install commands、blockers を記録します。
|
|
43
43
|
- LSP server がないことだけでは precise codebase exploration を省略できません。installation または同等の symbol-aware fallback を先に試す必要があります。
|
|
44
44
|
|
|
@@ -65,12 +65,14 @@ harness は対象 repository root に次の files を作成して維持します
|
|
|
65
65
|
|
|
66
66
|
- `MEMORY.md`: persistent domain knowledge の短い index。
|
|
67
67
|
- `docs/memory/*.md`: domain ごとの詳細 knowledge。
|
|
68
|
-
- `.cairn/state.json`: 再開と scoped stop gate のための git-ignored goal/task/
|
|
68
|
+
- `.cairn/state.json`: 再開と scoped stop gate のための git-ignored goal/task/evidence-record 状態。
|
|
69
69
|
- `PLAN.md`: active/completed work topics の短い index。
|
|
70
70
|
- `docs/plan/*.md`: detailed execution plans。
|
|
71
71
|
|
|
72
72
|
root files は短く保ち、詳細は `docs/` に移すことで、agents が必要な context だけを読めるようにします。
|
|
73
73
|
|
|
74
|
+
トークン効率のため、実装前に要件・不変条件・境界・失敗モードを test contract にします。`goal verify -- <argv>` の tool exit code を判定基準にし、成功は短く、失敗時だけ context を広げます。package lifecycle を確認し、通常の `npm pack --dry-run` を既定にします。content-producing または不明な script では `--ignore-scripts` を使わず、script がないか content-neutral と証明され、full-check evidence が新鮮な場合だけ使用します。
|
|
75
|
+
|
|
74
76
|
## Commands
|
|
75
77
|
|
|
76
78
|
published package は `bunx` または global install された `cairn` command で実行できます。
|
|
@@ -94,17 +96,17 @@ cairn uninstall
|
|
|
94
96
|
cairn toolcheck
|
|
95
97
|
```
|
|
96
98
|
|
|
97
|
-
- `cairn install`:
|
|
98
|
-
- `cairn upgrade`:
|
|
99
|
-
- `cairn doctor`:
|
|
100
|
-
- `cairn uninstall`:
|
|
101
|
-
- `cairn toolcheck`: repository stacks
|
|
99
|
+
- `cairn install`: custom marketplace source、versioned runtime、Cairn-owned config sections、現行 host mirrors を transaction で install します。
|
|
100
|
+
- `cairn upgrade`: staged validation 後、ownership manifest の未変更 entry だけを置換し、失敗時は rollback します。
|
|
101
|
+
- `cairn doctor`: ownership digests、effective Codex features、実際の plugin status、runtime locators を修復せず診断します。
|
|
102
|
+
- `cairn uninstall`: 未変更の managed entry だけを削除し、modified または unmanaged target は conflict として preserve します。
|
|
103
|
+
- `cairn toolcheck`: repository stacks と required tools を確認し、承認済み supported installer だけを実行します。それ以外は `installer-unavailable` です。
|
|
102
104
|
- `cairn-memory`: domain knowledge を探索し `MEMORY.md` を更新します。
|
|
103
105
|
- `cairn-plan`: `docs/plan/` に decision-complete plan を作成します。
|
|
104
106
|
- `cairn-work`: 現在の `PLAN.md` の次の module task を実行し、2 つの verification gates を取得します。
|
|
105
107
|
- `cairn-review`: plan、memory、evidence に照らして completed tasks を review します。
|
|
106
108
|
|
|
107
|
-
|
|
109
|
+
custom marketplace lifecycle は source と versioned runtime を分離します。各 commit 前に staged validation を行い、ownership manifest が全 managed digest を結び、失敗時は reverse-order rollback します。modified または unmanaged artifacts は preserve して conflict として報告します。Cairn-owned TOML sections だけを変更し、public feature/agent settings は強制しません。
|
|
108
110
|
|
|
109
111
|
Codex は `skills/` と `commands/` を使います。Claude Code は `.claude/` 配下の mirrored commands と agent definitions を使います。Antigravity は `.agents/workflows` と global skills mirrors を使います。
|
|
110
112
|
|
|
@@ -112,8 +114,8 @@ Codex は `skills/` と `commands/` を使います。Claude Code は `.claude/`
|
|
|
112
114
|
|
|
113
115
|
Antigravity は `/workflow-name` で呼び出される `SKILL.md` based Agent Skills and Workflows をサポートします。Cairn はこの surface に次の paths を install します。
|
|
114
116
|
|
|
115
|
-
- Antigravity IDE: `~/.
|
|
116
|
-
- Antigravity CLI: `~/.gemini/antigravity-cli/skills/cairn
|
|
117
|
+
- Antigravity IDE: `~/.gemini/config/skills/cairn-*/SKILL.md`。
|
|
118
|
+
- Antigravity CLI: `~/.gemini/antigravity-cli/skills/cairn-*.md` のフラットな skill files。
|
|
117
119
|
|
|
118
120
|
Codex-only hooks は Antigravity へ port されません。代わりに同じ planning、memory、complexity triage、two-gate verification procedures が Skills と Workflows を通して実行されます。paths を上書きするには `ANTIGRAVITY_HOME` または `ANTIGRAVITY_CLI_HOME` を設定してください。
|
|
119
121
|
|
package/README.ko.md
CHANGED
|
@@ -11,7 +11,7 @@ Cairn은 Codex, Claude Code, Antigravity를 위한 토큰 효율적인 멀티에
|
|
|
11
11
|
|
|
12
12
|
외부 상태를 변경할 수 있는 작업은 실행 전에 가장 가까운 dry-run 또는 check 모드를 기록하고 실행합니다. 검증은 제한됩니다. 기본적으로 각 작업은 두 번의 검증 패스를 가지며, 이후에는 반복 루프를 계속하지 않고 blocker를 기록하거나 작업을 sub-task로 나눕니다.
|
|
13
13
|
|
|
14
|
-
Cairn은 도구 준비 상태도 작업의 일부로 다룹니다. LSP, typecheck, lint, dry-run, 검증 도구를 저장소 스택 기준으로
|
|
14
|
+
Cairn은 도구 준비 상태도 작업의 일부로 다룹니다. LSP, typecheck, lint, dry-run, 검증 도구를 저장소 스택 기준으로 확인합니다. 누락 도구는 명시적 승인과 고정된 지원 installer가 모두 있을 때만 설치하고, 그렇지 않으면 blocker로 보고합니다.
|
|
15
15
|
|
|
16
16
|
## LazyCodex Attribution
|
|
17
17
|
|
|
@@ -44,7 +44,7 @@ cairn toolcheck --install --yes --root .
|
|
|
44
44
|
|
|
45
45
|
- `toolcheck`는 감지된 스택과 누락 도구를 보고합니다.
|
|
46
46
|
- 기본 검사는 읽기 전용이고 timeout으로 제한되며, 저장소 로컬 wrapper를 단순 탐지를 위해 실행하지 않습니다.
|
|
47
|
-
- `toolcheck --install`은 사용자의 명시적 승인과 `--yes`를 모두 요구합니다. 버전이 고정되지 않았거나 checksum이 없는 installer는 `latest`를 내려받는 대신
|
|
47
|
+
- `toolcheck --install`은 사용자의 명시적 승인과 `--yes`를 모두 요구합니다. 버전이 고정되지 않았거나 checksum이 없는 installer는 `latest`를 내려받는 대신 canonical `installer-unavailable` 거부 결과로 보고합니다.
|
|
48
48
|
- Cairn 계획은 감지된 스택, 필요한 도구, 설치 명령, blocker를 기록합니다.
|
|
49
49
|
- LSP server가 없다는 사실만으로 정밀한 코드베이스 탐색을 건너뛸 수 없습니다. 설치 또는 동등한 symbol-aware fallback을 먼저 시도해야 합니다.
|
|
50
50
|
|
|
@@ -73,7 +73,7 @@ Cairn은 Claude-family와 Codex-family 모델에만 모델별 조정을 적용
|
|
|
73
73
|
- `docs/memory/*.md`: 도메인별 상세 지식.
|
|
74
74
|
- `PLAN.md`: 활성/완료 작업 주제의 짧은 색인.
|
|
75
75
|
- `docs/plan/*.md`: 상세 실행 계획.
|
|
76
|
-
- `.cairn/state.json`: 중단 재개와 범위가 제한된 종료 게이트에 쓰는 git-ignored 버전드 goal/task
|
|
76
|
+
- `.cairn/state.json`: 중단 재개와 범위가 제한된 종료 게이트에 쓰는 git-ignored 버전드 goal/task/증거 기록 상태.
|
|
77
77
|
|
|
78
78
|
런타임 script, template, command, agent, model guidance는 설치된 플러그인 루트에 유지합니다. 각 표면의 locator가 같은 설치본을 가리키므로 대상 저장소에 Cairn 내부 파일을 복사하지 않습니다.
|
|
79
79
|
|
|
@@ -100,20 +100,22 @@ cairn uninstall
|
|
|
100
100
|
cairn toolcheck
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-
- `cairn install`:
|
|
104
|
-
- `cairn upgrade`:
|
|
105
|
-
- `cairn doctor`:
|
|
106
|
-
- `cairn uninstall`:
|
|
107
|
-
- `cairn toolcheck`: 저장소
|
|
108
|
-
- `cairn goal ...`: 저장소의 영속 goal을 시작·조회·일시정지·재개·차단·취소·완료합니다.
|
|
103
|
+
- `cairn install`: custom marketplace source, versioned Codex runtime cache, Cairn-owned config section, Claude Code mirror, 현재 Antigravity IDE/CLI skill 표면을 transaction으로 설치합니다.
|
|
104
|
+
- `cairn upgrade`: ownership manifest의 installed digest와 현재 값이 같은 항목만 교체하며, staged validation과 역순 rollback을 적용합니다.
|
|
105
|
+
- `cairn doctor`: ownership manifest, managed digest, 유효 Codex feature, 실제 plugin installed/enabled/version, mirror/runtime locator를 수정 없이 진단합니다.
|
|
106
|
+
- `cairn uninstall`: 수정되지 않은 ownership manifest 항목만 제거·복원하고, modified/unmanaged target은 conflict로 보존하며 실패 시 rollback합니다.
|
|
107
|
+
- `cairn toolcheck`: 저장소 스택과 필요한 LSP·검증 도구를 확인하며, 승인된 지원 installer만 실행합니다.
|
|
108
|
+
- `cairn goal ...`: 저장소의 영속 goal을 시작·조회·일시정지·재개·차단·취소·완료합니다. 기본 tool-bound 정책은 `goal verify -- <argv>`가 명령을 직접 실행해 성공 증거를 기록합니다. `goal receipt`는 기존 선언 증거를 가져오는 호환 명령입니다.
|
|
109
109
|
- `cairn-memory`: 도메인 지식을 탐색하고 `MEMORY.md`를 갱신합니다.
|
|
110
110
|
- `cairn-plan`: `docs/plan/` 아래에 decision-complete plan을 만듭니다.
|
|
111
111
|
- `cairn-work`: 현재 `PLAN.md`의 다음 모듈 작업을 실행하고 두 검증 게이트를 확보합니다.
|
|
112
112
|
- `cairn-review`: 계획, memory, 증거를 기준으로 완료된 작업을 검토합니다.
|
|
113
113
|
|
|
114
|
-
모든 `UserPromptSubmit`에서 Cairn은 구현 또는 계속 실행 요청 자체가 goal 생성 권한이며 사용자가 “goal”을 직접 말할 필요가 없다는 모델 가시 지침을 주입합니다. 활성 goal
|
|
114
|
+
모든 `UserPromptSubmit`에서 Cairn은 구현 또는 계속 실행 요청 자체가 goal 생성 권한이며 사용자가 “goal”을 직접 말할 필요가 없다는 모델 가시 지침을 주입합니다. 에이전트는 먼저 트리아지를 active task로 둔 초기 저장소 계획을 작성하고, 탐색·트리아지 전에 가능한 경우 Codex `update_plan`과 `create_goal`로 같은 roadmap을 UI에 표시한 뒤 저장소 Cairn goal을 시작합니다. 트리아지 결과로 두 계획을 decision-complete 구현 계획으로 갱신한 뒤에만 구현합니다. 활성 goal은 전체 순서형 roadmap, 각 상태, 현재 task를 hook 컨텍스트에 유지하므로 곁가지 질문 뒤 원래 작업으로 돌아갈 수 있습니다. 상담·설명·계획 전용 요청은 goal 없이 처리합니다.
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
토큰 효율 실행에서는 구현보다 먼저 요구사항·불변식·경계·실패 모드로 집중 실행 test contract를 설계하는 데 추론을 배분합니다. 구현에는 실패 계약과 제한된 파일 범위만 전달하고 통과에 필요한 최소 변경을 요구합니다. 성공 여부는 도구 exit code와 기계적 요약으로 판정하며 성공 출력은 축약하고 실패할 때만 컨텍스트를 확장합니다. package 검증 전 lifecycle script를 검사하고 기본적으로 정상 `npm pack --dry-run`을 실행합니다. content-producing 또는 미분류 script에는 `--ignore-scripts`를 사용하면 안 되며, script가 없거나 content-neutral임을 입증했고 전체 검사 증거가 여전히 유효할 때만 사용할 수 있습니다. 성공한 상태 변경은 `--quiet`를 지원하므로 커지는 goal JSON이 대화 토큰을 소모하지 않습니다.
|
|
117
|
+
|
|
118
|
+
`install`과 `upgrade`는 custom marketplace lifecycle을 유지하며 `codex plugin add`를 호출하지 않습니다. candidate를 staging에서 검증한 뒤 commit하고, 모든 managed destination과 digest를 ownership manifest에 기록하며 실패 시 완료된 phase를 역순 rollback합니다. 수정되지 않은 지원 legacy 설치만 release-integrity 검증 뒤 인수하고, 수정되거나 알 수 없는 artifact는 보존한 채 거부합니다. Cairn-owned TOML section만 편집하고 public feature/agent 설정은 강제하지 않습니다. lifecycle command는 교체 대상 cache copy가 아니라 게시/전역 package에서 실행해야 합니다.
|
|
117
119
|
|
|
118
120
|
Codex는 `skills/`와 `commands/`를 사용합니다. Claude Code는 `.claude/` 아래의 mirror command와 agent definition을 사용합니다. Antigravity는 `.agents/workflows`와 global skills mirror를 사용합니다.
|
|
119
121
|
|
|
@@ -121,8 +123,8 @@ Codex는 `skills/`와 `commands/`를 사용합니다. Claude Code는 `.claude/`
|
|
|
121
123
|
|
|
122
124
|
Antigravity는 `/workflow-name`으로 호출되는 `SKILL.md` 기반 Agent Skills와 Workflows를 지원합니다. Cairn은 해당 표면에 다음 경로를 설치합니다.
|
|
123
125
|
|
|
124
|
-
- Antigravity IDE: `~/.
|
|
125
|
-
- Antigravity CLI: `~/.gemini/antigravity-cli/skills/cairn
|
|
126
|
+
- Antigravity IDE: `~/.gemini/config/skills/cairn-*/SKILL.md`.
|
|
127
|
+
- Antigravity CLI: flat `~/.gemini/antigravity-cli/skills/cairn-*.md` skill 파일.
|
|
126
128
|
|
|
127
129
|
Codex 전용 hooks는 Antigravity로 포팅하지 않습니다. 대신 같은 planning, memory, complexity triage, two-gate verification 절차가 Skills와 Workflows를 통해 실행됩니다. 경로를 바꾸려면 `ANTIGRAVITY_HOME` 또는 `ANTIGRAVITY_CLI_HOME`을 설정하세요.
|
|
128
130
|
|