sinapse-ai 7.7.5 → 7.7.6
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/.claude/CLAUDE.md +1 -0
- package/.claude/rules/security-data-protection.md +184 -0
- package/.codex/delegation-matrix.json +364 -475
- package/.codex/handoff-packet.schema.json +13 -93
- package/.codex/scripts/resolve-codex-delegation-parity.js +205 -0
- package/.codex/scripts/resolve-codex-delegation.js +92 -121
- package/.codex/tasks/route-sinapse-request.md +2 -2
- package/.sinapse-ai/constitution.md +67 -1
- package/.sinapse-ai/core/doctor/checks/constitution-consistency.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/constitution-consistency.js +1 -0
- package/.sinapse-ai/data/entity-registry.yaml +757 -764
- package/.sinapse-ai/data/registry-update-log.jsonl +3 -0
- package/.sinapse-ai/infrastructure/scripts/validate-codex-delegation.js +5 -3
- package/.sinapse-ai/install-manifest.yaml +12 -12
- package/.sinapse-ai/product/templates/ide-rules/claude-rules.md +1 -0
- package/docs/codex-delegation-parity.md +115 -0
- package/docs/codex-parity-program.md +7 -0
- package/package.json +1 -1
|
@@ -570,3 +570,6 @@
|
|
|
570
570
|
{"timestamp":"2026-04-03T00:26:52.858Z","action":"change","path":".sinapse-ai/infrastructure/scripts/validate-codex-command-registry.js","trigger":"watcher"}
|
|
571
571
|
{"timestamp":"2026-04-03T00:26:52.860Z","action":"add","path":".sinapse-ai/infrastructure/scripts/validate-codex-delegation.js","trigger":"watcher"}
|
|
572
572
|
{"timestamp":"2026-04-03T00:26:52.860Z","action":"change","path":".sinapse-ai/infrastructure/scripts/validate-codex-sync.js","trigger":"watcher"}
|
|
573
|
+
{"timestamp":"2026-04-03T02:10:30.504Z","action":"change","path":".sinapse-ai/core/doctor/checks/constitution-consistency.js","trigger":"watcher"}
|
|
574
|
+
{"timestamp":"2026-04-03T02:10:30.505Z","action":"change","path":".sinapse-ai/core/health-check/checks/project/constitution-consistency.js","trigger":"watcher"}
|
|
575
|
+
{"timestamp":"2026-04-03T02:10:30.506Z","action":"change","path":".sinapse-ai/product/templates/ide-rules/claude-rules.md","trigger":"watcher"}
|
|
@@ -7,7 +7,9 @@ const Ajv2020 = require('ajv/dist/2020');
|
|
|
7
7
|
const {
|
|
8
8
|
buildHandoffPacket,
|
|
9
9
|
loadDelegationMatrix,
|
|
10
|
-
} = require(
|
|
10
|
+
} = require(
|
|
11
|
+
path.join(__dirname, '..', '..', '..', '.codex', 'scripts', 'resolve-codex-delegation-parity'),
|
|
12
|
+
);
|
|
11
13
|
const {
|
|
12
14
|
loadRegistry: loadCommandRegistryFile,
|
|
13
15
|
} = require('./validate-codex-command-registry');
|
|
@@ -64,8 +66,8 @@ function validateCodexDelegation(options = {}) {
|
|
|
64
66
|
};
|
|
65
67
|
}
|
|
66
68
|
|
|
67
|
-
const matrixPath = path.join(projectRoot, '.codex', 'delegation-
|
|
68
|
-
const schemaPath = path.join(projectRoot, matrix.handoffSchema || '.codex/handoff-packet.schema.json');
|
|
69
|
+
const matrixPath = path.join(projectRoot, '.codex', 'delegation-parity.json');
|
|
70
|
+
const schemaPath = path.join(projectRoot, matrix.handoffSchema || '.codex/handoff-packet.parity.schema.json');
|
|
69
71
|
if (!fs.existsSync(schemaPath)) {
|
|
70
72
|
errors.push(`Missing handoff schema ${path.relative(projectRoot, schemaPath)}`);
|
|
71
73
|
}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
# - SHA256 hashes for change detection
|
|
8
8
|
# - File types for categorization
|
|
9
9
|
#
|
|
10
|
-
version: 7.7.
|
|
11
|
-
generated_at: "2026-04-
|
|
10
|
+
version: 7.7.6
|
|
11
|
+
generated_at: "2026-04-03T02:11:41.779Z"
|
|
12
12
|
generator: scripts/generate-install-manifest.js
|
|
13
13
|
file_count: 1118
|
|
14
14
|
files:
|
|
@@ -313,9 +313,9 @@ files:
|
|
|
313
313
|
type: core
|
|
314
314
|
size: 1724
|
|
315
315
|
- path: core/doctor/checks/constitution-consistency.js
|
|
316
|
-
hash: sha256:
|
|
316
|
+
hash: sha256:8da440ef623c8ba300a73f9833fb5b7c5f6e45e50694b488b7580c9738bfb1d8
|
|
317
317
|
type: core
|
|
318
|
-
size:
|
|
318
|
+
size: 3139
|
|
319
319
|
- path: core/doctor/checks/core-config.js
|
|
320
320
|
hash: sha256:5424528eefbc2f19213b30d00dcd96128acefdbb289c25712be844f0fbddb963
|
|
321
321
|
type: core
|
|
@@ -581,9 +581,9 @@ files:
|
|
|
581
581
|
type: core
|
|
582
582
|
size: 4733
|
|
583
583
|
- path: core/health-check/checks/project/constitution-consistency.js
|
|
584
|
-
hash: sha256:
|
|
584
|
+
hash: sha256:e6d0320efb88db073f6f877bc63126a9825ce7a896f5629f81ac24394e96a3ec
|
|
585
585
|
type: core
|
|
586
|
-
size:
|
|
586
|
+
size: 6044
|
|
587
587
|
- path: core/health-check/checks/project/dependencies.js
|
|
588
588
|
hash: sha256:a8f4d9fcadf5dc3274d8ed0605af6f25d6554b1a9b0d3e66c63d8ea4569c95b9
|
|
589
589
|
type: core
|
|
@@ -1237,9 +1237,9 @@ files:
|
|
|
1237
1237
|
type: data
|
|
1238
1238
|
size: 9586
|
|
1239
1239
|
- path: data/entity-registry.yaml
|
|
1240
|
-
hash: sha256:
|
|
1240
|
+
hash: sha256:71b0007c07fe52099eacd433b0e9a40db6163a69cbd4b0687c9f284486afca8f
|
|
1241
1241
|
type: data
|
|
1242
|
-
size:
|
|
1242
|
+
size: 515685
|
|
1243
1243
|
- path: data/learned-patterns.yaml
|
|
1244
1244
|
hash: sha256:24ac0b160615583a0ff783d3da8af80b7f94191575d6db2054ec8e10a3f945dc
|
|
1245
1245
|
type: data
|
|
@@ -3433,9 +3433,9 @@ files:
|
|
|
3433
3433
|
type: script
|
|
3434
3434
|
size: 7266
|
|
3435
3435
|
- path: infrastructure/scripts/validate-codex-delegation.js
|
|
3436
|
-
hash: sha256:
|
|
3436
|
+
hash: sha256:c084dff34fe7fbc82cb785219f6ed1f33d181fcc6fc9ee06c220ef2cbeaa99b5
|
|
3437
3437
|
type: script
|
|
3438
|
-
size:
|
|
3438
|
+
size: 9551
|
|
3439
3439
|
- path: infrastructure/scripts/validate-codex-integration.js
|
|
3440
3440
|
hash: sha256:c553cc493ddbfecf41b865f8a1075df56b6500c3b2b315bae8b7e7bcec4db85a
|
|
3441
3441
|
type: script
|
|
@@ -3973,9 +3973,9 @@ files:
|
|
|
3973
3973
|
type: template
|
|
3974
3974
|
size: 3691
|
|
3975
3975
|
- path: product/templates/ide-rules/claude-rules.md
|
|
3976
|
-
hash: sha256:
|
|
3976
|
+
hash: sha256:819588040a8a7e0e90f49115c2ed4474db06cf6bba190671da6a67b15a4b0b88
|
|
3977
3977
|
type: template
|
|
3978
|
-
size:
|
|
3978
|
+
size: 13393
|
|
3979
3979
|
- path: product/templates/ide-rules/codex-rules.md
|
|
3980
3980
|
hash: sha256:601ffec5e24ff5e247c25e4d61728167503722acc817a1b30fbd695182bed1bc
|
|
3981
3981
|
type: template
|
|
@@ -28,6 +28,7 @@ O SINAPSE possui uma **Constitution formal** com princípios inegociáveis e gat
|
|
|
28
28
|
| VII | Ecosystem Metrics Accuracy | NON-NEGOTIABLE |
|
|
29
29
|
| VIII | Mandatory Delegation | NON-NEGOTIABLE |
|
|
30
30
|
| IX | Safe Collaboration | NON-NEGOTIABLE |
|
|
31
|
+
| X | Security & Data Protection | NON-NEGOTIABLE |
|
|
31
32
|
|
|
32
33
|
**Gates automáticos bloqueiam violações.** Consulte a Constitution para detalhes completos.
|
|
33
34
|
<!-- SINAPSE-MANAGED-END: constitution -->
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Codex Delegation Parity
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Codex delegation parity makes `sinapse-orqx -> squad orqx -> specialist` routing explicit, inspectable, and validator-backed without changing `.claude/**`.
|
|
6
|
+
|
|
7
|
+
The contract lives in:
|
|
8
|
+
|
|
9
|
+
- `.codex/delegation-parity.json`
|
|
10
|
+
- `.codex/handoff-packet.parity.schema.json`
|
|
11
|
+
- `.codex/scripts/resolve-codex-delegation-parity.js`
|
|
12
|
+
- `.sinapse-ai/infrastructure/scripts/validate-codex-delegation.js`
|
|
13
|
+
|
|
14
|
+
## Routing Classes
|
|
15
|
+
|
|
16
|
+
- `validator-backed`: route is approved, resource-backed, and structurally validated
|
|
17
|
+
- `codex-only-shim`: route is intentionally implemented as a Codex compatibility layer
|
|
18
|
+
- `exploratory`: route is documented and discoverable, but not a guaranteed runtime-equivalent path
|
|
19
|
+
|
|
20
|
+
## Current Contract
|
|
21
|
+
|
|
22
|
+
The current Codex delegation matrix validates:
|
|
23
|
+
|
|
24
|
+
- 19 orchestrators
|
|
25
|
+
- 5 framework agents
|
|
26
|
+
- 7 approved routes
|
|
27
|
+
|
|
28
|
+
Approved route families:
|
|
29
|
+
|
|
30
|
+
- single-domain squad delegation
|
|
31
|
+
- framework workflow delegation
|
|
32
|
+
- multi-domain launch orchestration
|
|
33
|
+
- exploratory delegation with explicit shared-surface risk
|
|
34
|
+
|
|
35
|
+
## Supported Routes
|
|
36
|
+
|
|
37
|
+
### Validator-Backed
|
|
38
|
+
|
|
39
|
+
- `brand-discovery`
|
|
40
|
+
- `content-funnel-alignment`
|
|
41
|
+
- `growth-seo-audit`
|
|
42
|
+
- `claude-project-setup`
|
|
43
|
+
- `framework-story-delivery`
|
|
44
|
+
|
|
45
|
+
### Codex-Only Shim
|
|
46
|
+
|
|
47
|
+
- `multi-domain-launch`
|
|
48
|
+
|
|
49
|
+
### Exploratory
|
|
50
|
+
|
|
51
|
+
- `research-competitor-positioning`
|
|
52
|
+
|
|
53
|
+
## Handoff Packet
|
|
54
|
+
|
|
55
|
+
Each route produces a normalized handoff packet with:
|
|
56
|
+
|
|
57
|
+
- `mission`
|
|
58
|
+
- `phase`
|
|
59
|
+
- `owner`
|
|
60
|
+
- `classification`
|
|
61
|
+
- `inputs`
|
|
62
|
+
- `outputs`
|
|
63
|
+
- `validators`
|
|
64
|
+
- `sharedSurfaceRisk`
|
|
65
|
+
- `nextHandoff`
|
|
66
|
+
- `delegationChain`
|
|
67
|
+
|
|
68
|
+
This packet is the reviewable unit for Codex orchestration.
|
|
69
|
+
|
|
70
|
+
## CLI Usage
|
|
71
|
+
|
|
72
|
+
Inspect a route:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
node .codex/scripts/resolve-codex-delegation-parity.js framework-story-delivery
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Inspect JSON:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
node .codex/scripts/resolve-codex-delegation-parity.js framework-story-delivery --json
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Inspect only the handoff packet:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
node .codex/scripts/resolve-codex-delegation-parity.js framework-story-delivery --packet
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Legacy source-aware lookup is still accepted for compatibility:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
node .codex/scripts/resolve-codex-delegation-parity.js sinapse-orqx framework-story-delivery --json
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Validation
|
|
97
|
+
|
|
98
|
+
Primary checks:
|
|
99
|
+
|
|
100
|
+
- `npm run validate:codex-delegation`
|
|
101
|
+
- `npm run validate:codex-sync`
|
|
102
|
+
|
|
103
|
+
Secondary checks:
|
|
104
|
+
|
|
105
|
+
- `npm run validate:codex-commands`
|
|
106
|
+
- `npm run validate:codex-integration`
|
|
107
|
+
- `npm run validate:codex-skills`
|
|
108
|
+
- `npm run validate:paths`
|
|
109
|
+
|
|
110
|
+
## Guardrails
|
|
111
|
+
|
|
112
|
+
- Do not treat exploratory routes as runtime guarantees
|
|
113
|
+
- Do not change `.claude/**` to make a Codex-only route pass
|
|
114
|
+
- Prefer extending the Codex matrix before altering shared framework behavior
|
|
115
|
+
- Keep framework-agent delegation backed by `.codex/command-registry.json`
|
|
@@ -261,6 +261,13 @@ Focus:
|
|
|
261
261
|
|
|
262
262
|
Execution detail is now formalized in `docs/codex-total-parity-orchestration-plan.md`.
|
|
263
263
|
|
|
264
|
+
Current state after Story `7.7.8`:
|
|
265
|
+
|
|
266
|
+
- a Codex-only delegation parity contract now lives in `.codex/delegation-parity.json`
|
|
267
|
+
- a parity handoff schema now validates delegation packets in `.codex/handoff-packet.parity.schema.json`
|
|
268
|
+
- Codex has a delegation parity resolver CLI for route lookup and packet inspection
|
|
269
|
+
- `validate:codex-delegation` now enforces the approved Codex routing contract
|
|
270
|
+
|
|
264
271
|
Current recommended implementation story:
|
|
265
272
|
|
|
266
273
|
- Story `7.7.8` - Codex delegation and handoff parity
|