cairn-ai 0.2.2 → 0.2.4
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-work.md +1 -1
- package/.claude/commands/cairn-work.md +1 -1
- package/.codex-plugin/plugin.json +8 -13
- package/README.de.md +12 -10
- package/README.es.md +12 -10
- package/README.fr.md +12 -10
- package/README.ja.md +12 -10
- package/README.ko.md +12 -10
- package/README.md +12 -10
- package/README.pt.md +12 -10
- package/README.zh.md +12 -10
- package/agents/explorer.md +2 -0
- package/agents/worker.md +2 -0
- package/commands/cairn-doctor.md +5 -3
- package/commands/cairn-install.md +5 -4
- package/commands/cairn-uninstall.md +6 -2
- package/commands/cairn-upgrade.md +6 -6
- package/commands/cairn-work.md +2 -2
- package/docs/model-guidance/README.md +11 -1
- package/docs/model-guidance/codex.md +3 -1
- package/package.json +2 -2
- package/scripts/cairn-goal.mjs +179 -49
- package/scripts/cairn-lifecycle.mjs +990 -313
- package/scripts/cairn-safe-fs.mjs +246 -0
- package/scripts/cairn-state.mjs +68 -34
- package/scripts/cairn-toolcheck.mjs +116 -34
- package/scripts/release-integrity-0.2.2.json +68 -0
- package/skills/cairn-plan/SKILL.md +4 -0
- package/skills/cairn-review/SKILL.md +2 -0
- package/skills/cairn-work/SKILL.md +6 -0
- package/templates/work-plan.md +2 -0
|
@@ -19,7 +19,7 @@ Procedure:
|
|
|
19
19
|
9. For Heavy Path, follow the plan's staged implementation and review gates without role-mapping shortcuts.
|
|
20
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
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 --
|
|
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
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
24
|
14. Record tool readiness and verification evidence in `docs/plan/<topic>.md` and update `PLAN.md`.
|
|
25
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.
|
|
@@ -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. 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 -- ...`; 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.
|
|
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.4",
|
|
4
4
|
"description": "Token-efficient agent harness with tool readiness for Codex, Claude Code, and Antigravity.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "WkNam"
|
|
@@ -21,18 +21,13 @@
|
|
|
21
21
|
"Tool Readiness"
|
|
22
22
|
],
|
|
23
23
|
"defaultPrompt": [
|
|
24
|
-
"Use Cairn
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
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."
|
|
24
|
+
"Use Cairn's repository-local MEMORY.md, PLAN.md, and persisted goal state as the recovery spine; every agent reads root MEMORY.md before planning, implementation, review, or delegation.",
|
|
25
|
+
"For non-trivial work, load the phase skill (cairn-plan, cairn-work, or cairn-review), then restore the active plan and current-task references before acting.",
|
|
26
|
+
"After compaction, restart, handoff, or delegation, restore MEMORY.md → phase skill → active plan → current task references; do not rely on conversation recall.",
|
|
27
|
+
"If state, skill, plan, or a required reference is missing, unreadable, or inconsistent, fail closed: do not edit, delegate, or complete work; report or block the discrepancy.",
|
|
28
|
+
"Missing, failed, skipped, stale, or placeholder evidence never completes work; advance UI state only after bound repository evidence passes.",
|
|
29
|
+
"Before external-state changes, run dry-run/check and bind the resulting evidence to the current task.",
|
|
30
|
+
"Answer side questions briefly, then resume the current task unless asked to pause, stop, or switch."
|
|
36
31
|
]
|
|
37
32
|
}
|
|
38
33
|
}
|
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
|
|
|
@@ -96,17 +96,19 @@ cairn uninstall
|
|
|
96
96
|
cairn toolcheck
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
- `cairn install`: installiert
|
|
100
|
-
- `cairn upgrade`:
|
|
101
|
-
- `cairn doctor`:
|
|
102
|
-
- `cairn uninstall`: entfernt
|
|
103
|
-
- `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`.
|
|
104
104
|
- `cairn-memory`: erkundet domain knowledge und aktualisiert `MEMORY.md`.
|
|
105
105
|
- `cairn-plan`: erstellt einen decision-complete plan unter `docs/plan/`.
|
|
106
106
|
- `cairn-work`: führt den nächsten module task im aktuellen `PLAN.md` mit zwei verification gates aus.
|
|
107
107
|
- `cairn-review`: prüft completed tasks gegen plan, memory und evidence.
|
|
108
108
|
|
|
109
|
-
|
|
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.
|
|
110
|
+
|
|
111
|
+
Clean uninstall entfernt den Cairn marketplace cache root nur, wenn alle managed scaffold directories leer sind; unmanaged Inhalte bleiben erhalten. Source repository und repository state, das globale `cairn-ai` package, package-manager caches sowie legacy backups/settings außerhalb des aktuellen ownership manifest werden nicht automatisch gelöscht.
|
|
110
112
|
|
|
111
113
|
Codex verwendet `skills/` und `commands/`. Claude Code verwendet gespiegelte commands und agent definitions unter `.claude/`. Antigravity verwendet `.agents/workflows` und globale skills mirrors.
|
|
112
114
|
|
|
@@ -114,8 +116,8 @@ Codex verwendet `skills/` und `commands/`. Claude Code verwendet gespiegelte com
|
|
|
114
116
|
|
|
115
117
|
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.
|
|
116
118
|
|
|
117
|
-
- Antigravity IDE: `~/.
|
|
118
|
-
- Antigravity CLI:
|
|
119
|
+
- Antigravity IDE: `~/.gemini/config/skills/cairn-*/SKILL.md`.
|
|
120
|
+
- Antigravity CLI: flache Skill-Dateien unter `~/.gemini/antigravity-cli/skills/cairn-*.md`.
|
|
119
121
|
|
|
120
122
|
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.
|
|
121
123
|
|
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
|
|
|
@@ -96,17 +96,19 @@ cairn uninstall
|
|
|
96
96
|
cairn toolcheck
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
- `cairn install`: instala
|
|
100
|
-
- `cairn upgrade`:
|
|
101
|
-
- `cairn doctor`:
|
|
102
|
-
- `cairn uninstall`: elimina
|
|
103
|
-
- `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`.
|
|
104
104
|
- `cairn-memory`: explora domain knowledge y actualiza `MEMORY.md`.
|
|
105
105
|
- `cairn-plan`: crea un decision-complete plan bajo `docs/plan/`.
|
|
106
106
|
- `cairn-work`: ejecuta el siguiente module task del `PLAN.md` actual con dos verification gates.
|
|
107
107
|
- `cairn-review`: revisa completed tasks contra plan, memory y evidence.
|
|
108
108
|
|
|
109
|
-
|
|
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.
|
|
110
|
+
|
|
111
|
+
Clean uninstall elimina el Cairn marketplace cache root solo cuando todos los managed scaffold directories están vacíos; cualquier contenido unmanaged se conserva. No elimina el source repository ni su state, el paquete global `cairn-ai`, los package-manager caches ni legacy backups/settings fuera del ownership manifest actual.
|
|
110
112
|
|
|
111
113
|
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.
|
|
112
114
|
|
|
@@ -114,8 +116,8 @@ Codex usa `skills/` y `commands/`. Claude Code usa comandos reflejados y definic
|
|
|
114
116
|
|
|
115
117
|
Antigravity soporta Agent Skills y Workflows basados en `SKILL.md` invocados como `/workflow-name`. Cairn instala estas rutas para esa superficie.
|
|
116
118
|
|
|
117
|
-
- Antigravity IDE: `~/.
|
|
118
|
-
- Antigravity CLI: `~/.gemini/antigravity-cli/skills/cairn
|
|
119
|
+
- Antigravity IDE: `~/.gemini/config/skills/cairn-*/SKILL.md`.
|
|
120
|
+
- Antigravity CLI: archivos skill planos en `~/.gemini/antigravity-cli/skills/cairn-*.md`.
|
|
119
121
|
|
|
120
122
|
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.
|
|
121
123
|
|
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
|
|
|
@@ -96,17 +96,19 @@ cairn uninstall
|
|
|
96
96
|
cairn toolcheck
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
- `cairn install` : installe
|
|
100
|
-
- `cairn upgrade` :
|
|
101
|
-
- `cairn doctor` :
|
|
102
|
-
- `cairn uninstall` : supprime
|
|
103
|
-
- `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`.
|
|
104
104
|
- `cairn-memory` : explore domain knowledge et met à jour `MEMORY.md`.
|
|
105
105
|
- `cairn-plan` : crée un decision-complete plan sous `docs/plan/`.
|
|
106
106
|
- `cairn-work` : exécute le prochain module task du `PLAN.md` courant avec deux verification gates.
|
|
107
107
|
- `cairn-review` : relit completed tasks par rapport au plan, memory et evidence.
|
|
108
108
|
|
|
109
|
-
|
|
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.
|
|
110
|
+
|
|
111
|
+
Clean uninstall supprime le Cairn marketplace cache root uniquement lorsque tous les managed scaffold directories sont vides ; tout contenu unmanaged est conservé. Il ne supprime ni le source repository et son state, ni le package global `cairn-ai`, les package-manager caches ou les legacy backups/settings hors du ownership manifest courant.
|
|
110
112
|
|
|
111
113
|
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.
|
|
112
114
|
|
|
@@ -114,8 +116,8 @@ Codex utilise `skills/` et `commands/`. Claude Code utilise les commandes miroir
|
|
|
114
116
|
|
|
115
117
|
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.
|
|
116
118
|
|
|
117
|
-
- Antigravity IDE : `~/.
|
|
118
|
-
- Antigravity CLI : `~/.gemini/antigravity-cli/skills/cairn
|
|
119
|
+
- Antigravity IDE : `~/.gemini/config/skills/cairn-*/SKILL.md`.
|
|
120
|
+
- Antigravity CLI : fichiers skill plats sous `~/.gemini/antigravity-cli/skills/cairn-*.md`.
|
|
119
121
|
|
|
120
122
|
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.
|
|
121
123
|
|
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
|
|
|
@@ -96,17 +96,19 @@ cairn uninstall
|
|
|
96
96
|
cairn toolcheck
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
- `cairn install`:
|
|
100
|
-
- `cairn upgrade`:
|
|
101
|
-
- `cairn doctor`:
|
|
102
|
-
- `cairn uninstall`:
|
|
103
|
-
- `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` です。
|
|
104
104
|
- `cairn-memory`: domain knowledge を探索し `MEMORY.md` を更新します。
|
|
105
105
|
- `cairn-plan`: `docs/plan/` に decision-complete plan を作成します。
|
|
106
106
|
- `cairn-work`: 現在の `PLAN.md` の次の module task を実行し、2 つの verification gates を取得します。
|
|
107
107
|
- `cairn-review`: plan、memory、evidence に照らして completed tasks を review します。
|
|
108
108
|
|
|
109
|
-
|
|
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 は強制しません。
|
|
110
|
+
|
|
111
|
+
Clean uninstall は、すべての managed scaffold directory が空の場合に限り Cairn marketplace cache root を削除し、unmanaged content は保持します。source repository と repository state、global `cairn-ai` package、package-manager cache、現在の ownership manifest 外の legacy backup/settings は自動削除しません。
|
|
110
112
|
|
|
111
113
|
Codex は `skills/` と `commands/` を使います。Claude Code は `.claude/` 配下の mirrored commands と agent definitions を使います。Antigravity は `.agents/workflows` と global skills mirrors を使います。
|
|
112
114
|
|
|
@@ -114,8 +116,8 @@ Codex は `skills/` と `commands/` を使います。Claude Code は `.claude/`
|
|
|
114
116
|
|
|
115
117
|
Antigravity は `/workflow-name` で呼び出される `SKILL.md` based Agent Skills and Workflows をサポートします。Cairn はこの surface に次の paths を install します。
|
|
116
118
|
|
|
117
|
-
- Antigravity IDE: `~/.
|
|
118
|
-
- Antigravity CLI: `~/.gemini/antigravity-cli/skills/cairn
|
|
119
|
+
- Antigravity IDE: `~/.gemini/config/skills/cairn-*/SKILL.md`。
|
|
120
|
+
- Antigravity CLI: `~/.gemini/antigravity-cli/skills/cairn-*.md` のフラットな skill files。
|
|
119
121
|
|
|
120
122
|
Codex-only hooks は Antigravity へ port されません。代わりに同じ planning、memory、complexity triage、two-gate verification procedures が Skills と Workflows を通して実行されます。paths を上書きするには `ANTIGRAVITY_HOME` または `ANTIGRAVITY_CLI_HOME` を設定してください。
|
|
121
123
|
|
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
|
|
|
@@ -100,11 +100,11 @@ 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`: 저장소
|
|
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 항목만 제거·복원한 뒤 빈 managed cache scaffold를 정리합니다. modified/unmanaged target과 그 상위 디렉터리는 보존하고 commit 전 실패는 rollback합니다.
|
|
107
|
+
- `cairn toolcheck`: 저장소 스택과 필요한 LSP·검증 도구를 확인하며, 승인된 지원 installer만 실행합니다.
|
|
108
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을 만듭니다.
|
|
@@ -115,7 +115,9 @@ cairn toolcheck
|
|
|
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
117
|
|
|
118
|
-
`install`과 `upgrade`는
|
|
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에서 실행해야 합니다.
|
|
119
|
+
|
|
120
|
+
Clean uninstall은 모든 managed scaffold가 비었을 때만 recursive 삭제 없이 빈 디렉터리 제거로 Cairn marketplace cache root를 정리합니다. 소스 저장소와 저장소의 `MEMORY.md`/`PLAN.md`/`.cairn` 상태, 전역 `cairn-ai` package, package-manager download cache, legacy backup, 현재 ownership manifest 밖의 legacy shared setting은 지우지 않으며 별도의 명시적 정리 판단이 필요합니다.
|
|
119
121
|
|
|
120
122
|
Codex는 `skills/`와 `commands/`를 사용합니다. Claude Code는 `.claude/` 아래의 mirror command와 agent definition을 사용합니다. Antigravity는 `.agents/workflows`와 global skills mirror를 사용합니다.
|
|
121
123
|
|
|
@@ -123,8 +125,8 @@ Codex는 `skills/`와 `commands/`를 사용합니다. Claude Code는 `.claude/`
|
|
|
123
125
|
|
|
124
126
|
Antigravity는 `/workflow-name`으로 호출되는 `SKILL.md` 기반 Agent Skills와 Workflows를 지원합니다. Cairn은 해당 표면에 다음 경로를 설치합니다.
|
|
125
127
|
|
|
126
|
-
- Antigravity IDE: `~/.
|
|
127
|
-
- Antigravity CLI: `~/.gemini/antigravity-cli/skills/cairn
|
|
128
|
+
- Antigravity IDE: `~/.gemini/config/skills/cairn-*/SKILL.md`.
|
|
129
|
+
- Antigravity CLI: flat `~/.gemini/antigravity-cli/skills/cairn-*.md` skill 파일.
|
|
128
130
|
|
|
129
131
|
Codex 전용 hooks는 Antigravity로 포팅하지 않습니다. 대신 같은 planning, memory, complexity triage, two-gate verification 절차가 Skills와 Workflows를 통해 실행됩니다. 경로를 바꾸려면 `ANTIGRAVITY_HOME` 또는 `ANTIGRAVITY_CLI_HOME`을 설정하세요.
|
|
130
132
|
|
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ The core idea is to keep useful agent-harness behavior: hooks, persistent state,
|
|
|
19
19
|
|
|
20
20
|
Before a task mutates external state, Cairn records and runs the closest available dry-run or check mode. Verification is bounded: each task gets two verification passes by default, then the agent records a blocker or splits it into sub-tasks instead of continuing an open-ended loop.
|
|
21
21
|
|
|
22
|
-
Cairn also treats tool readiness as part of the work. LSP, typecheck, lint, dry-run, and verification tools are checked against the repository stack.
|
|
22
|
+
Cairn also treats tool readiness as part of the work. LSP, typecheck, lint, dry-run, and verification tools are checked against the repository stack. A missing tool is installed only after explicit approval and only when a pinned, supported installer exists; otherwise Cairn reports a blocker.
|
|
23
23
|
|
|
24
24
|
## LazyCodex Attribution
|
|
25
25
|
|
|
@@ -52,7 +52,7 @@ cairn toolcheck --install --yes --root .
|
|
|
52
52
|
|
|
53
53
|
- `toolcheck` reports detected stacks and missing tools.
|
|
54
54
|
- Default checks are read-only, bounded by a timeout, and do not execute repository-local wrappers merely to discover them.
|
|
55
|
-
- `toolcheck --install` requires both `--yes` and explicit user approval. Unpinned or checksum-free installers
|
|
55
|
+
- `toolcheck --install` requires both `--yes` and explicit user approval. Unpinned or checksum-free installers return the canonical `installer-unavailable` refusal rather than silently downloading `latest`.
|
|
56
56
|
- Cairn plans record detected stack, required tools, install commands, and blockers.
|
|
57
57
|
- A missing LSP server is not a valid reason to skip precise codebase exploration until installation or an equivalent symbol-aware fallback has been attempted.
|
|
58
58
|
|
|
@@ -108,11 +108,11 @@ cairn uninstall
|
|
|
108
108
|
cairn toolcheck
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
- `cairn install`: installs the
|
|
112
|
-
- `cairn upgrade`:
|
|
113
|
-
- `cairn doctor`:
|
|
114
|
-
- `cairn uninstall`: removes
|
|
115
|
-
- `cairn toolcheck`: detects repository stacks and checks
|
|
111
|
+
- `cairn install`: transactionally installs the custom marketplace source, versioned Codex runtime cache, Cairn-owned config sections, Claude Code mirrors, and current Antigravity IDE/CLI skill surfaces.
|
|
112
|
+
- `cairn upgrade`: replaces only ownership-manifest entries whose installed digests still match, with staged validation and reverse-order rollback on failure.
|
|
113
|
+
- `cairn doctor`: validates the ownership manifest, managed digests, effective Codex features, actual installed/enabled/version plugin state, and mirror/runtime locators without repairing them.
|
|
114
|
+
- `cairn uninstall`: removes or restores only ownership-manifest entries that remain unmodified, then prunes empty managed cache scaffolds; modified or unmanaged targets and their parent directories are preserved, and pre-commit failures roll back.
|
|
115
|
+
- `cairn toolcheck`: detects repository stacks and checks required LSP and verification tools; installation runs only for an approved supported installer.
|
|
116
116
|
- `cairn goal ...`: starts, inspects, pauses, resumes, blocks, cancels, and completes a persisted repository goal; the default tool-bound policy records successful evidence by executing `goal verify -- <argv>`. The legacy `goal receipt` command imports declared evidence only.
|
|
117
117
|
- `cairn-memory`: explores domain knowledge and updates `MEMORY.md`.
|
|
118
118
|
- `cairn-plan`: creates a decision-complete plan under `docs/plan/`.
|
|
@@ -123,7 +123,9 @@ On every `UserPromptSubmit`, Cairn injects model-visible guidance that an implem
|
|
|
123
123
|
|
|
124
124
|
For token-efficient execution, Cairn puts reasoning into a focused executable test contract—requirements, invariants, boundaries, and failure modes—before implementation. Implementation receives the failing contract and bounded file scope, then makes the minimum passing change. Tool exit codes and machine summaries decide success; successful output stays concise and only failures expand context. Verification climbs from focused tests to one final full check. Before package verification, inspect lifecycle scripts and run normal `npm pack --dry-run` by default: content-producing or unknown scripts must never use `--ignore-scripts`; only absent or proven content-neutral scripts may use it while the full-check evidence remains fresh. Successful state mutations support `--quiet` so growing goal JSON does not consume the conversation budget.
|
|
125
125
|
|
|
126
|
-
Install and upgrade
|
|
126
|
+
Install and upgrade keep the custom marketplace lifecycle; they do not invoke `codex plugin add`. Candidates are staged and validated before commit, every managed destination and digest is recorded in an ownership manifest, and committed phases roll back in reverse order on failure. An exact unmodified supported legacy installation can be adopted after release-integrity validation; modified or unknown artifacts are preserved and rejected. Cairn edits only its own TOML sections and never forces public feature or agent settings. The source plugin manifest stays validator-friendly; only the installed cache copy gets a `hooks` field. Lifecycle commands must run from the published/global package, not from the cached copy that they replace.
|
|
127
|
+
|
|
128
|
+
Clean uninstall removes the Cairn marketplace cache root only when every managed scaffold is empty, using empty-directory removal rather than recursive deletion. It does not delete the source repository or repository `MEMORY.md`/`PLAN.md`/`.cairn` state, the global `cairn-ai` package, package-manager download caches, legacy backups, or legacy shared settings outside the current ownership manifest; those require a separate explicit cleanup decision.
|
|
127
129
|
|
|
128
130
|
Codex uses `skills/` and `commands/`. Claude Code uses mirrored commands and agent definitions under `.claude/`. Antigravity uses `.agents/workflows` and global skills mirrors.
|
|
129
131
|
|
|
@@ -131,8 +133,8 @@ Codex uses `skills/` and `commands/`. Claude Code uses mirrored commands and age
|
|
|
131
133
|
|
|
132
134
|
Antigravity supports `SKILL.md`-based Agent Skills and Workflows invoked as `/workflow-name`. Cairn installs these paths for that surface.
|
|
133
135
|
|
|
134
|
-
- Antigravity IDE: `~/.
|
|
135
|
-
- Antigravity CLI: `~/.gemini/antigravity-cli/skills/cairn
|
|
136
|
+
- Antigravity IDE: `~/.gemini/config/skills/cairn-*/SKILL.md`.
|
|
137
|
+
- Antigravity CLI: flat `~/.gemini/antigravity-cli/skills/cairn-*.md` skill files.
|
|
136
138
|
|
|
137
139
|
Codex-only hooks are not ported to Antigravity. Instead, the same planning, memory, complexity triage, and two-gate verification procedures run through Skills and Workflows. Set `ANTIGRAVITY_HOME` or `ANTIGRAVITY_CLI_HOME` to override paths.
|
|
138
140
|
|
package/README.pt.md
CHANGED
|
@@ -11,7 +11,7 @@ A ideia central e manter comportamentos uteis de agent harness: hooks, estado pe
|
|
|
11
11
|
|
|
12
12
|
Antes que um task altere estado externo, Cairn registra e executa o dry-run ou check mode mais proximo disponivel. A verificacao e limitada: cada task recebe duas verification passes por padrao; depois, o agente registra um blocker ou divide o task em vez de continuar um loop aberto.
|
|
13
13
|
|
|
14
|
-
Cairn tambem trata tool readiness como parte do trabalho. LSP, typecheck, lint, dry-run e verification tools sao verificados contra o stack do repositorio.
|
|
14
|
+
Cairn tambem trata tool readiness como parte do trabalho. LSP, typecheck, lint, dry-run e verification tools sao verificados contra o stack do repositorio. A instalacao ocorre apenas com aprovacao explicita e um installer suportado e fixado; caso contrario, um blocker e informado.
|
|
15
15
|
|
|
16
16
|
## LazyCodex Attribution
|
|
17
17
|
|
|
@@ -38,7 +38,7 @@ cairn toolcheck --install --yes --root .
|
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
- `toolcheck` informa detected stacks e missing tools.
|
|
41
|
-
- `toolcheck --install`
|
|
41
|
+
- `toolcheck --install` exige aprovacao explicita e `--yes`; um installer sem suporte retorna o resultado canonico `installer-unavailable` sem ser executado.
|
|
42
42
|
- Os planos Cairn registram detected stack, required tools, install commands e blockers.
|
|
43
43
|
- Um LSP server ausente nao e motivo valido para pular precise codebase exploration antes de tentar installation ou um fallback symbol-aware equivalente.
|
|
44
44
|
|
|
@@ -96,17 +96,19 @@ cairn uninstall
|
|
|
96
96
|
cairn toolcheck
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
- `cairn install`: instala
|
|
100
|
-
- `cairn upgrade`:
|
|
101
|
-
- `cairn doctor`:
|
|
102
|
-
- `cairn uninstall`: remove
|
|
103
|
-
- `cairn toolcheck`: detecta repository stacks e verifica
|
|
99
|
+
- `cairn install`: instala de forma transacional custom marketplace source, versioned runtime, secoes config do Cairn e mirrors atuais.
|
|
100
|
+
- `cairn upgrade`: substitui apenas entradas intactas do ownership manifest apos staged validation e usa rollback em falhas.
|
|
101
|
+
- `cairn doctor`: valida ownership digests, features efetivos do Codex, status real do plugin e runtime locators sem reparar.
|
|
102
|
+
- `cairn uninstall`: remove apenas entradas gerenciadas intactas; alvos modified ou unmanaged sao preservados como conflict.
|
|
103
|
+
- `cairn toolcheck`: detecta repository stacks e verifica required tools; apenas um installer suportado e aprovado e executado, caso contrario `installer-unavailable`.
|
|
104
104
|
- `cairn-memory`: explora domain knowledge e atualiza `MEMORY.md`.
|
|
105
105
|
- `cairn-plan`: cria um decision-complete plan em `docs/plan/`.
|
|
106
106
|
- `cairn-work`: executa o proximo module task no `PLAN.md` atual com dois verification gates.
|
|
107
107
|
- `cairn-review`: revisa completed tasks contra plan, memory e evidence.
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
O custom marketplace lifecycle separa source e versioned runtime. Staged validation precede cada commit, o ownership manifest vincula todos os managed digests e uma falha aciona reverse-order rollback. Artifacts modified ou unmanaged sao preserved e relatados como conflict. O Cairn altera apenas suas TOML sections e nao forca feature/agent settings publicos.
|
|
110
|
+
|
|
111
|
+
Clean uninstall remove o Cairn marketplace cache root somente quando todos os managed scaffold directories estao vazios; qualquer conteudo unmanaged e preservado. O source repository e seu state, o package global `cairn-ai`, package-manager caches e legacy backups/settings fora do ownership manifest atual nao sao removidos automaticamente.
|
|
110
112
|
|
|
111
113
|
Codex usa `skills/` e `commands/`. Claude Code usa comandos espelhados e agent definitions em `.claude/`. Antigravity usa `.agents/workflows` e global skills mirrors.
|
|
112
114
|
|
|
@@ -114,8 +116,8 @@ Codex usa `skills/` e `commands/`. Claude Code usa comandos espelhados e agent d
|
|
|
114
116
|
|
|
115
117
|
Antigravity suporta Agent Skills e Workflows baseados em `SKILL.md` chamados como `/workflow-name`. Cairn instala estes paths para essa superficie.
|
|
116
118
|
|
|
117
|
-
- Antigravity IDE: `~/.
|
|
118
|
-
- Antigravity CLI: `~/.gemini/antigravity-cli/skills/cairn
|
|
119
|
+
- Antigravity IDE: `~/.gemini/config/skills/cairn-*/SKILL.md`.
|
|
120
|
+
- Antigravity CLI: arquivos skill planos em `~/.gemini/antigravity-cli/skills/cairn-*.md`.
|
|
119
121
|
|
|
120
122
|
Codex-only hooks nao sao portados para Antigravity. Em vez disso, os mesmos procedimentos de planning, memory, complexity triage e two-gate verification rodam por Skills e Workflows. Defina `ANTIGRAVITY_HOME` ou `ANTIGRAVITY_CLI_HOME` para sobrescrever paths.
|
|
121
123
|
|
package/README.zh.md
CHANGED
|
@@ -11,7 +11,7 @@ Cairn 的核心思路是保留有用的 agent harness 行为:hooks、persisten
|
|
|
11
11
|
|
|
12
12
|
在 task 修改外部状态之前,Cairn 会记录并运行最接近的 dry-run 或 check mode。verification 是有边界的:默认每个 task 有两次 verification pass,然后 agent 会记录 blocker 或拆分 task,而不是继续开放式循环。
|
|
13
13
|
|
|
14
|
-
Cairn 也把 tool readiness 视为工作的一部分。它会根据 repository stack 检查 LSP、typecheck、lint、dry-run 和 verification tools
|
|
14
|
+
Cairn 也把 tool readiness 视为工作的一部分。它会根据 repository stack 检查 LSP、typecheck、lint、dry-run 和 verification tools。只有在获得明确批准且存在固定版本的受支持 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
|
|
|
@@ -96,17 +96,19 @@ cairn uninstall
|
|
|
96
96
|
cairn toolcheck
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
- `cairn install`:
|
|
100
|
-
- `cairn upgrade`:
|
|
101
|
-
- `cairn doctor`:
|
|
102
|
-
- `cairn uninstall`:
|
|
103
|
-
- `cairn toolcheck`: 检测 repository stacks
|
|
99
|
+
- `cairn install`: 以事务方式安装 custom marketplace source、versioned runtime、Cairn-owned config sections 和当前 host mirrors。
|
|
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 会 preserve 并报告 conflict。
|
|
103
|
+
- `cairn toolcheck`: 检测 repository stacks 和 required tools;只执行已批准的 supported installer,否则返回 `installer-unavailable`。
|
|
104
104
|
- `cairn-memory`: 探索 domain knowledge 并更新 `MEMORY.md`。
|
|
105
105
|
- `cairn-plan`: 在 `docs/plan/` 下创建 decision-complete plan。
|
|
106
106
|
- `cairn-work`: 执行当前 `PLAN.md` 中的下一个 module task,并收集两个 verification gates。
|
|
107
107
|
- `cairn-review`: 根据 plan、memory 和 evidence review completed tasks。
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
custom marketplace lifecycle 将 source 与 versioned runtime 分离。每次 commit 前执行 staged validation,ownership manifest 绑定全部 managed digests,失败时执行 reverse-order rollback。modified 或 unmanaged artifacts 会 preserve 并报告 conflict。Cairn 只修改自身 TOML sections,不强制 public feature/agent settings。
|
|
110
|
+
|
|
111
|
+
Clean uninstall 仅在所有 managed scaffold directory 均为空时删除 Cairn marketplace cache root,并保留任何 unmanaged content。它不会自动删除 source repository 及其 state、全局 `cairn-ai` package、package-manager cache,或当前 ownership manifest 之外的 legacy backup/settings。
|
|
110
112
|
|
|
111
113
|
Codex 使用 `skills/` 和 `commands/`。Claude Code 使用 `.claude/` 下的 mirrored commands 和 agent definitions。Antigravity 使用 `.agents/workflows` 和 global skills mirrors。
|
|
112
114
|
|
|
@@ -114,8 +116,8 @@ Codex 使用 `skills/` 和 `commands/`。Claude Code 使用 `.claude/` 下的 mi
|
|
|
114
116
|
|
|
115
117
|
Antigravity 支持通过 `/workflow-name` 调用的 `SKILL.md` based Agent Skills and Workflows。Cairn 会为该 surface 安装这些 paths。
|
|
116
118
|
|
|
117
|
-
- Antigravity IDE: `~/.
|
|
118
|
-
- Antigravity CLI: `~/.gemini/antigravity-cli/skills/cairn
|
|
119
|
+
- Antigravity IDE: `~/.gemini/config/skills/cairn-*/SKILL.md`。
|
|
120
|
+
- Antigravity CLI: `~/.gemini/antigravity-cli/skills/cairn-*.md` 下的扁平 skill 文件。
|
|
119
121
|
|
|
120
122
|
Codex-only hooks 不会移植到 Antigravity。相同的 planning、memory、complexity triage 和 two-gate verification procedures 会通过 Skills 和 Workflows 运行。设置 `ANTIGRAVITY_HOME` 或 `ANTIGRAVITY_CLI_HOME` 可以覆盖 paths。
|
|
121
123
|
|
package/agents/explorer.md
CHANGED
|
@@ -10,6 +10,8 @@ Handle read-only discovery and verification tasks.
|
|
|
10
10
|
|
|
11
11
|
Before doing any assigned task, read the project-root `MEMORY.md`. Treat it as the domain knowledge and repository policy index, then read only the relevant `docs/memory/*.md` notes needed for the task.
|
|
12
12
|
|
|
13
|
+
At the start and after compaction, restart, or handoff, restore context in this order: root `MEMORY.md` → the phase skill named by the assignment → the active plan → current-task references → model guidance recorded by that plan. The assignment must identify the plan and current task whenever persisted work is active. If a required reference is missing, unreadable, or inconsistent with the assignment or goal state, report a blocker and do not perform the assigned discovery or delegate it.
|
|
14
|
+
|
|
13
15
|
When subagent tools are available, you may recursively delegate bounded read-only sub-tasks to subagents. Every child subagent must read the project-root `MEMORY.md`, keep the assigned scope, and preserve others' edits.
|
|
14
16
|
|
|
15
17
|
Use for:
|