Commit ef7a352
* fix: rebrand internal .aiox-core/package.json + add namespace drift gate
Closes the Bug 2 follow-up from #739 (@gabrielolio): the internal
`.aiox-core/package.json` manifest still declared the legacy
`@aiox-fullstack/core@4.31.1` namespace while the surface package
moved to `@aiox-squads/core@5.x` long ago. The drift went undetected
because no pre-publish check was looking at this internal file, and it
ships inside every release of `@aiox-squads/core`.
## Changes to `.aiox-core/package.json`
Renamed and clarified its role:
* `name`: `@aiox-fullstack/core` → `@aiox-squads/core-internal`
(the `-internal` suffix + `private: true` make it explicit this is NOT
a separately-published package — it ships inside the parent surface)
* `version`: `4.31.1` → `5.2.6` (now tracks parent surface)
* `private: true` added (defensively prevents accidental separate
publish in case someone runs `npm publish` from `.aiox-core/`)
* `description` rewritten to explain the file's actual role
* Dropped `peerDependencies` block — all four `@aiox-fullstack/*` peers
referenced packages that never made the namespace migration and do
not exist on npm
* Dropped publish-only fields that don't apply to an internal manifest:
`module`, `types`, `bin`, `files`, `exports`, `publishConfig`
* Repository directory hint added so anyone inspecting the file knows
the SOT location
* Retained the runtime `dependencies` block (consumed by scripts under
`.aiox-core/development/scripts/` — validated by
`scripts/validate-aiox-core-deps.js`)
## New pre-publish gate
`scripts/validate-aiox-core-namespace.js` enforces five rules:
1. `.aiox-core/package.json` exists
2. `name` ends with `-internal` (forbids drifting back to a published
namespace)
3. `private: true`
4. `version` matches root `package.json` version exactly (single
source of truth — root drives the framework version)
5. No `@aiox-fullstack/*` peer deps re-introduced
The validator is wired into `validate:publish` (which `prepublishOnly`
chains), so a release that drifts again is blocked before it ships.
Also exposed as `npm run validate:aiox-core-namespace` for ad-hoc runs.
## Why the `-internal` suffix instead of just using `@aiox-squads/core`
Two packages with the same name on the same npm registry — even if one
is `private: true` — confuses tooling that resolves by name (the
installer itself, lockfile resolution, dependency graphs, `npm ls`
output). The suffix is a defensive disambiguation: the internal file
ships inside the parent surface but never appears in dependency
graphs as a competing entry.
## Impact on existing installs
Running `aiox install --update` (or any flow that calls
`applyUpgrade(..., { includeModified: true })`) will pull the
corrected file from the next release. Students who hit the namespace
drift before this lands can also hand-patch
`.aiox-core/package.json` locally — the file is not load-bearing for
runtime; it informs tooling and the operator-facing `aiox info` chain.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix: address CodeRabbit feedback on PR #746 + sync install-manifest
Three real issues caught:
1. **execFileSync over execSync (nitpick)** — Replaced shell-based
`execSync('node "${path}"', ...)` with `execFileSync('node', [path],
...)` for the two validator invocations in `validate-publish.js`.
Eliminates shell parsing entirely, defense-in-depth even though the
paths are hardcoded.
2. **Fail-closed for missing namespace validator (actionable)** — The
previous code SKIP'd silently if `validate-aiox-core-namespace.js`
was missing. That's the exact silent-fall pattern that allowed the
namespace drift to ship for several releases. Now an absent
validator fails the publish gate with a clear message that the
file is required and was introduced specifically for Issue #739
Bug 2. Trying to ship without the gate is now blocked.
3. **Scope check in namespace validator (actionable)** — The
`-internal` suffix alone allowed names like `@any-scope/foo-internal`
to pass. Added a `startsWith('@aiox-squads/')` check before the
suffix check, with a message that calls out `@aiox-fullstack/*` as
the legacy scope to reject. Now both conditions must hold:
`@aiox-squads/<X>-internal`.
Also: regenerated `.aiox-core/install-manifest.yaml` — the new
validator script + the modified `validate-publish.js` changed
hash, and `validate:manifest` was failing in CI because the manifest
was stale relative to the working tree. After regen, manifest
validation passes.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* chore(sync): propagate devops.md release-procedure section to IDE projections
Mirror of the same sync commit on PR #747. The release-procedure
section added to devops.md by PR #745 was not synced to the four IDE
projections before #745 merged, so this branch also inherits the drift
from main and fails CI's Compatibility Parity Gate.
Files:
- .claude/skills/AIOX/agents/devops/SKILL.md
- .codex/agents/devops.md
- .gemini/rules/AIOX/agents/devops.md
- .kimi/skills/aiox-devops/SKILL.md
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 342ef63 commit ef7a352
9 files changed
Lines changed: 196 additions & 78 deletions
File tree
- .aiox-core
- .claude/skills/AIOX/agents/devops
- .codex/agents
- .gemini/rules/AIOX/agents
- .kimi/skills/aiox-devops
- bin/utils
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
1297 | 1297 | | |
1298 | 1298 | | |
1299 | 1299 | | |
1300 | | - | |
| 1300 | + | |
1301 | 1301 | | |
1302 | | - | |
| 1302 | + | |
1303 | 1303 | | |
1304 | 1304 | | |
1305 | 1305 | | |
| |||
3697 | 3697 | | |
3698 | 3698 | | |
3699 | 3699 | | |
3700 | | - | |
| 3700 | + | |
3701 | 3701 | | |
3702 | | - | |
| 3702 | + | |
3703 | 3703 | | |
3704 | 3704 | | |
3705 | 3705 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 7 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 8 | + | |
32 | 9 | | |
33 | 10 | | |
34 | 11 | | |
| |||
47 | 24 | | |
48 | 25 | | |
49 | 26 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 27 | | |
71 | 28 | | |
72 | | - | |
73 | | - | |
| 29 | + | |
| 30 | + | |
74 | 31 | | |
75 | | - | |
76 | | - | |
| 32 | + | |
77 | 33 | | |
78 | | - | |
| 34 | + | |
79 | 35 | | |
80 | 36 | | |
81 | 37 | | |
82 | | - | |
| 38 | + | |
| 39 | + | |
83 | 40 | | |
84 | 41 | | |
85 | 42 | | |
| |||
88 | 45 | | |
89 | 46 | | |
90 | 47 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | 48 | | |
108 | 49 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
589 | 589 | | |
590 | 590 | | |
591 | 591 | | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
592 | 605 | | |
593 | 606 | | |
594 | 607 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
582 | 595 | | |
583 | 596 | | |
584 | 597 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
582 | 595 | | |
583 | 596 | | |
584 | 597 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
666 | 679 | | |
667 | 680 | | |
668 | 681 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
135 | 163 | | |
136 | 164 | | |
137 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
0 commit comments