Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
181 commits
Select commit Hold shift + click to select a range
4004fbf
Refine substrate world orchestration and logging
Spenquatch Apr 29, 2026
91e8157
Add AGENTS instructions
Spenquatch Apr 29, 2026
169fda8
Clarify PLAN-02 participant cutover contract
Spenquatch Apr 29, 2026
14db7d7
Adopt participant-native runtime lineage and persistence
Spenquatch Apr 29, 2026
7536d8e
patch: Add participant ID fields to WorldAgentService orchestration
Spenquatch Apr 29, 2026
0c733f1
Align follow-on docs with shared-world ownership split
Spenquatch Apr 29, 2026
84629b3
Refine PLAN-03 into a cohesive execution contract
Spenquatch Apr 29, 2026
6be28fc
Update PLAN-03 branch reference
Spenquatch Apr 29, 2026
ddacf0c
Implement shared-world ownership contract
Spenquatch Apr 30, 2026
ac23b8e
Refine PLAN-04 for shared world ownership binding
Spenquatch Apr 30, 2026
95fb39f
Refine PLAN-04 world binding authority and review notes
Spenquatch Apr 30, 2026
2d7210e
Refine PLAN-04 orchestration controls
Spenquatch Apr 30, 2026
fdb8d57
Refactor world execution and trace handling
Spenquatch Apr 30, 2026
6655b8d
Fix PLAN-04 bootstrap cleanup and test deadlock
Spenquatch Apr 30, 2026
8e4631c
patch: Add shared_world and shared_binding parameters to various func…
Spenquatch Apr 30, 2026
e681956
Exclude substrate-graph from workspace builds
Spenquatch Apr 30, 2026
736dd2f
Document restart invalidation semantics plan
Spenquatch Apr 30, 2026
ebb4e69
Consolidate PLAN-05 restart invalidation semantics
Spenquatch Apr 30, 2026
62f1eef
Add ORCH_PLAN-05 orchestration plan
Spenquatch Apr 30, 2026
0a38ef0
Add threaded seam decomposition workflow
Spenquatch Apr 30, 2026
0bcbf1d
patch: Refactor session client closure and update test duration for w…
Spenquatch Apr 30, 2026
14ed44c
Refine PLAN-06 into a cohesive session-centric review
Spenquatch Apr 30, 2026
1c0f075
Document ORCH_PLAN-06 orchestration flow
Spenquatch Apr 30, 2026
36b0252
Refine world-agent execution and replay handling
Spenquatch May 1, 2026
f72796d
patch: Refactor shutdown handling in async REPL tests and simplify or…
Spenquatch May 1, 2026
362d991
Update agent instructions
Spenquatch May 1, 2026
69b1c35
Refine plan orchestration and recovery controls
Spenquatch May 1, 2026
190bfd6
fix: harden shared-world replace flow
Spenquatch May 1, 2026
7ca95f0
Merge branch 'ws/lswr-core' into ws/lswr-int
Spenquatch May 1, 2026
818dfad
docs: correct shared-world doc drift
Spenquatch May 1, 2026
8607951
test: run world replace proofs cross-platform
Spenquatch May 1, 2026
e01e356
Merge branch 'ws/lswr-docs' into ws/lswr-int
Spenquatch May 1, 2026
49b5b30
style: format world test imports
Spenquatch May 1, 2026
015558b
Merge branch 'ws/lswr-int' into feat/session-centric-state-store
Spenquatch May 1, 2026
210dc9d
Add SOW for world replacement rollback hardening
Spenquatch May 1, 2026
434e3b5
Add PLAN-07 for shared-world replacement hardening
Spenquatch May 1, 2026
5f5ca0f
Tighten PLAN-07 execution contract
Spenquatch May 1, 2026
f51eed6
Refine ORCH_PLAN to match repo truth and execution flow
Spenquatch May 1, 2026
9e91f40
Document remaining LLM last-mile SOW sequence
Spenquatch May 1, 2026
04b8659
Refine root orchestration plan and execution controls
Spenquatch May 1, 2026
fa55b4f
Rewrite root orchestration plan
Spenquatch May 1, 2026
fdd0748
Add ORCH_PLAN-08 orchestration plan
Spenquatch May 1, 2026
3ef18dd
Enforce explicit shell event emission context
Spenquatch May 1, 2026
d944985
Harden session snapshot freshness and live-state cutover
Spenquatch May 1, 2026
2cd7689
Harden session snapshot freshness and ordering
Spenquatch May 1, 2026
321aaff
Add PLAN-09 live-state authority cutover
Spenquatch May 1, 2026
3626388
Refine PLAN-09 cutover orchestration
Spenquatch May 1, 2026
4ecd002
Freeze session authority cutover contract
Spenquatch May 1, 2026
45fe0a9
Refine member runtime launch seam for new authority boundaries
Spenquatch May 1, 2026
9edb4e8
Add PLAN-10 for member runtime launch seam
Spenquatch May 2, 2026
02a5418
Clarify member launch seam and doctor preflight
Spenquatch May 2, 2026
bc3d21c
Add world-scoped member launch and restart tests
Spenquatch May 2, 2026
509e625
Update orchestration gap matrix with validated runtime gaps
Spenquatch May 2, 2026
7d888f7
Add PLAN-11 for in-world member dispatch transport
Spenquatch May 2, 2026
c1f58d8
Refine substrate world orchestration and logging
Spenquatch May 2, 2026
a1719ba
Refine PLAN-11 with unblock contract refreeze
Spenquatch May 2, 2026
3222b9c
Refreeze member dispatch orchestration plan
Spenquatch May 2, 2026
7aa7e55
Refreeze member dispatch runtime descriptor
Spenquatch May 2, 2026
d8d4a58
Remove obsolete PLAN-11_5 unblock plan
Spenquatch May 2, 2026
05279ec
Add PLAN-11_5 continuation plan for blocked member cutover
Spenquatch May 2, 2026
73d26d8
Refine PLAN-11_5 orchestration runner
Spenquatch May 2, 2026
c370156
Export member dispatch builder from routing
Spenquatch May 2, 2026
770a107
Add PLAN-12 to unblock member dispatch cutover
Spenquatch May 3, 2026
a8e420a
chore: refine PLAN-12 orchestration and lane control
Spenquatch May 3, 2026
f656e79
Add remote member runtime dispatch bridge
Spenquatch May 3, 2026
4f99fa1
Refactor shell execute request construction
Spenquatch May 3, 2026
ad95ed1
patch: Refactor member dispatch error handling and streamline script …
Spenquatch May 3, 2026
307f056
Require world agent readiness for member dispatch
Spenquatch May 3, 2026
3f69ff3
patch: refactor REPL world agent and member dispatch handling
Spenquatch May 3, 2026
00bb03f
Update repository guidance for substrate workspace
Spenquatch May 3, 2026
7c726d6
Refactor substrate world orchestration and telemetry
Spenquatch May 3, 2026
19887b2
Normalize support imports in REPL routing test
Spenquatch May 3, 2026
d9d35ae
patch: refactor shutdown sequence in async REPL and add event drainin…
Spenquatch May 4, 2026
1a15b7e
Document gateway auth-bundle SOW addendum
Spenquatch May 4, 2026
7ba04c1
Update orchestration gap matrix for landed member dispatch
Spenquatch May 4, 2026
637f4cb
Add ORCH_PLAN-14 for PLAN-14 execution
Spenquatch May 4, 2026
abe07e0
Add auth bundle delivery for integrated gateway startup
Spenquatch May 4, 2026
18d7fa4
Patch: refactor integrated Codex auth handoff for improved testabilit…
Spenquatch May 4, 2026
731935b
patch: Add proving run closeout preparation script and related standa…
Spenquatch May 4, 2026
cd5de13
patch: refactor environment variable handling and improve context str…
Spenquatch May 4, 2026
ee63657
Update agent orchestration gap matrix
Spenquatch May 4, 2026
bfda6f4
Merge branch 'feat/session-centric-state-store' of https://github.com…
Spenquatch May 4, 2026
ce16573
Update substrate AGENTS instructions
Spenquatch May 4, 2026
e7927fa
Add ORCH_PLAN-15 for targeted REPL turn execution
Spenquatch May 4, 2026
b229158
feat: freeze member turn submit contract
Spenquatch May 4, 2026
ebf9f2f
feat: add world member turn submit route
Spenquatch May 5, 2026
f4aaba0
feat: wire targeted repl follow-up turns
Spenquatch May 5, 2026
2663a77
test: close out targeted turn coverage
Spenquatch May 5, 2026
001da8f
chore: satisfy plan 15 validation wall
Spenquatch May 5, 2026
076bfbe
Document macOS agent orchestration gaps
Spenquatch May 5, 2026
aa573fe
Clarify repository agent instructions
Spenquatch May 5, 2026
e6d50b1
patch: restructure member runtime management to use a unified registry
Spenquatch May 5, 2026
88fe3c9
patch: restructure member runtime management to use a unified registry
Spenquatch May 5, 2026
fe5fe67
patch: enhance cgroup management in SessionWorld with fallback support
Spenquatch May 5, 2026
6dc8ce8
Add orchestration plan for PLAN-17
Spenquatch May 5, 2026
fb405ed
Merge remote-tracking branch 'origin/feat/session-centric-state-store…
Spenquatch May 5, 2026
9e3d1ca
patch: refactor targeted turn handling to improve clarity and maintai…
Spenquatch May 5, 2026
b65f912
Add SOWs for agent status and public control surfaces
Spenquatch May 5, 2026
101f70b
Update repository guidelines for substrate
Spenquatch May 5, 2026
d48811e
refactor: scaffold plan-18 status seam
Spenquatch May 5, 2026
1a58839
feat: harden agent status surfaces
Spenquatch May 5, 2026
c7061de
fix: widen status session enumeration
Spenquatch May 5, 2026
9f763ff
fix: improve agent status handling and documentation for session meta…
Spenquatch May 5, 2026
4ac1f3a
patch: add assertion for WebSocket closure after fatal errors in exec…
Spenquatch May 5, 2026
f9ebc67
Unify PLAN-19 public control plan
Spenquatch May 6, 2026
470c887
Add orchestration plan for PLAN-19
Spenquatch May 6, 2026
aed10e4
patch: add control module and enhance orchestration session management
Spenquatch May 6, 2026
e84335e
feat: Implement hidden owner helper commands and orchestration manage…
Spenquatch May 6, 2026
f86755c
patch: refactor private stop connection handling and enhance agent st…
Spenquatch May 6, 2026
16fffbb
feat: enhance private stop transport path handling for UNIX systems
Spenquatch May 6, 2026
6a1acb8
Fix macOS test warnings in repl routing
Spenquatch May 6, 2026
7abdfff
patch: Enhance REPL and runtime interaction for Codex and Claude agents
Spenquatch May 7, 2026
c9e245b
patch: add initial_prompt field to runtime dispatch requests and enha…
Spenquatch May 7, 2026
b66cd68
Add ORCH_PLAN-20 execution controller
Spenquatch May 8, 2026
65945f8
patch: update .gitignore to include substrate artifacts and exceptions
Spenquatch May 8, 2026
98b37b4
patch: add plan-20 scaffold
Spenquatch May 8, 2026
263de12
feat: introduce public prompt handling in agent commands
Spenquatch May 8, 2026
6771304
feat: Public Non-Interactive Agent Caller Surface implementation
Spenquatch May 9, 2026
380fd5f
Merge branch 'feat/session-centric-state-store' into feat/public-non-…
Spenquatch May 9, 2026
87b06e9
Force Reedline in macOS tty disconnect test
Spenquatch May 9, 2026
34049a1
Add macOS shared-owner runtime parity
Spenquatch May 9, 2026
2e483f6
Update PLAN-21 resume artifacts for macOS branch
Spenquatch May 9, 2026
24aac23
Fix clippy warnings in shell tests
Spenquatch May 9, 2026
e5ffc9b
Add ORCH_PLAN-22 orchestration plan
Spenquatch May 9, 2026
42e573f
patch: Remove unused `spawn_remote_private_stop_owner` function and r…
Spenquatch May 9, 2026
a1f956c
feat: enhance validation for MemberTurnSubmitRequestV1 and add public…
Spenquatch May 10, 2026
5680fc1
Clarify commit message requirements
Spenquatch May 10, 2026
75072e3
chore: enhance ADRs with host orchestration session compatibility and…
Spenquatch May 10, 2026
7751380
Expand host orchestrator SOW for durable parked sessions
Spenquatch May 10, 2026
054bdff
Refine host orchestration plan and controller
Spenquatch May 10, 2026
1533cb7
chore: update branch references to feat/host-orchestrator-durable-ses…
Spenquatch May 10, 2026
a1ad104
chore: update worker branch references in ORCH_PLAN and PLAN document…
Spenquatch May 10, 2026
ab66aef
feat: Implement parked orchestration session handling and enhance ses…
Spenquatch May 10, 2026
6ca864d
Fix host bootstrap readiness and clean-detach parking
Spenquatch May 11, 2026
15aaef4
Refine host bootstrap recovery plan
Spenquatch May 11, 2026
d1d997f
Refine host bootstrap orchestration plan
Spenquatch May 11, 2026
f071c33
chore: Add external QA artifact requirements and update validation ac…
Spenquatch May 11, 2026
43720de
patch: Update file paths in ORCH_PLAN for consistency and accuracy
Spenquatch May 11, 2026
08e8c9b
patch: Enhance manual validation requirements in PLAN.md for host boo…
Spenquatch May 11, 2026
6ea89a7
refactor: freeze host bootstrap readiness seam
Spenquatch May 11, 2026
3b8de76
patch: Refactor HiddenOwnerHelperLaunchReadiness and improve session …
Spenquatch May 11, 2026
d6f425f
patch: Implement persist_runtime_alert_for_dev_support and update tes…
Spenquatch May 11, 2026
81d0f4b
patch: Add function to wait for detached resume-eligible participant …
Spenquatch May 11, 2026
013657a
Implement enhanced handling for Codex invocations in agent control tests
Spenquatch May 11, 2026
270847c
Refine host-orchestrator durable session plan
Spenquatch May 11, 2026
71d5782
Refresh orchestration plan for durable host session closeout
Spenquatch May 11, 2026
d2a3a23
patch: Enhance manual validation flows and update session state check…
Spenquatch May 11, 2026
cbac9e9
Refactor agent orchestration and control flow for durable sessions
Spenquatch May 11, 2026
02e906e
chore: Add tests for clean session stop and reattach behavior in agen…
Spenquatch May 11, 2026
9394318
patch: Improve session readiness checks and enhance test coverage for…
Spenquatch May 11, 2026
57a9753
patch: Enhance readiness checks for hidden owner helper and add start…
Spenquatch May 11, 2026
9df1648
Fix detached start normalization after hidden helper exit
Spenquatch May 13, 2026
07d6a0f
Fix macOS Lima forwarding timeout and shared-owner tests
Spenquatch May 13, 2026
2c1c5c9
feat: enhance agent status reporting with new session fields
Spenquatch May 14, 2026
995e273
Add PLAN-25 durable host session closeout plan
Spenquatch May 15, 2026
8d0367c
Fix async persistent session bootstrap readiness
Spenquatch May 15, 2026
3c04904
Update repository guidelines for substrate
Spenquatch May 15, 2026
2e62b5d
Clarify readiness seam and regression test requirements
Spenquatch May 15, 2026
e9fbb8f
refactor: freeze async readiness seam
Spenquatch May 15, 2026
4442826
Merge branch 'codex/slice-26-shell-readiness-seam' into codex/slice-2…
Spenquatch May 15, 2026
d4e4c64
refactor: split mac readiness adapters
Spenquatch May 15, 2026
713b151
refactor: split wsl readiness helpers
Spenquatch May 15, 2026
c2c6198
Merge branch 'codex/slice-26-mac-lima-readiness-split' into codex/sli…
Spenquatch May 15, 2026
847da70
Merge branch 'codex/slice-26-wsl-readiness-parity' into codex/slice-2…
Spenquatch May 15, 2026
9d29677
fix: migrate async persistent session startup
Spenquatch May 15, 2026
44b5d80
Merge branch 'codex/slice-26-shell-readiness-seam' into codex/slice-2…
Spenquatch May 15, 2026
9a74b57
docs: record readiness caller split
Spenquatch May 15, 2026
85be0f0
Merge branch 'codex/slice-26-docs-readiness-split' into codex/slice-2…
Spenquatch May 15, 2026
827e713
test: satisfy validation wall
Spenquatch May 15, 2026
5edf154
Remove eager REPL host bootstrap and tighten regression coverage
Spenquatch May 16, 2026
cb4ddf5
Refresh GitNexus index metadata
Spenquatch May 16, 2026
0654671
Update file paths in PLAN-25 and ORCH_PLAN-25 to reflect new director…
Spenquatch May 16, 2026
a3b835e
docs: align durable session truth contract
Spenquatch May 16, 2026
ab3ed89
test: harden parked session lifecycle qa
Spenquatch May 16, 2026
6419480
Merge branch 'codex/slice-26-async-persistent-session-readiness' into…
Spenquatch May 18, 2026
2cf638b
patch: enhance agent runtime with new resume mode and session handlin…
Spenquatch May 18, 2026
0d6664d
patch: harden host start readiness timeout and startup failure cleanup
Spenquatch May 18, 2026
d2d00fe
patch: decouple start readiness from prompt completion race
Spenquatch May 18, 2026
45d8a62
patch: handle attached vs detached start normalization correctly
Spenquatch May 18, 2026
ec563aa
Feat/host orchestrator durable session patch 001/windows (#71)
Spenquatch May 19, 2026
9d71706
fix: resolve shellcheck warnings in dev-install script
Spenquatch May 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ docs/project_management/packs/**/logs/
.mcp.json
.DS_Store
**/.DS_Store
.gitnexus
.orchestrator-*
.substrate
46 changes: 45 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace -- --nocapture # run full suite with output
cargo bench # exercise hotspots when touching performance-sensitive crates
```
- Avoid `--all-features` at the workspace level; enable graph features explicitly (e.g., `cargo build -p substrate-graph --features kuzu-dylib`).
- Avoid `--all-features` at the workspace level; enable graph features explicitly via the graph crate manifest (e.g., `cargo build --manifest-path crates/substrate-graph/Cargo.toml --features kuzu-dylib`).
- Regenerate shims for manual testing with `substrate --shim-deploy`; inspect with `substrate --shim-status`.

## Coding Standards & Patterns
Expand Down Expand Up @@ -91,3 +91,47 @@ cargo bench # exercise hotspots when touching pe
- `scripts/dev-entrypoint.sh`: reproducible dev container bootstrap.
- `docs/BACKLOG.md`: living backlog for DX improvements/bugs.
- Update these guides when behavior changes; stale docs are treated as regressions.

<!-- gitnexus:start -->
# GitNexus — Code Intelligence

This project is indexed by GitNexus as **substrate** (46052 symbols, 69611 relationships, 300 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.

> If any GitNexus tool warns the index is stale, run `npx gitnexus analyze` in terminal first.

## Always Do

- **MUST run impact analysis before editing any symbol.** Before modifying a function, class, or method, run `gitnexus_impact({target: "symbolName", direction: "upstream"})` and report the blast radius (direct callers, affected processes, risk level) to the user.
- **MUST run `gitnexus_detect_changes()` before committing** to verify your changes only affect expected symbols and execution flows.
- **MUST warn the user** if impact analysis returns HIGH or CRITICAL risk before proceeding with edits.
- When exploring unfamiliar code, use `gitnexus_query({query: "concept"})` to find execution flows instead of grepping. It returns process-grouped results ranked by relevance.
- When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use `gitnexus_context({name: "symbolName"})`.

## Never Do

- NEVER edit a function, class, or method without first running `gitnexus_impact` on it.
- NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
- NEVER rename symbols with find-and-replace — use `gitnexus_rename` which understands the call graph.
- NEVER commit changes without running `gitnexus_detect_changes()` to check affected scope.

## Resources

| Resource | Use for |
|----------|---------|
| `gitnexus://repo/substrate/context` | Codebase overview, check index freshness |
| `gitnexus://repo/substrate/clusters` | All functional areas |
| `gitnexus://repo/substrate/processes` | All execution flows |
| `gitnexus://repo/substrate/process/{name}` | Step-by-step execution trace |

## CLI

| Task | Read this skill file |
|------|---------------------|
| Understand architecture / "How does X work?" | `.claude/skills/gitnexus/gitnexus-exploring/SKILL.md` |
| Blast radius / "What breaks if I change X?" | `.claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md` |
| Trace bugs / "Why is X failing?" | `.claude/skills/gitnexus/gitnexus-debugging/SKILL.md` |
| Rename / extract / split / refactor | `.claude/skills/gitnexus/gitnexus-refactoring/SKILL.md` |
| Tools, resources, schema reference | `.claude/skills/gitnexus/gitnexus-guide/SKILL.md` |
| Index, status, clean, wiki CLI commands | `.claude/skills/gitnexus/gitnexus-cli/SKILL.md` |

<!-- gitnexus:end -->
157 changes: 96 additions & 61 deletions AGENT_ORCHESTRATION_GAP_MATRIX.md

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!-- gitnexus:start -->
# GitNexus — Code Intelligence

This project is indexed by GitNexus as **substrate** (46052 symbols, 69611 relationships, 300 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.

> If any GitNexus tool warns the index is stale, run `npx gitnexus analyze` in terminal first.

## Always Do

- **MUST run impact analysis before editing any symbol.** Before modifying a function, class, or method, run `gitnexus_impact({target: "symbolName", direction: "upstream"})` and report the blast radius (direct callers, affected processes, risk level) to the user.
- **MUST run `gitnexus_detect_changes()` before committing** to verify your changes only affect expected symbols and execution flows.
- **MUST warn the user** if impact analysis returns HIGH or CRITICAL risk before proceeding with edits.
- When exploring unfamiliar code, use `gitnexus_query({query: "concept"})` to find execution flows instead of grepping. It returns process-grouped results ranked by relevance.
- When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use `gitnexus_context({name: "symbolName"})`.

## Never Do

- NEVER edit a function, class, or method without first running `gitnexus_impact` on it.
- NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
- NEVER rename symbols with find-and-replace — use `gitnexus_rename` which understands the call graph.
- NEVER commit changes without running `gitnexus_detect_changes()` to check affected scope.

## Resources

| Resource | Use for |
|----------|---------|
| `gitnexus://repo/substrate/context` | Codebase overview, check index freshness |
| `gitnexus://repo/substrate/clusters` | All functional areas |
| `gitnexus://repo/substrate/processes` | All execution flows |
| `gitnexus://repo/substrate/process/{name}` | Step-by-step execution trace |

## CLI

| Task | Read this skill file |
|------|---------------------|
| Understand architecture / "How does X work?" | `.claude/skills/gitnexus/gitnexus-exploring/SKILL.md` |
| Blast radius / "What breaks if I change X?" | `.claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md` |
| Trace bugs / "Why is X failing?" | `.claude/skills/gitnexus/gitnexus-debugging/SKILL.md` |
| Rename / extract / split / refactor | `.claude/skills/gitnexus/gitnexus-refactoring/SKILL.md` |
| Tools, resources, schema reference | `.claude/skills/gitnexus/gitnexus-guide/SKILL.md` |
| Index, status, clean, wiki CLI commands | `.claude/skills/gitnexus/gitnexus-cli/SKILL.md` |

<!-- gitnexus:end -->
Loading