Commit 7d98961
authored
Cleanup/consolidate and gap analysis (#64)
* docs: consolidate CLAUDE.md into AGENTS.md
Merge project-specific guidance from CLAUDE.md into AGENTS.md as the
single entrypoint for all coding agents. CLAUDE.md now redirects to
AGENTS.md.
Changes:
- Add 'What This Project Is' section (from CLAUDE.md)
- Merge architecture doc reading list into Required Load Order
- Add Project Rules (Do/Don't) section (from CLAUDE.md)
- Expand Backpressure with build/doc commands under Nix wrappers
- Deduplicate two overlapping architecture sections into one
- Remove 'Related Documents' section (was CLAUDE.md pointer)
- Update CONTRIBUTING.md references from CLAUDE.md to AGENTS.md
* refactor: cleanup dead code, rename EffectExecutor, fix stale READMEs
orch-kit:
- Rename EffectExecutor -> EffectInterpreter (resolves name collision with
neuron-effects-core::EffectExecutor; they're different abstraction levels)
- Rename LocalEffectExecutor -> LocalEffectInterpreter
- Rename runner_with_executor -> runner_with_interpreter
- Remove unused tracing dependency
- Remove dead _touch_errors placeholder function
op-react:
- Remove dead _tool_uses variable (data collected twice, first unused)
READMEs (5 crates):
- layer0: Fix test-utils names (EchoOperator, InMemoryStore, not Stub*)
- neuron-mcp: Fix type names (McpClient/McpServer, not Bridge variants)
- neuron-hooks: Fix Hook trait signature (on_event, not before_turn/after_turn)
- neuron-tool: Fix trait name (ToolDyn.call, not Tool.invoke)
- neuron-orch-local: Fix type name (LocalOrch, not LocalOrchestrator)
All 393 tests pass. Clippy clean. Formatted.
* chore: remove scratch plan file from tracking
* docs: add Agent Constitution (CONSTITUTION.md)
Normative document deriving from the Agentic Decision Map v3.
Encodes core values (composability, effects boundary, slim defaults,
protocol stability, explicitness) and Neuron's positions on all 23
architectural decisions.
Format follows Anthropic's constitutional style: narrative explanation
of WHY, not just WHAT. Structured as a universal template — other
projects can fork and fill in their own positions.
Also:
- AGENTS.md: added to required reading list (#5), updated truth
hierarchy (constitution > specs > rules > agent judgment)
- release-please-config.json: excluded from release triggers
* docs: tighten CONSTITUTION.md
Cut from 268 to 155 lines (~42%). Same 5 values, same 23 positions.
- Eliminated formulaic 'The principle / Positions' repetition
- Removed 'orchestration protocol owns X' redundancy (was 8x)
- Cut decision index table (duplicated narrative)
- Varied rhythm across sections instead of rigid template
- Sharpened voice from reference-manual to constitutional
* refactor: reorganize workspace into domain-grouped directories
Move 34 crates from flat repo root into 11 domain groups:
turn/ neuron-turn, neuron-turn-kit, neuron-context, neuron-tool, neuron-mcp
op/ neuron-op-react, neuron-op-single-shot
orch/ neuron-orch-local, neuron-orch-kit
effects/ neuron-effects-core, neuron-effects-local
hooks/ neuron-hooks, neuron-hook-security
state/ neuron-state-memory, neuron-state-fs
env/ neuron-env-local
provider/ neuron-provider-anthropic, neuron-provider-openai, neuron-provider-ollama
secret/ neuron-secret + 6 backends
auth/ neuron-auth + 4 backends
crypto/ neuron-crypto + 2 backends
layer0/ and neuron/ (umbrella) stay at root.
Crate names, published package names, and all code unchanged.
Updated: workspace members, 109 path dependencies across 26
Cargo.toml files, release-please-config.json,
.release-please-manifest.json, README.md crate map.
All 393 tests pass. Clippy clean. Formatted.
* docs: update workspace layout in active docs after restructure
- NEURON-REDESIGN-PLAN.md: rewritten workspace tree to match grouped layout
- docs/architecture/validation-and-coordination.md: same
- ralph_queue.md: fixed one path reference
Historical docs/plans/* left untouched (historical record).
* docs: decision map gap analysis — 23→24 decisions, expand D3A/D5/D4B/C1
Deep research across all 23 decisions in the Agentic Decision Map v3:
- 8 parallel research runs covering Turn, Composition, and Lifecycle layers
- Independence-tested 6 proposed new decisions against real architectures
Results:
- Add D3D (Output Shape) as genuinely new decision in inference cluster
- Expand D3A table with two-level routing (model + reasoning effort)
- Expand D5 with 4 new exit strategies (self-assessment, verification,
loop detection, infeasibility)
- Expand D4B with workload identity and proxy-mediated options
- Expand C1 with trust/permission propagation model
- Add Named Autonomy Configurations sidebar (D4A + C5 composite)
- Add Development Lifecycle open questions (eval gating, versioning)
- Update decision topology diagram and count (23 → 24)
New documents:
- decision-map-gap-analysis-2026.md — full research synthesis
- decision-map-new-decision-audit.md — independence test methodology
- gap-analysis-implementation-roadmap.md — code change spec
- research-2026-03/ — 8 raw research reports + metadata
* chore: delete 11 stub crates, keep neuron-secret-vault as reference
Delete empty backend stubs that added crate count without substance:
- auth: neuron-auth-{static,file,oidc,k8s} (53-69 lines each)
- secret: neuron-secret-{env,aws,gcp,keystore,k8s} (77-121 lines each)
- crypto: neuron-crypto-{vault,hardware} (109 lines each)
Keep neuron-secret-vault as the reference stub for future backends.
Workspace: 37 → 26 crates. Historical docs in docs/plans/ left as-is.
* fix: pre-commit hook uses nix fmt instead of bare treefmt
treefmt binary is not on PATH outside nix develop shell.
Use 'nix fmt && git diff --exit-code' to match CI behavior.
* fix: expose treefmt wrapper in devShell via treefmt-nix
treefmt-nix was already wired as a flake module but config.treefmt.build.wrapper
was not added to devShell buildInputs, so the treefmt binary was never on PATH.
Add the wrapper to devShell so 'treefmt' is available inside nix develop.
Pre-commit hook invokes via 'nix develop --command treefmt --fail-on-change'
since hooks run outside the nix shell.
* fix: correct stale relative links after domain-dir restructure; add lychee pre-commit hook
8 relative file links across 7 READMEs were broken by the workspace
reorganization (crates moved into domain subdirectories):
../layer0 -> ../../layer0 (hooks, env, state crates)
../neuron-turn -> ../../turn/neuron-turn (provider crates)
../neuron-secret -> ../../secret/neuron-secret (env crate)
Also add lychee (--scheme file) as a pre-commit hook so broken local
links are caught before push, not by CI. HTTP links remain CI-only
(offline, fast, no rate-limit flakiness).
Exclude .direnv from .lychee.toml to avoid scanning nixpkgs READMEs.
* fix: add missing crates to release-please manifest and config
neuron-effects-core, neuron-effects-local, and neuron-turn-kit were
present in the workspace but absent from release-please tracking.
All three are publishable at 0.4.0.1 parent f2d1816 commit 7d98961
File tree
213 files changed
+2037
-4853
lines changed- auth/neuron-auth
- src
- crypto/neuron-crypto
- src
- docs
- architecture
- book/src
- architecture
- reference
- effects
- neuron-effects-core
- src
- neuron-effects-local
- src
- env/neuron-env-local
- src
- tests
- examples/custom_operator_barrier
- hooks
- neuron-hook-security
- src
- neuron-hooks
- src
- tests
- layer0
- neuron-auth-file
- src
- neuron-auth-k8s
- src
- neuron-auth-oidc
- src
- neuron-auth-static
- src
- neuron-crypto-hardware
- src
- neuron-crypto-vault
- src
- neuron-hooks
- neuron-mcp
- neuron-orch-local
- neuron-secret-aws
- src
- neuron-secret-env
- src
- neuron-secret-gcp
- src
- neuron-secret-k8s
- src
- neuron-secret-keystore
- src
- neuron-secret-vault
- neuron-secret
- neuron-state-fs
- neuron-state-memory
- neuron-tool
- neuron-turn
- neuron
- op
- neuron-op-react
- src
- neuron-op-single-shot
- src
- orch
- neuron-orch-kit
- src
- tests
- neuron-orch-local
- src
- tests
- provider
- neuron-provider-anthropic
- src
- tests
- neuron-provider-ollama
- src
- tests
- neuron-provider-openai
- src
- tests
- secret
- neuron-secret-vault
- src
- neuron-secret
- src
- state
- neuron-state-fs
- src
- tests
- neuron-state-memory
- src
- tests
- turn
- neuron-context
- src
- neuron-mcp
- src
- neuron-tool
- src
- neuron-turn-kit
- src
- neuron-turn
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
213 files changed
+2037
-4853
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
11 | 19 | | |
12 | 20 | | |
13 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
2 | 9 | | |
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 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
35 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
6 | 13 | | |
7 | 14 | | |
8 | 15 | | |
9 | 16 | | |
10 | 17 | | |
11 | | - | |
12 | | - | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
| |||
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
29 | 44 | | |
30 | 45 | | |
31 | | - | |
32 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
33 | 49 | | |
34 | | - | |
| 50 | + | |
35 | 51 | | |
36 | 52 | | |
37 | 53 | | |
38 | | - | |
39 | | - | |
40 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
41 | 58 | | |
42 | 59 | | |
43 | 60 | | |
| |||
46 | 63 | | |
47 | 64 | | |
48 | 65 | | |
49 | | - | |
50 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
51 | 76 | | |
52 | 77 | | |
53 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
54 | 100 | | |
55 | 101 | | |
56 | 102 | | |
| |||
65 | 111 | | |
66 | 112 | | |
67 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 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 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
68 | 173 | | |
69 | 174 | | |
70 | 175 | | |
| |||
76 | 181 | | |
77 | 182 | | |
78 | 183 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | 184 | | |
85 | 185 | | |
86 | 186 | | |
87 | 187 | | |
88 | 188 | | |
89 | 189 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
| |||
| 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 | | - | |
| 1 | + | |
0 commit comments