create-agentic-workspace 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,8 +9,8 @@ session exists**, in the operator's own terminal.
9
9
  npx create-agentic-workspace --dir my-workspace
10
10
  ```
11
11
 
12
- The CLI walks you through the target directory, greenfield-vs-existing, git/GitHub identity, and
13
- stage mode, **previews every file it will write and every capability it will declare**, writes
12
+ The CLI walks you through the target directory, greenfield-vs-existing, git/GitHub identity,
13
+ **previews every file it will write and every capability it will declare**, writes
14
14
  the workspace, and stops. `create-agentic-workspace` never runs `claude`, never accepts the
15
15
  workspace trust dialog, and never pre-grants anything — it *declares*, the platform's trust dialog
16
16
  is the consent ceremony.
@@ -35,7 +35,7 @@ it does invoke `claude` (bounded by a closed allowlist — see its own README).
35
35
  `drifted` and left byte-identical, never overwritten. Never-clobber is unconditional.
36
36
  - The permission-floor reconcile is additive with ONE narrow exception: a row shaped exactly like
37
37
  the floor's own root-glob rows (`Bash(<plugin-root-glob>/scripts/<name>[ <sub>]:*)`), whose
38
- `(name, sub)` PAIR — not the script name alone — the shipped floor no longer declares, is retired
38
+ `(name, sub)` PAIR — not the script name alone — the shipped floor does not declare, is dropped
39
39
  from `allow`/`ask` and printed `[retired] <row>`. The pair, not just the name, matters: retiring
40
40
  one subcommand of a script that still ships other subcommands (say `<name> --a:*` is dropped
41
41
  while `<name> --b:*` remains) removes only the stale `(name, sub)` row, never the whole family —
@@ -52,8 +52,8 @@ it does invoke `claude` (bounded by a closed allowlist — see its own README).
52
52
  - `.foundry/permissions.yaml` is a SEED, not a managed file: written once when absent (an empty,
53
53
  commented starter for standing grants — see the plugin's `docs/how-to/standing-grants.md`),
54
54
  then operator-owned — reported `[kept]`, never compared, never drifted, never written again.
55
- - The Amendments backfill: every `specs/**/*.md` (any basename, since v1.17.1) with a normative region and no
56
- `## Amendments` section after it gets the empty section the retired amend verb required, reported as
55
+ - The Amendments backfill: every `specs/**/*.md` (any basename) with a normative region and no
56
+ `## Amendments` section after it gets an empty section, reported as
57
57
  one row (`[amendments] backfilled N of M specs (K already present, J skipped: no normative
58
58
  region)`). Outside the hashed region, so no `spec_sha256` moves; already-present, marker-less and
59
59
  symlinked specs are never written; `--dry-run` prints the same row.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-agentic-workspace",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "description": "The pre-session bootstrap wizard for an Agentic Foundry workspace: declares (never grants) the permission floor, absorbs foundry-bootstrap.sh's out-of-session identity wiring, and scaffolds a seven-file schema-valid workspace. Zero dependencies, no lifecycle scripts, no telemetry.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -40,7 +40,7 @@
40
40
  "infra_profile_ids": [
41
41
  "aws-eks-karpenter"
42
42
  ],
43
- "plugin_version": "1.22.0",
43
+ "plugin_version": "1.23.0",
44
44
  "pins_researched": "2026-08-02"
45
45
  }
46
46
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema_version": 1,
3
3
  "plugin_root_glob": "~/.claude/plugins/cache/*/foundry/*",
4
- "generated_for_plugin_version": "1.22.0",
4
+ "generated_for_plugin_version": "1.23.0",
5
5
  "entries": [
6
6
  {
7
7
  "rule": "Bash(~/.claude/plugins/cache/*/foundry/*/scripts/foundry-acceptance-contract-validate.py:*)",
@@ -23,11 +23,6 @@
23
23
  "tier": "allow",
24
24
  "rationale": "writes one schema-validated evidence row to .foundry/audit-ledger.jsonl at the end of /foundry:audit"
25
25
  },
26
- {
27
- "rule": "Bash(~/.claude/plugins/cache/*/foundry/*/scripts/foundry-build-citation-graph.py:*)",
28
- "tier": "allow",
29
- "rationale": "builds the derived citation-graph cache from plain-text source-of-truth files"
30
- },
31
26
  {
32
27
  "rule": "Bash(~/.claude/plugins/cache/*/foundry/*/scripts/foundry-coherence-check.py:*)",
33
28
  "tier": "allow",
@@ -73,11 +68,6 @@
73
68
  "tier": "allow",
74
69
  "rationale": "read-only report of skill prose lines / shipped scripts / floor rows / hook commands / pytest count; prints only, writes nothing (AC-SUB-4)"
75
70
  },
76
- {
77
- "rule": "Bash(~/.claude/plugins/cache/*/foundry/*/scripts/foundry-graph-mcp.py:*)",
78
- "tier": "allow",
79
- "rationale": "advisory citation-graph staleness surface / MCP server; run in CONTRIBUTING dev loop + CI"
80
- },
81
71
  {
82
72
  "rule": "Bash(~/.claude/plugins/cache/*/foundry/*/scripts/foundry-index.py:*)",
83
73
  "tier": "allow",
@@ -214,9 +204,9 @@
214
204
  "rationale": "Read-only registry-integrity report (feat-foundry-repo-registry-formalization): physical-confinement + gitignore-pairing + origin-match rows over .claude/foundry-project.json; single read-only git choke point, sanitizing emission sink, writes nothing. Tiered at merge-reconciliation when the script landed after the map (the closed-world tripwire firing as designed)."
215
205
  },
216
206
  {
217
- "rule": "Bash(~/.claude/plugins/cache/*/foundry/*/scripts/foundry_session_mode.py:*)",
207
+ "rule": "Bash(~/.claude/plugins/cache/*/foundry/*/scripts/foundry_fork_policy.py:*)",
218
208
  "tier": "allow",
219
- "rationale": "session-scoped mode/fork-policy set-and-resolve state-writer; not a release/repo ceremony"
209
+ "rationale": "reads the project fork_policy key and appends one line to .foundry/auto-answers.jsonl; sets nothing; not a release/repo ceremony"
220
210
  },
221
211
  {
222
212
  "rule": "Bash(~/.claude/plugins/cache/*/foundry/*/scripts/foundry-routine-wake-prompt.py:*)",
@@ -385,7 +375,7 @@
385
375
  },
386
376
  {
387
377
  "script": "foundry_graph.py",
388
- "rationale": "library: no argparse/__main__; citation-graph primitives imported by the graph CLIs"
378
+ "rationale": "library: no argparse/__main__; citation graph primitives imported by the coherence check"
389
379
  },
390
380
  {
391
381
  "script": "foundry_id_alloc.py",
@@ -15,7 +15,7 @@
15
15
  "_comment": "context-diet-r1 D4: plugin skills removed from the shipped plugin. Never a removal candidate: the updater and the doctor only REPORT a workspace file (the reference_scan set) that still names `/foundry:<name>`, so the operator can repoint it. `.claude/skills` and operator files are never touched.",
16
16
  "names": [
17
17
  { "name": "index", "removed_in": "1.21.0", "use": "/foundry:help" },
18
- { "name": "report-citation-graph", "removed_in": "1.21.0", "use": "/foundry:citation-graph" },
18
+ { "name": "report-citation-graph", "removed_in": "1.21.0", "use": "/foundry:coherence-check" },
19
19
  { "name": "learn-capture", "removed_in": "1.21.0", "use": "/foundry:retro-capture" },
20
20
  { "name": "learn-distill", "removed_in": "1.21.0", "use": "/foundry:retro" },
21
21
  { "name": "sd-debug", "removed_in": "1.21.0", "use": "/foundry:dev-debug" },
@@ -50,7 +50,11 @@
50
50
  { "name": "infra-sandboxed-apply", "removed_in": "1.22.0", "use": "/foundry-infra:sandboxed-apply (plugin foundry-infra@agentic-foundry)" },
51
51
  { "name": "data-tier-cutover", "removed_in": "1.22.0", "use": "/foundry-infra:data-tier-cutover (plugin foundry-infra@agentic-foundry)" },
52
52
  { "name": "dashboards-as-code", "removed_in": "1.22.0", "use": "/foundry-infra:dashboards-as-code (plugin foundry-infra@agentic-foundry)" },
53
- { "name": "decommission-gate", "removed_in": "1.22.0", "use": "/foundry-infra:decommission-gate (plugin foundry-infra@agentic-foundry)" }
53
+ { "name": "decommission-gate", "removed_in": "1.22.0", "use": "/foundry-infra:decommission-gate (plugin foundry-infra@agentic-foundry)" },
54
+ { "name": "mode", "removed_in": "1.23.0", "use": "the `fork_policy` key in `.claude/foundry-project.json` (values `park` | `two-way-auto`; the operator edits the file)" },
55
+ { "name": "mode-autonomous", "removed_in": "1.23.0", "use": "/foundry:command-deck <programme-id> (the deck drives a release unattended; the merge-authority record is in `skills/command-deck/SKILL.md`)" },
56
+ { "name": "citation-graph", "removed_in": "1.23.0", "use": "/foundry:coherence-check" },
57
+ { "name": "mode-interactive", "removed_in": "1.23.0", "use": "/foundry:dispatch (see `skills/dispatch/SKILL.md`, \"Implement in the main session\")" }
54
58
  ]
55
59
  },
56
60
  "entries": [
@@ -71,6 +75,7 @@
71
75
  { "path": ".claude/session-learnings", "kind": "dir", "retired_in": "1.0.0", "reason": "the old learnings location; the partition is .foundry/session-learnings" },
72
76
  { "path": ".claude/hooks/*-exec-guard.sh", "kind": "file", "exclude_prefix": "foundry-", "retired_in": "1.8.0", "reason": "the retired session-context framework's cloud-cli exec guard; a hook still named by a command in .claude/settings*.json is refused, never removed" },
73
77
  { "path": ".foundry/admission-ledger.jsonl", "kind": "file", "retired_in": "0.24.0", "reason": "the retired ADL admission gate's ledger; nothing reads it" },
74
- { "path": ".claude/hooks/foundry-subagent-statusline.sh", "kind": "file", "retired_in": "1.18.2", "reason": "the subagent status line is retired (the status line runs for the root session only); removed only once no settings file names it" }
78
+ { "path": ".claude/hooks/foundry-subagent-statusline.sh", "kind": "file", "retired_in": "1.18.2", "reason": "the subagent status line is retired (the status line runs for the root session only); removed only once no settings file names it" },
79
+ { "path": ".foundry/graph.json", "kind": "file", "retired_in": "1.23.0", "reason": "the citation-graph cache; no release builds or reads it" }
75
80
  ]
76
81
  }
package/src/questions.mjs CHANGED
@@ -69,23 +69,6 @@ export const QUESTION_TABLE = [
69
69
  defaultFrom: (resolved, probe) => lockDeclaresInfraProfile(path.resolve(probe.cwd, resolved.dir), probe.pins),
70
70
  interactive: true,
71
71
  },
72
- {
73
- id: 'stageMode',
74
- flag: 'stage-mode',
75
- type: 'string',
76
- prompt: 'Stage mode',
77
- description:
78
- 'How much process ceremony this workspace enforces.\n' +
79
- "Recorded in your workspace's CLAUDE.md; agents read it each session,\n" +
80
- 'and you can change it later by editing that line.',
81
- default: 'lean',
82
- choices: ['lean', 'scale'],
83
- choiceDescriptions: {
84
- lean: 'development loop with lighter ceremony — the solo/small-team norm',
85
- scale: 'higher ceremony loop enforced end to end',
86
- },
87
- interactive: true,
88
- },
89
72
  {
90
73
  id: 'ghAccount',
91
74
  flag: 'gh-account',
package/src/run.mjs CHANGED
@@ -166,7 +166,6 @@ export async function runCli(argv, { cwd, isTTY, input, output, homeDir, pkgDir
166
166
  templatesDir: path.join(pkgDir, 'templates'),
167
167
  physicalRoot,
168
168
  projectName: path.basename(targetRoot),
169
- stageMode: answers.stageMode,
170
169
  settingsBytes,
171
170
  });
172
171
  const plan = planManagedFiles(managedFiles);
package/src/scaffold.mjs CHANGED
@@ -21,9 +21,9 @@ export const TEMPLATE_ENTRIES = Object.freeze([
21
21
  ]);
22
22
 
23
23
  /** Render a template's raw text with the CLAUDE.md substitutions (the only templated file). */
24
- function renderTemplate(target, raw, { projectName, stageMode }) {
24
+ function renderTemplate(target, raw, { projectName }) {
25
25
  if (target === 'CLAUDE.md') {
26
- return raw.replaceAll('{{PROJECT_NAME}}', projectName).replaceAll('{{STAGE_MODE}}', stageMode);
26
+ return raw.replaceAll('{{PROJECT_NAME}}', projectName);
27
27
  }
28
28
  return raw;
29
29
  }
@@ -36,7 +36,6 @@ export function buildManagedFiles({
36
36
  templatesDir,
37
37
  physicalRoot,
38
38
  projectName,
39
- stageMode,
40
39
  settingsBytes,
41
40
  entries = TEMPLATE_ENTRIES,
42
41
  }) {
@@ -50,7 +49,7 @@ export function buildManagedFiles({
50
49
  );
51
50
  }
52
51
  const raw = fs.readFileSync(path.join(templatesDir, entry.template), 'utf-8');
53
- const rendered = renderTemplate(entry.target, raw, { projectName, stageMode });
52
+ const rendered = renderTemplate(entry.target, raw, { projectName });
54
53
  files.push({
55
54
  relPath: entry.target, absPath: joined, bytes: Buffer.from(rendered, 'utf-8'),
56
55
  ...(entry.seed ? { seed: true } : {}),
@@ -1,6 +1,6 @@
1
1
  // statuslineWiring.mjs — statusline-wiring (v1.17.0, AC-SLW-1/-2).
2
2
  //
3
- // The token-budget status line (`⌂ <repo>:<branch> · tok ██████░░░░ 69% · ⚙️ factory`) is rendered
3
+ // The token-budget status line (`⌂ <repo>:<branch> · tok ██████░░░░ 69%`) is rendered
4
4
  // by the plugin's shipped `scripts/foundry-statusline.sh`, reached through a thin wrapper at
5
5
  // `.claude/hooks/foundry-statusline.sh` and a `statusLine` key in `.claude/settings.json`. Until
6
6
  // v1.17.0 nothing shipped that wiring: /foundry:init only verified it, and the wrapper printed
package/src/update.mjs CHANGED
@@ -198,7 +198,6 @@ export async function runUpdate(argv, { cwd, configDir, homeDir, pkgDir, output,
198
198
  templatesDir: path.join(pkgDir, 'templates'),
199
199
  physicalRoot,
200
200
  projectName: path.basename(physicalRoot),
201
- stageMode: 'lean',
202
201
  settingsBytes,
203
202
  });
204
203
  const filePlan = planManagedFiles(managedFiles);
@@ -5,12 +5,6 @@ verbs are `/foundry:*`; run `/foundry:init` inside a trusted Claude Code session
5
5
  logical wiring (operator registry, project config), then `/foundry:doctor` to confirm
6
6
  `DOCTOR-GREEN`.
7
7
 
8
- ## Stage mode
9
-
10
- Stage mode: {{STAGE_MODE}}
11
-
12
- `lean` favors the direct loop with lighter ceremony; `scale` enforces the full gates.
13
-
14
8
  ## Conventions
15
9
 
16
10
  Specs are atomic: `specs/features/<domain>/<capability>/feat-<capability>.md`, each with stable AC-IDs, a delimited `<!-- normative -->` region, and a sibling `acceptance-contract.yaml`.