feat: add per-project native server and SSE command streaming
build / jvm (push) Waiting to run
build / native (macos-15, macos-arm64) (push) Waiting to run
build / native (ubuntu-24.04, linux-x86_64) (push) Waiting to run
build / native (windows-2025, windows-x86_64) (push) Waiting to run
Test / Tests and coverage
Intrepid/AI Engineering/pipeline/head This commit looks good

Keep Spring in a persistent project server with lightweight clients, managed start/stop, bounded SSE subscriptions, cursor recovery and durable mutation outcomes. Preserve SQLite authority and transaction limits, and document reproducible native measurements.

Validation: 269 tests, 11 pipeline scenarios, full native/SSE smoke, native package verification and 17 installer tests passed. Implements WRK-000E / DEC-0001 / DEC-0002.
This commit is contained in:
2026-11-22 23:08:47 +00:00
parent 20bb4f02bc
commit 9a555cb3c6
64 changed files with 5062 additions and 29 deletions
+31 -1
View File
@@ -7,7 +7,9 @@ across people, AI agents, and sessions. It stores goals, discussions, decisions,
plans, and quality results in a local SQLite database for each project.
Use it in a single folder or across several source repositories. Git is optional.
SQLite runs inside AIE; no database server, model API or background service is required.
SQLite runs inside AIE. A lightweight client automatically starts and reuses a local
Spring server for each project, with native GraalVM as the default distribution.
No model API or separately managed database service is required.
State stays outside Git by default. Versioning it is the developer's choice.
## What you can do
@@ -128,6 +130,30 @@ The exported context brings together the Work's scope, discussion, decisions,
plans, evidence references, and pending questions. `next-actions` suggests what to
address next. Every command provides `--help`; inspection commands support JSON.
### Manage the local server
Ordinary commands start the project's server when needed. To control its lifetime:
```sh
aie start # Start or reuse; wait until ready
aie server status # Inspect process identity and active requests
aie start --idle-timeout-seconds 1800 # Configure idle shutdown for this instance
aie stop # Drain operations and stop; repeat safely
```
Each canonical project directory has its own automatically selected loopback port.
The default idle timeout is 30 minutes without active operations. A later command
can start a stopped server again. `aie status` keeps its engineering-status meaning.
Help, version and initialization run locally. The JVM JAR uses the same lifecycle
for development and diagnostics; the native package supplies the default runtime.
Pending commands receive output and state through SSE and report their request ID
on stderr. Immediate results return directly. `aie server request ID` inspects a
recoverable result; `aie server cancel ID` requests cooperative cancellation.
After a crash, an unknown mutation outcome requires inspecting effects before retrying.
See [server operation and recovery](docs/local-server.md) and the
[measured SSE results](docs/local-server-sse-results.md).
### Choose the next Work
`work list`, `status`, and `next-actions` accept `--format table|csv|markdown|json`.
@@ -293,6 +319,10 @@ Tests generate JUnit results and JaCoCo coverage. Open
| [EPIC coordination](docs/epics.md) | Relationships and completion policies across Works |
| [Local CLI adapters](docs/cli-adapters.md) | Provider setup and invocation contract |
| [Architecture](docs/architecture.md) | Module boundaries and implementation design |
| [Local server](docs/local-server.md) | Startup, shutdown, isolation, limits and recovery |
| [Native measurements](docs/local-server-results.md) | Reproducible startup, roundtrip and memory results |
| [SSE protocol](docs/local-server-sse.md) | Event delivery, cursors, reconnection and resource bounds |
| [SSE measurements](docs/local-server-sse-results.md) | Current native results and concurrent streaming workload |
| [Roadmap](docs/roadmap.md) | Implemented capabilities and planned work |
| [Verification notes](docs/experiments.md) | Recorded experiments and validation results |