Commit 0ad5a9f
authored
fix(core): harden core super update governance and lifecycle (#802)
* feat: add optimized AIOX agents and skills for Grok Build
Introduce .grok/ integration with token-efficient agent profiles,
slash skills, roles, personas, and compact rules. Add regenerable
sync script (npm run sync:skills:grok) so Grok stays aligned with
.source agents under .aiox-core/development/agents/.
* fix: improve grok-skills-sync purpose metadata for IDS registry
Clarify the generator module purpose so entity-registry extraction no
longer picks an unrelated CodeRabbit comment string.
* test: harden flaky pre-push suites for local agent pollution
Make Claude subagent governance validate the core aiox-* set instead of
exact directory equality, and guard dev-context-loader cacheHits when
status/shape is incomplete.
* fix: regenerate install manifest for entity-registry hash
CI Install Manifest Validation failed because data/entity-registry.yaml
hash no longer matched install-manifest.yaml after IDS updates.
* fix: address CodeRabbit review on Grok skills sync
Escape YAML/TOML scalars, constrain generated write paths under .grok/,
block git push for squad-creator, label markdown fences, and keep the
cacheHits > 0 assertion in dev-context-loader.
* chore: sync entity-registry and install manifest after IDS hook
Keep install-manifest hash aligned with entity-registry so CI
Install Manifest Validation stays green.
* docs: add CORE-SUPER-UPDATE epic and roadmap from hub/enterprise harvest
Branch off PR #800 (Grok). Captures P0–P2 waves for SDC skills, runtime
hygiene, orchestration merge, IDE parity, and selective constitution
updates without importing Sinkra product or enterprise IP.
Note: docs/stories is gitignored; force-add for this framework epic only.
* docs: apply roundtable APPROVE_WITH_FIXES to CORE-SUPER-UPDATE
MVP cut (A+B), hard A3 merge gates, B0 lean spike, denylist CI story,
deferred D5/E4/F3, semver ship train, tightened A1 ACs. Full finding
resolution table embedded in epic (100% resolved).
* docs: rehome CORE-SUPER-UPDATE under docs/framework/epics (architect-first)
Address architect-first findings: public versionable path (no force-add
gitignored docs/stories), drop stale stories index, ARCH-A slice, A2 as
#797 residual investigation (unref already present), permissions metric
clarified (extend not replace), Wave B–E blocked until per-wave ARCH,
hard ban on workspace/ in OSS, hub XI/XII numbering locked for constitution.
* feat(synapse): complete CORE-SU.A1 configurable pipeline timeout tests/docs
Engine already resolves AIOX_SYNAPSE_PIPELINE_TIMEOUT_MS > core-config
synapse.pipelineTimeoutMs > 100ms default with clamp and timeout warn.
Add unit coverage for precedence/invalid values/soft-fail path and
document knobs in config-override-guide. Closes #798 when merged.
* feat(synapse): wire configurable pipeline timeout in engine and core-config
Export resolvePipelineTimeoutMs (env > config > 100ms default, clamp
1-30000), soft-fail remaining layers with console.warn. Config key
synapse.pipelineTimeoutMs. Completes CORE-SU.A1 implementation.
* chore: sync manifest after A1 + mark A1 done on roadmap
* fix(config): skip ConfigCache sweep timer under Jest (#797)
unref() alone still allows post-teardown callbacks. Skip setInterval when
JEST_WORKER_ID is set; keep production timer + unref; gate logs on AIOX_DEBUG;
export disposeConfigCacheTimers. Applies to core and infrastructure copies.
CORE-SU.A2 YOLO.
* chore: regenerate install manifest after ConfigCache fix
* feat(permissions): add path, prompt, and SSRF guards (CORE-SU.A3)
Extend core/permissions without replacing PermissionMode/OperationGuard.
OSS path deny list excludes product workspace/ trees. Unit tests for
traversal, injection patterns, private/metadata SSRF. Wave A P0.
* chore: regenerate install manifest after permissions guards
* feat(security): OSS port denylist CI + doctor check (CORE-SU.A4)
Add scan for hub/enterprise leakage (workspace product paths, sinkra_*,
mux-adapter, coolify, machine paths). npm run validate:port-denylist;
doctor check port-denylist. Completes Wave A.
* chore: regenerate install manifest after port-denylist
* feat(sdc): Wave B lean SDC skills + Grok sync (CORE-SUPER-UPDATE)
Ship OSS lean SDC skill wrappers (validate → develop → review →
apply-qa-fixes → close + full-sdc orchestrator) with tasks as SOT.
Wire grok-skills-sync to copy development/skills → .grok/skills/aiox-*.
Sequence Lock: only close-story sets Done. No product harvest trees.
* feat(sdc): executable full-sdc + wave-execute runtime (CLI First)
Add lean SDC/wave engines under .aiox-core/core/sdc with aiox sdc and
aiox wave CLI for plan/next/verify/progress. Upgrade full-sdc skill to
EXECUTE loop; add wave-execute that dispatches full-sdc children via
DAG + file-ownership batches. Grok skills synced; unit tests included.
* feat(sdc): C1 wave-run controller + close Wave A residuals
Close CORE-SU.A1 with hook-runtime synapse config wiring and QA PASS.
Add ARCH-C and wave-run advance/mark/cascade/report CLI. Normalize A2–A4
to Done; package scripts sdc/wave; unit tests for wave-run.
* fix(security): harden port-denylist scan + format sdc modules
Scan .claude surfaces; fail closed on unreadable paths; doctor wraps
scan errors. Apply lint formatting to sdc/wave-run modules.
* feat(sdc): complete Wave C via wave-execute + full-sdc (C2–C4)
Execute CORE-SU-C wave: dispatch-adapter (parallel/sequential pool),
epic-glue + aiox wave from-epic, tests (23). Stories C2–C4 Done;
wave report completed. Skills updated for from-epic flow.
* feat(install): Windows npx ECOMPROMISED guidance (CORE-SU.F1 #773)
Add install-time hint, doctor windows-npx-install check (17 total),
and docs for cold-cache lock timeout. ARCH-D/E drafts unlock stretch
planning. Wave CORE-SU-F completed via full-sdc.
* feat(core): real pm.sh agent CLI + constitution XI/XII + IDE contract
Remove pm.sh echo-stub: invoke CLAUDE_CMD/claude or fail closed.
Port OSS-safe Articles XI (Squad-First) and XII (Model Governance).
Add ide-sync-contract (D1) and closeout stories for wave-execute.
* docs(governance): dual-path stories + ignore unhardened .codex
Official policy: docs/framework/epics/ for versioned framework OSS work;
docs/stories/ remains project L4 (gitignored template). Align AGENTS.md,
CLAUDE.md, story-lifecycle paths, and Grok sync prompts. Gitignore .codex/
until absolute paths / force-push wording are hardened for OSS.
* feat(harvest): Wave 0 three-way framework diff + analysis corrections
Add npm run diff:framework-3way (peer discovery via env/flags), doctor
advisory framework-3way-diff (18 checks), and ANALYSIS-3WAY-CORRECTIONS
from verified OSS×hub×enterprise facts. Prefer enterprise lean full-sdc
as skill enrichment base; never blind-merge OSS-wins modules.
* docs(harvest): mark Wave 0 arch/story Done; peer env vars
* feat(synapse): port memory-bridge heuristics from hub (CORE-SU.MB)
Cold/warm timeouts, processSessionDigest + debounced reinforce worker,
OSS global-heuristic-hints.yaml, and heuristics unit tests. Does not
replace hook-runtime wholesale. Graceful when MIS absent.
* docs(epic): mark core super update pr-ready
* chore(ids): refresh generated registry metadata
* chore(epic): freeze CORE-SUPER-UPDATE required scope complete
Mark epic complete for ship; document optional/deferred backlog as
out-of-release. Gitignore legacy .claude/skills/aios-*/ local noise
before pre-push and CodeRabbit.
* fix(doctor): keep framework-3way check lightweight
Avoid full tree hash in aiox doctor (was timing out CLI tests when
peers exist). Presence-only advisory; full report stays on
npm run diff:framework-3way.
* chore(ids): sync entity-registry after doctor check fix
* docs: strip trailing whitespace in ROADMAP for pre-push
* chore(ids): sync registry metadata after pre-push
* fix(security): address CodeRabbit majors from pre-push review
SSRF fe80::/10 + IPv4-mapped delegation; memory-bridge warm only on
success; wave cascade skip origin; SDC safeId/loadJson/plan validation;
npx hint null-env; port-denylist Windows path; gate match anchoring.
* chore(ids): refresh entity-registry after CR fixes
* fix(ci): allow Claude SDC skills in parity gate
* chore(ids): sync registry after parity fix
* fix(ids): skip registry rewrite when entity is unchanged
Avoid lastVerified thrash on no-op processChanges; covers pre-push
noise from IDS hooks.
* chore(ids): sync registry after idempotent updater fix
* fix(core): harden core super update governance
* chore(ids): sync registry after core hardening
* docs(core): bind final QA provenance to commit
* fix(ci): restore Vercel preview build
* docs(core): bind Vercel QA provenance
* fix(core): address PR review feedback
* chore(ids): regen entity-registry
* docs(core): bind PR review QA provenance
* chore(ids): restore deterministic registry
* docs(core): finalize PR review provenance
* fix(core): respect interactive QA remediation mode
* chore(ids): refresh review remediation registry
* docs(core): record interactive remediation QA
* fix(core): enforce preflight before phase execution
* chore(ids): refresh preflight remediation registry
* docs(core): record preflight ordering QA
* test(core): decouple lifecycle audit wording
* chore(ids): refresh CI remediation registry
* docs(core): record CI remediation QA
* fix(core): halt failed QA remediation verification
* chore(ids): refresh QA loop remediation registry
* docs(core): record QA remediation verification1 parent a139500 commit 0ad5a9f
83 files changed
Lines changed: 5802 additions & 1886 deletions
File tree
- .aiox-core
- cli/commands
- config
- sdc
- wave
- core
- execution
- orchestration
- permissions
- sdc
- security
- synapse
- scripts
- data
- development
- agents
- skills
- close-story
- full-sdc
- review-story
- wave-execute
- tasks
- infrastructure/scripts
- grok-skills-sync
- scripts
- .claude
- rules
- skills
- AIOX/agents/qa
- close-story
- full-sdc
- review-story
- wave-execute
- .codex/agents
- .gemini/rules/AIOX/agents
- .github/workflows
- .grok/skills
- aiox-close-story
- aiox-full-sdc
- aiox-review-story
- aiox-sdc
- aiox-wave-execute
- .husky
- .kimi/skills/aiox-qa
- docs
- architecture
- adr
- framework/epics/core-super-update
- public
- tests
- core
- execution
- orchestration
- integration
- synapse
- unit
- sdc
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
| 418 | + | |
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
| |||
26 | 33 | | |
27 | 34 | | |
28 | 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 | + | |
29 | 68 | | |
30 | 69 | | |
31 | 70 | | |
| |||
124 | 163 | | |
125 | 164 | | |
126 | 165 | | |
| 166 | + | |
127 | 167 | | |
128 | 168 | | |
129 | 169 | | |
| |||
132 | 172 | | |
133 | 173 | | |
134 | 174 | | |
135 | | - | |
136 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
137 | 183 | | |
138 | | - | |
| 184 | + | |
139 | 185 | | |
140 | 186 | | |
141 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
223 | | - | |
224 | | - | |
225 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
| 231 | + | |
| 232 | + | |
230 | 233 | | |
231 | 234 | | |
232 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
| |||
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
196 | | - | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
| 200 | + | |
199 | 201 | | |
200 | 202 | | |
201 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
| |||
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
222 | | - | |
| 223 | + | |
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
| |||
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
| 276 | + | |
275 | 277 | | |
276 | | - | |
| 278 | + | |
277 | 279 | | |
278 | 280 | | |
| 281 | + | |
279 | 282 | | |
280 | 283 | | |
281 | 284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
428 | 436 | | |
429 | 437 | | |
430 | 438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
61 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
62 | 77 | | |
63 | 78 | | |
64 | 79 | | |
| |||
78 | 93 | | |
79 | 94 | | |
80 | 95 | | |
81 | | - | |
| 96 | + | |
82 | 97 | | |
83 | 98 | | |
84 | 99 | | |
| |||
104 | 119 | | |
105 | 120 | | |
106 | 121 | | |
107 | | - | |
| 122 | + | |
108 | 123 | | |
109 | 124 | | |
110 | 125 | | |
| |||
113 | 128 | | |
114 | 129 | | |
115 | 130 | | |
116 | | - | |
| 131 | + | |
117 | 132 | | |
118 | 133 | | |
119 | 134 | | |
| |||
127 | 142 | | |
128 | 143 | | |
129 | 144 | | |
130 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
131 | 154 | | |
132 | 155 | | |
133 | 156 | | |
| |||
146 | 169 | | |
147 | 170 | | |
148 | 171 | | |
| 172 | + | |
149 | 173 | | |
150 | 174 | | |
151 | 175 | | |
| |||
176 | 200 | | |
177 | 201 | | |
178 | 202 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
183 | 209 | | |
184 | 210 | | |
185 | 211 | | |
| |||
308 | 334 | | |
309 | 335 | | |
310 | 336 | | |
| 337 | + | |
311 | 338 | | |
312 | 339 | | |
313 | 340 | | |
| |||
354 | 381 | | |
355 | 382 | | |
356 | 383 | | |
| 384 | + | |
357 | 385 | | |
358 | 386 | | |
359 | 387 | | |
| |||
479 | 507 | | |
480 | 508 | | |
481 | 509 | | |
| 510 | + | |
482 | 511 | | |
483 | 512 | | |
484 | 513 | | |
| |||
552 | 581 | | |
553 | 582 | | |
554 | 583 | | |
| 584 | + | |
555 | 585 | | |
556 | 586 | | |
557 | | - | |
| 587 | + | |
558 | 588 | | |
559 | 589 | | |
560 | 590 | | |
| |||
1026 | 1056 | | |
1027 | 1057 | | |
1028 | 1058 | | |
| 1059 | + | |
1029 | 1060 | | |
1030 | 1061 | | |
1031 | 1062 | | |
| |||
0 commit comments