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
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:
+31
-5
@@ -3,7 +3,8 @@
|
||||
AIE is a local engineering memory with two cycles: investigation/refinement and
|
||||
implementation, connected by DEC and Plan. OODA is adaptive; gates constrain delivery.
|
||||
The CLI records external observations and applies deterministic checks. It does not
|
||||
execute repository commands, operate a server or provide distributed collaboration.
|
||||
execute repository commands or provide distributed collaboration. A lightweight
|
||||
client communicates with an automatically managed local server for each project.
|
||||
|
||||
## Runtime and modules
|
||||
|
||||
@@ -13,6 +14,20 @@ GraalVM CE 25.5.5.0+3 is pinned in .sdkmanrc. Spring supplies process lifecycle
|
||||
services are ordinary Java classes with explicit project paths and no retained Work
|
||||
cache. Infrastructure stays outside immutable domain records.
|
||||
|
||||
AieLauncher handles client dispatch without opening Spring. The server starts a
|
||||
persistent Spring context and a bounded JDK HTTP listener. AiEngineeringApplication
|
||||
remains the Spring AOT application entry; the distribution uses AieLauncher and
|
||||
explicitly selects that AOT application when starting its server. Picocli parses
|
||||
prefixes and constructs the selected branch with fresh invocation objects; complete
|
||||
catalogs remain available for help and diagnostics.
|
||||
|
||||
Pending invocations subscribe to authenticated SSE; terminal immediate responses
|
||||
remain JSON. JobEvents retains a bounded replay window and publishes under the job
|
||||
monitor. SseStreams owns separate bounded writers and interrupts stalled socket
|
||||
writes. InvocationClient resumes with a cursor and verifies output offsets/prefixes;
|
||||
it never resubmits execution after a transport failure. Input and cancellation remain
|
||||
POST operations. See [event protocol](local-server-sse.md).
|
||||
|
||||
| Module | Owns | May depend on |
|
||||
|---|---|---|
|
||||
| filesystem | Codecs, paths, SQLite sessions/typed storage, atomic external files and locks | none |
|
||||
@@ -26,6 +41,7 @@ cache. Infrastructure stays outside immutable domain records.
|
||||
| legacyimport | Explicit DF preview/import, preserved originals and provenance | filesystem, project, work, discussion, artifact |
|
||||
| verification | Integrity/readiness, gates, snapshots, coordination, migration and context | protocol modules |
|
||||
| cli | Picocli commands and presentation | public module APIs |
|
||||
| localserver | Private process identity/locks, HTTP client/server, invocation jobs, durable outcomes | cli, filesystem, project |
|
||||
|
||||
ArchitectureTest enforces these boundaries. Work does not import Decision, Artifact
|
||||
or Verification. Verification coordinates across independently owned domains.
|
||||
@@ -43,6 +59,11 @@ bounded busy waits. Nested services share a transaction; failed nested mutations
|
||||
cannot be accidentally committed after an exception is caught. File-publication
|
||||
callbacks run after commit or rollback, after the connection closes.
|
||||
|
||||
The validated bootstrap choice is reused within that SQLite session, avoiding
|
||||
repeated configuration/manifest decoding under the publication fence. It expires
|
||||
with the transaction, never selects SQLite from file/connection existence, and
|
||||
does not cache domain records or approvals. There is no JDBC connection pool.
|
||||
|
||||
SqliteRecords maps trusted record components to typed scalar columns and ordered
|
||||
child rows. Composite operational values have a domain codec, not serialized file
|
||||
content. List presence preserves null versus empty, necessary for historical hashes.
|
||||
@@ -100,11 +121,16 @@ not removed. Details: [migration](storage-migration.md).
|
||||
|
||||
`nativePackage` builds AIE and the pinned SQLite diagnostic CLI with companion native
|
||||
libraries and a checksum manifest. Native hints cover operational records/resources.
|
||||
The candidate verifier creates a disposable database with native AIE and reads it
|
||||
with packaged sqlite3. Install preparation is distinct from activation: versioned
|
||||
The candidate verifier creates a disposable database with native AIE, reads it
|
||||
with packaged sqlite3, and verifies native server startup, build identity, command
|
||||
roundtrips, SSE/input/recovery/cancellation and shutdown. Install preparation is distinct from activation: versioned
|
||||
releases, a current symlink and shortcuts are switched only after verification.
|
||||
Installer tests use fake tools and disposable destinations. This Work did not run
|
||||
an actual installer or modify the active distribution or consumer projects.
|
||||
Installer tests use fake tools and disposable destinations. Build and verification
|
||||
do not activate the candidate distribution or modify consumer projects.
|
||||
|
||||
Local-server operational receipts live outside canonical memory; the database schema,
|
||||
historical formats and authority rules are unchanged. See [the protocol and operating
|
||||
limits](local-server.md) and [measured SSE results](local-server-sse-results.md).
|
||||
|
||||
Primary references: [SQLite JDBC native support](https://github.com/xerial/sqlite-jdbc#graalvm-native-image-support),
|
||||
[SQLite transactions](https://sqlite.org/lang_transaction.html),
|
||||
|
||||
@@ -0,0 +1,438 @@
|
||||
{
|
||||
"observedAt": "2026-11-22T20:09:27.588823+00:00",
|
||||
"environment": {
|
||||
"platform": "macOS-27.2.1-arm64-arm-64bit",
|
||||
"machine": "arm64",
|
||||
"logicalCpus": 10,
|
||||
"initialLoadAverage": [
|
||||
2.63427734375,
|
||||
2.87744140625,
|
||||
2.5302734375
|
||||
],
|
||||
"cpu": "Apple M2 Pro",
|
||||
"physicalMemoryBytes": "17179869184"
|
||||
},
|
||||
"method": {
|
||||
"works": 100,
|
||||
"notesPerWork": 10,
|
||||
"storage": "sqlite",
|
||||
"git": false,
|
||||
"provider": false,
|
||||
"freshClientPerSample": true,
|
||||
"percentile": "nearest rank",
|
||||
"cold": "process cold; OS file caches not flushed",
|
||||
"command": [
|
||||
"work",
|
||||
"show",
|
||||
"WRK-0064",
|
||||
"--format",
|
||||
"json"
|
||||
]
|
||||
},
|
||||
"candidate": {
|
||||
"path": "/Users/niltonconstantino/personal/workspace.personal/intrepid/ai-engineering/build/native/package/ai-engineering",
|
||||
"sha256": "0c360680bc0355bce8dedb3342d73aed73f0de7042ffe7c25755561b752f7ef7",
|
||||
"package": {
|
||||
"schemaVersion": 1,
|
||||
"aieVersion": "0.1.0",
|
||||
"protocolVersion": 4,
|
||||
"sqliteVersion": "3.54.1",
|
||||
"localServerProtocol": 1,
|
||||
"buildIdentity": "b1c5c0afb1ec3e1cfa26bb00069eefaaafa95feb898d3f6d42fdbab5a69ee3fe",
|
||||
"files": {
|
||||
"LICENSE": "975eef35ea2ca6532c53302a8bf202b99231cc7387ebbb022b1af1d58e4852b6",
|
||||
"README.md": "584c14e6eb74928674c75d1778a692157f63723aad1f51b949dca1055e04f136",
|
||||
"ai-engineering": "0c360680bc0355bce8dedb3342d73aed73f0de7042ffe7c25755561b752f7ef7",
|
||||
"docs/architecture.md": "64f6429677d8073f31d56882f42bed1fcab9820b1c6174026cf46149b90ffb5f",
|
||||
"docs/cli-adapters.md": "bbf42d7953cb3ff48e75f0ce2228d83afc87c5e10b69d02d555bcd25ca3e32e1",
|
||||
"docs/compatibility.md": "c127cb6440f561a976b696af5b99a9659da124a7151c170de3413e40cd377cfc",
|
||||
"docs/discussion-import.md": "de1e09cd8b576da796a6af7dd4b4c8bac6ec08d8cf3c21389155b0710cf5ecda",
|
||||
"docs/discussion-slice.md": "3aa8b75ddb6c7ba546740594d6709ba78fcffc553a63e0366cd6b56771eae1e5",
|
||||
"docs/epics.md": "67ea357a91f1fbe64330b1b5a4fd26432e846bd687f961e23e3deca6cb23ceba",
|
||||
"docs/experiments.md": "cf6ed18390d16f9483bb8a26f77b3ae040e1cabdc6570ab3300bb1bfb4cd2646",
|
||||
"docs/latency-scenario.md": "d98b5a16c00b6e97f2af33d736515252c39bfdb2ea0ca214c22efbba69ef1183",
|
||||
"docs/legacy-file-storage.md": "97613b0b58baf02f9c5ef31dfe95ee4b33ef742296c6d94ca3e660205b92d598",
|
||||
"docs/local-server.md": "26ab737dfa424a35eceffe25177a7b6b006e535e7ccf2c2df41eb97e69ad498e",
|
||||
"docs/plan-consolidation.md": "9fdc22aab9975e46bb67b1b1aefab0e71af3f069762770662e590483ae1a68cc",
|
||||
"docs/protocol.md": "c5bf6bf2d459312a3d92e477a1b43dcbdd86aa41c45bd5c10a314560df8a419a",
|
||||
"docs/roadmap.md": "b3f7d396ad9c4a41a8a02136529f628febf53c4bf2b97acb331668efb76dbeff",
|
||||
"docs/sqlite-migration-design.md": "21f775427602af06820e6fbeb4d08ff639c803bf923aa0277574df8b2a60488d",
|
||||
"docs/storage-migration.md": "ac54b7bd2c963367a47d488a32c16720154243378e82b10ba3b78209c8d16aad",
|
||||
"docs/work-guidance.md": "45e7934db455d427ac1374a1694707d8075ca80b63eef7e13b875e1531474562",
|
||||
"libawt.dylib": "c794235bd609c8ce066aa3d5b2a3dd5b99d40b5fcd595aceddf4f54051be5d24",
|
||||
"libawt_lwawt.dylib": "ff09e5e47be4b96c3560b42c890c851ff18e99ddf4d8085525a3244c0aeeba4e",
|
||||
"libfontmanager.dylib": "3b33fb98dc2937c495ca7833396ad1d613e261e5b6164115821915353ddcdde4",
|
||||
"libfreetype.dylib": "9a88ef02fe6522f024c2d1e2dee8c1dd053a8ab87d1f61d2b62ea1806b2b189d",
|
||||
"libjava.dylib": "465aac4cf94ccbd19c4849b89c61284b459c648ecc0f813e8452ad8c6905f444",
|
||||
"libjavajpeg.dylib": "9370b79daf271c2da78275baa782cfb987c49f0a554585fd35a9edf32211e716",
|
||||
"libjvm.dylib": "d535b761c960e4f4d1867fc2a977dbc28f7d8fb2a32d7db9bf478c56c175b71d",
|
||||
"liblcms.dylib": "8d554b5fdb043bb7daff0c305c4464e934387576cb64955b39889ff29a7b0c60",
|
||||
"libmlib_image.dylib": "e7d5a248aa7956f476aaba2483d7e7684406c3eff3c3984a2a5bba4f9e05fb30",
|
||||
"libosxapp.dylib": "18fbd74e41bad5e3cb4e6c1a212c75a9590aa863947d5edcdd3571aa5e550105",
|
||||
"libsqlitejdbc.dylib": "47fa68b43f34552fbfedeed25e82875a42cfd53e81c33c7cee20ac3f729c060e",
|
||||
"sqlite3": "440575f732a7ff117b604ddd87d742833685a3a6cb3faff414c258b87fc2204c"
|
||||
}
|
||||
}
|
||||
},
|
||||
"baseline": {
|
||||
"path": "/private/tmp/aie-wrk000e-baseline-package/ai-engineering",
|
||||
"sha256": "ba200c28e3ddc6d78668aecf5587524d718902fc6c5eeb607bbca07ee8947658",
|
||||
"version": "ai-engineering 0.1.0",
|
||||
"roundtrip": {
|
||||
"samples": 100,
|
||||
"minMs": 243.414709,
|
||||
"p50Ms": 249.232,
|
||||
"p95Ms": 256.384958,
|
||||
"maxMs": 276.045416,
|
||||
"rawMs": [
|
||||
253.460958,
|
||||
247.53425,
|
||||
250.855291,
|
||||
252.944958,
|
||||
250.76,
|
||||
250.65525,
|
||||
249.367625,
|
||||
252.943166,
|
||||
247.937416,
|
||||
247.2745,
|
||||
249.418375,
|
||||
276.045416,
|
||||
248.825959,
|
||||
257.40925,
|
||||
250.917583,
|
||||
250.205833,
|
||||
246.528083,
|
||||
243.860375,
|
||||
250.7645,
|
||||
250.044166,
|
||||
247.005875,
|
||||
248.437,
|
||||
250.989875,
|
||||
247.107917,
|
||||
248.397042,
|
||||
251.164166,
|
||||
250.855625,
|
||||
247.628542,
|
||||
250.839125,
|
||||
251.474416,
|
||||
251.775125,
|
||||
250.481792,
|
||||
251.594417,
|
||||
248.764583,
|
||||
245.628833,
|
||||
244.895375,
|
||||
243.526709,
|
||||
243.813916,
|
||||
253.859875,
|
||||
243.666459,
|
||||
243.414709,
|
||||
245.440208,
|
||||
255.717333,
|
||||
257.349834,
|
||||
254.672125,
|
||||
253.430625,
|
||||
255.106209,
|
||||
255.367083,
|
||||
253.738792,
|
||||
250.981917,
|
||||
254.152875,
|
||||
255.907625,
|
||||
256.452209,
|
||||
249.82225,
|
||||
251.442958,
|
||||
256.384958,
|
||||
254.785834,
|
||||
259.184292,
|
||||
250.725166,
|
||||
251.165458,
|
||||
246.640708,
|
||||
245.890666,
|
||||
250.517833,
|
||||
247.548083,
|
||||
249.804167,
|
||||
246.921209,
|
||||
247.379542,
|
||||
245.696875,
|
||||
245.823333,
|
||||
247.739792,
|
||||
247.041042,
|
||||
251.131208,
|
||||
245.954833,
|
||||
246.143125,
|
||||
249.546916,
|
||||
250.519167,
|
||||
246.057583,
|
||||
246.0765,
|
||||
247.93425,
|
||||
251.197083,
|
||||
248.855125,
|
||||
246.107417,
|
||||
248.090958,
|
||||
249.096375,
|
||||
248.9735,
|
||||
249.902791,
|
||||
249.659458,
|
||||
247.771667,
|
||||
245.787209,
|
||||
244.618709,
|
||||
248.1785,
|
||||
247.551958,
|
||||
247.265042,
|
||||
246.208875,
|
||||
248.308375,
|
||||
249.624125,
|
||||
245.449083,
|
||||
245.749958,
|
||||
247.325167,
|
||||
248.211708
|
||||
]
|
||||
}
|
||||
},
|
||||
"fixture": {
|
||||
"version": "ai-engineering 0.1.0",
|
||||
"binary": "/Users/niltonconstantino/personal/workspace.personal/intrepid/ai-engineering/build/native/package/ai-engineering",
|
||||
"binarySha256": "0c360680bc0355bce8dedb3342d73aed73f0de7042ffe7c25755561b752f7ef7",
|
||||
"platform": "macOS-27.2.1-arm64-arm-64bit",
|
||||
"machine": "arm64",
|
||||
"storage": "sqlite",
|
||||
"works": 100,
|
||||
"entriesPerWork": 10,
|
||||
"selectedWork": "WRK-0064",
|
||||
"measurementPerformed": false
|
||||
},
|
||||
"readiness": {
|
||||
"samples": 10,
|
||||
"minMs": 270.474584,
|
||||
"p50Ms": 297.444521,
|
||||
"p95Ms": 307.406166,
|
||||
"maxMs": 307.406166,
|
||||
"rawMs": [
|
||||
270.474584,
|
||||
297.465,
|
||||
306.412375,
|
||||
307.406166,
|
||||
288.557541,
|
||||
294.88075,
|
||||
297.424042,
|
||||
303.892958,
|
||||
295.419,
|
||||
303.751958
|
||||
]
|
||||
},
|
||||
"firstUse": {
|
||||
"samples": 10,
|
||||
"minMs": 718.810958,
|
||||
"p50Ms": 727.360708,
|
||||
"p95Ms": 758.715417,
|
||||
"maxMs": 758.715417,
|
||||
"rawMs": [
|
||||
758.715417,
|
||||
728.198291,
|
||||
730.21775,
|
||||
732.192958,
|
||||
726.523125,
|
||||
728.715167,
|
||||
722.615667,
|
||||
726.064416,
|
||||
718.810958,
|
||||
724.243583
|
||||
]
|
||||
},
|
||||
"warm": {
|
||||
"samples": 100,
|
||||
"minMs": 599.206041,
|
||||
"p50Ms": 621.7846460000001,
|
||||
"p95Ms": 652.347541,
|
||||
"maxMs": 670.564208,
|
||||
"rawMs": [
|
||||
641.382792,
|
||||
635.421625,
|
||||
636.44975,
|
||||
628.610542,
|
||||
637.319917,
|
||||
640.229708,
|
||||
641.501583,
|
||||
623.680125,
|
||||
637.978208,
|
||||
640.96375,
|
||||
634.2935,
|
||||
626.224166,
|
||||
639.844334,
|
||||
640.969458,
|
||||
634.38325,
|
||||
634.171875,
|
||||
670.564208,
|
||||
656.990833,
|
||||
654.89275,
|
||||
662.157333,
|
||||
647.789667,
|
||||
651.245958,
|
||||
653.977833,
|
||||
626.660542,
|
||||
616.85925,
|
||||
623.365416,
|
||||
622.049667,
|
||||
652.347541,
|
||||
630.473208,
|
||||
627.341291,
|
||||
621.357,
|
||||
621.036166,
|
||||
617.587708,
|
||||
618.867,
|
||||
619.630583,
|
||||
621.714333,
|
||||
618.821208,
|
||||
616.668875,
|
||||
622.186792,
|
||||
620.419875,
|
||||
616.205875,
|
||||
618.786959,
|
||||
617.924625,
|
||||
605.393292,
|
||||
606.733791,
|
||||
621.340916,
|
||||
620.093458,
|
||||
618.730459,
|
||||
618.803166,
|
||||
621.718333,
|
||||
627.430167,
|
||||
634.81675,
|
||||
629.812958,
|
||||
618.897291,
|
||||
620.678167,
|
||||
615.395167,
|
||||
620.096709,
|
||||
621.898084,
|
||||
619.884666,
|
||||
616.880125,
|
||||
617.377292,
|
||||
624.740583,
|
||||
626.348417,
|
||||
619.614917,
|
||||
628.931583,
|
||||
631.439834,
|
||||
650.049458,
|
||||
647.832291,
|
||||
622.691417,
|
||||
619.821416,
|
||||
619.749208,
|
||||
603.352917,
|
||||
610.881958,
|
||||
623.378541,
|
||||
615.418667,
|
||||
622.208917,
|
||||
618.207583,
|
||||
616.284,
|
||||
622.625041,
|
||||
612.51825,
|
||||
619.217125,
|
||||
624.190208,
|
||||
631.766917,
|
||||
622.846459,
|
||||
619.75775,
|
||||
621.850959,
|
||||
617.246958,
|
||||
612.323834,
|
||||
620.303292,
|
||||
620.114458,
|
||||
618.352416,
|
||||
617.691167,
|
||||
617.720875,
|
||||
622.782625,
|
||||
622.794458,
|
||||
614.317333,
|
||||
617.770125,
|
||||
615.237041,
|
||||
599.206041,
|
||||
606.190541
|
||||
]
|
||||
},
|
||||
"memory": [
|
||||
{
|
||||
"projects": 1,
|
||||
"processes": [
|
||||
{
|
||||
"pid": 29395,
|
||||
"rssMiB": 40.953125
|
||||
}
|
||||
],
|
||||
"totalRssMiB": 40.953125
|
||||
},
|
||||
{
|
||||
"projects": 5,
|
||||
"processes": [
|
||||
{
|
||||
"pid": 29395,
|
||||
"rssMiB": 40.984375
|
||||
},
|
||||
{
|
||||
"pid": 29400,
|
||||
"rssMiB": 87.984375
|
||||
},
|
||||
{
|
||||
"pid": 29403,
|
||||
"rssMiB": 87.828125
|
||||
},
|
||||
{
|
||||
"pid": 29406,
|
||||
"rssMiB": 87.953125
|
||||
},
|
||||
{
|
||||
"pid": 29409,
|
||||
"rssMiB": 87.796875
|
||||
}
|
||||
],
|
||||
"totalRssMiB": 392.546875
|
||||
},
|
||||
{
|
||||
"projects": 10,
|
||||
"processes": [
|
||||
{
|
||||
"pid": 29395,
|
||||
"rssMiB": 41.03125
|
||||
},
|
||||
{
|
||||
"pid": 29400,
|
||||
"rssMiB": 87.96875
|
||||
},
|
||||
{
|
||||
"pid": 29403,
|
||||
"rssMiB": 87.8125
|
||||
},
|
||||
{
|
||||
"pid": 29406,
|
||||
"rssMiB": 87.9375
|
||||
},
|
||||
{
|
||||
"pid": 29409,
|
||||
"rssMiB": 87.78125
|
||||
},
|
||||
{
|
||||
"pid": 29423,
|
||||
"rssMiB": 88.515625
|
||||
},
|
||||
{
|
||||
"pid": 29426,
|
||||
"rssMiB": 87.9375
|
||||
},
|
||||
{
|
||||
"pid": 29429,
|
||||
"rssMiB": 87.96875
|
||||
},
|
||||
{
|
||||
"pid": 29432,
|
||||
"rssMiB": 88.0
|
||||
},
|
||||
{
|
||||
"pid": 29435,
|
||||
"rssMiB": 88.234375
|
||||
}
|
||||
],
|
||||
"totalRssMiB": 833.1875
|
||||
}
|
||||
],
|
||||
"acceptance": {
|
||||
"warmP95AtMost100Ms": false,
|
||||
"allReadinessAtMost1000Ms": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,440 @@
|
||||
{
|
||||
"observedAt": "2026-11-22T21:05:40.551988+00:00",
|
||||
"environment": {
|
||||
"platform": "macOS-27.2.1-arm64-arm-64bit",
|
||||
"machine": "arm64",
|
||||
"logicalCpus": 10,
|
||||
"initialLoadAverage": [
|
||||
5.93603515625,
|
||||
4.7822265625,
|
||||
3.5390625
|
||||
],
|
||||
"cpu": "Apple M2 Pro",
|
||||
"physicalMemoryBytes": "17179869184"
|
||||
},
|
||||
"method": {
|
||||
"works": 100,
|
||||
"notesPerWork": 10,
|
||||
"storage": "sqlite",
|
||||
"git": false,
|
||||
"provider": false,
|
||||
"freshClientPerSample": true,
|
||||
"percentile": "nearest rank",
|
||||
"cold": "process cold; OS file caches not flushed",
|
||||
"copiedFixture": "/private/tmp/aie-wrk000e-benchmark-1/nominal",
|
||||
"command": [
|
||||
"work",
|
||||
"show",
|
||||
"WRK-0064",
|
||||
"--format",
|
||||
"json"
|
||||
],
|
||||
"memoryWorkload": "Fresh server then work show per project; first project has 100 Works/1000 notes, remaining projects one Work each. Summed process RSS, shared pages may be counted repeatedly."
|
||||
},
|
||||
"candidate": {
|
||||
"path": "/Users/niltonconstantino/personal/workspace.personal/intrepid/ai-engineering/build/native/package/ai-engineering",
|
||||
"sha256": "4764f522935d8fdb1600f5a925e845ddb62689a4743a9e17f8eb433347d1e8c2",
|
||||
"package": {
|
||||
"schemaVersion": 1,
|
||||
"aieVersion": "0.1.0",
|
||||
"protocolVersion": 4,
|
||||
"sqliteVersion": "3.54.1",
|
||||
"localServerProtocol": 1,
|
||||
"buildIdentity": "79f2d2b1a929f76c59d3214ffe55a635e87ab9f536e3f8c28f88438f2a421747",
|
||||
"files": {
|
||||
"LICENSE": "975eef35ea2ca6532c53302a8bf202b99231cc7387ebbb022b1af1d58e4852b6",
|
||||
"README.md": "584c14e6eb74928674c75d1778a692157f63723aad1f51b949dca1055e04f136",
|
||||
"ai-engineering": "4764f522935d8fdb1600f5a925e845ddb62689a4743a9e17f8eb433347d1e8c2",
|
||||
"docs/architecture.md": "64f6429677d8073f31d56882f42bed1fcab9820b1c6174026cf46149b90ffb5f",
|
||||
"docs/cli-adapters.md": "bbf42d7953cb3ff48e75f0ce2228d83afc87c5e10b69d02d555bcd25ca3e32e1",
|
||||
"docs/compatibility.md": "c127cb6440f561a976b696af5b99a9659da124a7151c170de3413e40cd377cfc",
|
||||
"docs/discussion-import.md": "de1e09cd8b576da796a6af7dd4b4c8bac6ec08d8cf3c21389155b0710cf5ecda",
|
||||
"docs/discussion-slice.md": "3aa8b75ddb6c7ba546740594d6709ba78fcffc553a63e0366cd6b56771eae1e5",
|
||||
"docs/epics.md": "67ea357a91f1fbe64330b1b5a4fd26432e846bd687f961e23e3deca6cb23ceba",
|
||||
"docs/experiments.md": "cf6ed18390d16f9483bb8a26f77b3ae040e1cabdc6570ab3300bb1bfb4cd2646",
|
||||
"docs/latency-scenario.md": "d98b5a16c00b6e97f2af33d736515252c39bfdb2ea0ca214c22efbba69ef1183",
|
||||
"docs/legacy-file-storage.md": "97613b0b58baf02f9c5ef31dfe95ee4b33ef742296c6d94ca3e660205b92d598",
|
||||
"docs/local-server.md": "26ab737dfa424a35eceffe25177a7b6b006e535e7ccf2c2df41eb97e69ad498e",
|
||||
"docs/plan-consolidation.md": "9fdc22aab9975e46bb67b1b1aefab0e71af3f069762770662e590483ae1a68cc",
|
||||
"docs/protocol.md": "c5bf6bf2d459312a3d92e477a1b43dcbdd86aa41c45bd5c10a314560df8a419a",
|
||||
"docs/roadmap.md": "b3f7d396ad9c4a41a8a02136529f628febf53c4bf2b97acb331668efb76dbeff",
|
||||
"docs/sqlite-migration-design.md": "21f775427602af06820e6fbeb4d08ff639c803bf923aa0277574df8b2a60488d",
|
||||
"docs/storage-migration.md": "ac54b7bd2c963367a47d488a32c16720154243378e82b10ba3b78209c8d16aad",
|
||||
"docs/work-guidance.md": "45e7934db455d427ac1374a1694707d8075ca80b63eef7e13b875e1531474562",
|
||||
"libawt.dylib": "c794235bd609c8ce066aa3d5b2a3dd5b99d40b5fcd595aceddf4f54051be5d24",
|
||||
"libawt_lwawt.dylib": "ff09e5e47be4b96c3560b42c890c851ff18e99ddf4d8085525a3244c0aeeba4e",
|
||||
"libfontmanager.dylib": "3b33fb98dc2937c495ca7833396ad1d613e261e5b6164115821915353ddcdde4",
|
||||
"libfreetype.dylib": "9a88ef02fe6522f024c2d1e2dee8c1dd053a8ab87d1f61d2b62ea1806b2b189d",
|
||||
"libjava.dylib": "465aac4cf94ccbd19c4849b89c61284b459c648ecc0f813e8452ad8c6905f444",
|
||||
"libjavajpeg.dylib": "9370b79daf271c2da78275baa782cfb987c49f0a554585fd35a9edf32211e716",
|
||||
"libjvm.dylib": "d535b761c960e4f4d1867fc2a977dbc28f7d8fb2a32d7db9bf478c56c175b71d",
|
||||
"liblcms.dylib": "8d554b5fdb043bb7daff0c305c4464e934387576cb64955b39889ff29a7b0c60",
|
||||
"libmlib_image.dylib": "e7d5a248aa7956f476aaba2483d7e7684406c3eff3c3984a2a5bba4f9e05fb30",
|
||||
"libosxapp.dylib": "18fbd74e41bad5e3cb4e6c1a212c75a9590aa863947d5edcdd3571aa5e550105",
|
||||
"libsqlitejdbc.dylib": "47fa68b43f34552fbfedeed25e82875a42cfd53e81c33c7cee20ac3f729c060e",
|
||||
"sqlite3": "440575f732a7ff117b604ddd87d742833685a3a6cb3faff414c258b87fc2204c"
|
||||
}
|
||||
}
|
||||
},
|
||||
"baseline": {
|
||||
"path": "/private/tmp/aie-wrk000e-baseline-package/ai-engineering",
|
||||
"sha256": "ba200c28e3ddc6d78668aecf5587524d718902fc6c5eeb607bbca07ee8947658",
|
||||
"version": "ai-engineering 0.1.0",
|
||||
"roundtrip": {
|
||||
"samples": 100,
|
||||
"minMs": 247.445416,
|
||||
"p50Ms": 252.974063,
|
||||
"p95Ms": 261.317167,
|
||||
"maxMs": 304.625167,
|
||||
"rawMs": [
|
||||
268.521708,
|
||||
254.163208,
|
||||
256.5805,
|
||||
261.317167,
|
||||
261.239666,
|
||||
253.7125,
|
||||
257.63675,
|
||||
256.982542,
|
||||
267.667291,
|
||||
275.230333,
|
||||
304.625167,
|
||||
258.132,
|
||||
258.471917,
|
||||
259.315084,
|
||||
258.914041,
|
||||
259.164042,
|
||||
257.749292,
|
||||
262.5925,
|
||||
258.094667,
|
||||
257.1155,
|
||||
259.613375,
|
||||
253.663459,
|
||||
257.907166,
|
||||
255.933375,
|
||||
252.463625,
|
||||
253.408792,
|
||||
255.750458,
|
||||
253.95325,
|
||||
253.314583,
|
||||
257.598625,
|
||||
256.163916,
|
||||
251.938834,
|
||||
253.836416,
|
||||
251.739417,
|
||||
259.45825,
|
||||
256.917875,
|
||||
253.146458,
|
||||
251.406209,
|
||||
252.231542,
|
||||
253.109917,
|
||||
260.89875,
|
||||
257.021667,
|
||||
249.817,
|
||||
253.119375,
|
||||
255.144666,
|
||||
252.735417,
|
||||
255.235792,
|
||||
253.881875,
|
||||
247.609333,
|
||||
253.901875,
|
||||
258.764708,
|
||||
253.395709,
|
||||
251.726,
|
||||
251.737917,
|
||||
260.889166,
|
||||
256.221375,
|
||||
249.932084,
|
||||
250.57375,
|
||||
253.190459,
|
||||
249.324666,
|
||||
250.355708,
|
||||
250.061625,
|
||||
252.521708,
|
||||
251.533917,
|
||||
251.143,
|
||||
249.875917,
|
||||
251.143125,
|
||||
249.146625,
|
||||
249.2565,
|
||||
250.736,
|
||||
252.253917,
|
||||
252.331083,
|
||||
249.038334,
|
||||
251.9965,
|
||||
248.102125,
|
||||
253.843042,
|
||||
253.604666,
|
||||
250.204083,
|
||||
248.605334,
|
||||
250.113792,
|
||||
251.64275,
|
||||
249.621666,
|
||||
251.095542,
|
||||
249.856709,
|
||||
249.101167,
|
||||
248.752667,
|
||||
250.381458,
|
||||
249.596791,
|
||||
248.69575,
|
||||
248.897709,
|
||||
251.597042,
|
||||
249.719542,
|
||||
251.313083,
|
||||
247.445416,
|
||||
250.167083,
|
||||
250.555209,
|
||||
250.437209,
|
||||
254.228291,
|
||||
252.838209,
|
||||
249.669208
|
||||
]
|
||||
}
|
||||
},
|
||||
"fixture": {
|
||||
"version": "ai-engineering 0.1.0",
|
||||
"binary": "/Users/niltonconstantino/personal/workspace.personal/intrepid/ai-engineering/build/native/package/ai-engineering",
|
||||
"binarySha256": "0c360680bc0355bce8dedb3342d73aed73f0de7042ffe7c25755561b752f7ef7",
|
||||
"platform": "macOS-27.2.1-arm64-arm-64bit",
|
||||
"machine": "arm64",
|
||||
"storage": "sqlite",
|
||||
"works": 100,
|
||||
"entriesPerWork": 10,
|
||||
"selectedWork": "WRK-0064",
|
||||
"measurementPerformed": false
|
||||
},
|
||||
"readiness": {
|
||||
"samples": 10,
|
||||
"minMs": 282.047083,
|
||||
"p50Ms": 285.55010400000003,
|
||||
"p95Ms": 291.382583,
|
||||
"maxMs": 291.382583,
|
||||
"rawMs": [
|
||||
283.0605,
|
||||
285.501125,
|
||||
285.599083,
|
||||
287.131917,
|
||||
284.372167,
|
||||
291.382583,
|
||||
287.331959,
|
||||
282.047083,
|
||||
285.464584,
|
||||
289.92775
|
||||
]
|
||||
},
|
||||
"firstUse": {
|
||||
"samples": 10,
|
||||
"minMs": 100.095708,
|
||||
"p50Ms": 111.2676455,
|
||||
"p95Ms": 113.496833,
|
||||
"maxMs": 113.496833,
|
||||
"rawMs": [
|
||||
112.433709,
|
||||
113.496833,
|
||||
111.254208,
|
||||
111.281083,
|
||||
112.570084,
|
||||
108.870625,
|
||||
100.095708,
|
||||
106.646417,
|
||||
105.978834,
|
||||
111.470458
|
||||
]
|
||||
},
|
||||
"warm": {
|
||||
"samples": 100,
|
||||
"minMs": 26.557542,
|
||||
"p50Ms": 35.218104,
|
||||
"p95Ms": 41.14075,
|
||||
"maxMs": 42.382333,
|
||||
"rawMs": [
|
||||
33.88125,
|
||||
36.989583,
|
||||
34.185625,
|
||||
29.017625,
|
||||
27.42275,
|
||||
28.245041,
|
||||
29.785333,
|
||||
29.249541,
|
||||
28.716958,
|
||||
30.025958,
|
||||
30.989417,
|
||||
29.065208,
|
||||
29.590458,
|
||||
36.089584,
|
||||
30.737875,
|
||||
26.557542,
|
||||
31.29225,
|
||||
32.926042,
|
||||
33.800708,
|
||||
34.699875,
|
||||
33.855541,
|
||||
34.618083,
|
||||
31.49375,
|
||||
35.277584,
|
||||
32.1785,
|
||||
33.593083,
|
||||
31.66925,
|
||||
33.369875,
|
||||
34.948667,
|
||||
35.501875,
|
||||
35.512917,
|
||||
35.540625,
|
||||
36.302042,
|
||||
32.873209,
|
||||
31.992708,
|
||||
33.572792,
|
||||
31.732875,
|
||||
30.520917,
|
||||
32.404167,
|
||||
33.450208,
|
||||
32.768791,
|
||||
34.907958,
|
||||
35.174709,
|
||||
33.51675,
|
||||
33.488041,
|
||||
31.866125,
|
||||
40.012125,
|
||||
36.609209,
|
||||
34.749792,
|
||||
35.063667,
|
||||
35.200666,
|
||||
33.954875,
|
||||
34.587375,
|
||||
35.932417,
|
||||
35.235542,
|
||||
42.052709,
|
||||
36.228166,
|
||||
40.43725,
|
||||
40.294458,
|
||||
35.560459,
|
||||
33.457584,
|
||||
37.474333,
|
||||
34.867917,
|
||||
36.002583,
|
||||
34.254167,
|
||||
34.740208,
|
||||
36.901667,
|
||||
35.502666,
|
||||
37.060042,
|
||||
38.721458,
|
||||
36.296792,
|
||||
41.23625,
|
||||
36.4405,
|
||||
35.404042,
|
||||
38.128375,
|
||||
37.312917,
|
||||
37.402708,
|
||||
38.815875,
|
||||
41.14075,
|
||||
37.794,
|
||||
40.049333,
|
||||
36.435208,
|
||||
38.26925,
|
||||
36.971208,
|
||||
39.96675,
|
||||
35.615459,
|
||||
36.847042,
|
||||
41.504542,
|
||||
37.211541,
|
||||
40.59225,
|
||||
38.550666,
|
||||
42.23325,
|
||||
36.535041,
|
||||
42.382333,
|
||||
37.893375,
|
||||
38.973959,
|
||||
34.611125,
|
||||
33.259667,
|
||||
36.928208,
|
||||
37.128541
|
||||
]
|
||||
},
|
||||
"memory": [
|
||||
{
|
||||
"projects": 1,
|
||||
"processes": [
|
||||
{
|
||||
"pid": 31132,
|
||||
"rssMiB": 48.515625
|
||||
}
|
||||
],
|
||||
"totalRssMiB": 48.515625
|
||||
},
|
||||
{
|
||||
"projects": 5,
|
||||
"processes": [
|
||||
{
|
||||
"pid": 31132,
|
||||
"rssMiB": 48.546875
|
||||
},
|
||||
{
|
||||
"pid": 31142,
|
||||
"rssMiB": 48.578125
|
||||
},
|
||||
{
|
||||
"pid": 31150,
|
||||
"rssMiB": 48.546875
|
||||
},
|
||||
{
|
||||
"pid": 31157,
|
||||
"rssMiB": 48.53125
|
||||
},
|
||||
{
|
||||
"pid": 31165,
|
||||
"rssMiB": 48.484375
|
||||
}
|
||||
],
|
||||
"totalRssMiB": 242.6875
|
||||
},
|
||||
{
|
||||
"projects": 10,
|
||||
"processes": [
|
||||
{
|
||||
"pid": 31132,
|
||||
"rssMiB": 48.59375
|
||||
},
|
||||
{
|
||||
"pid": 31142,
|
||||
"rssMiB": 48.609375
|
||||
},
|
||||
{
|
||||
"pid": 31150,
|
||||
"rssMiB": 48.578125
|
||||
},
|
||||
{
|
||||
"pid": 31157,
|
||||
"rssMiB": 48.5625
|
||||
},
|
||||
{
|
||||
"pid": 31165,
|
||||
"rssMiB": 48.515625
|
||||
},
|
||||
{
|
||||
"pid": 31182,
|
||||
"rssMiB": 48.484375
|
||||
},
|
||||
{
|
||||
"pid": 31189,
|
||||
"rssMiB": 48.515625
|
||||
},
|
||||
{
|
||||
"pid": 31196,
|
||||
"rssMiB": 48.46875
|
||||
},
|
||||
{
|
||||
"pid": 31203,
|
||||
"rssMiB": 48.5625
|
||||
},
|
||||
{
|
||||
"pid": 31230,
|
||||
"rssMiB": 48.578125
|
||||
}
|
||||
],
|
||||
"totalRssMiB": 485.46875
|
||||
}
|
||||
],
|
||||
"acceptance": {
|
||||
"warmP95AtMost100Ms": true,
|
||||
"allReadinessAtMost1000Ms": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
{
|
||||
"platform": "macOS-27.2.1-arm64-arm-64bit",
|
||||
"binarySha256": "4c825e3a4477256160494f8d18bd428bdc1a6d0e734fdaf510bd7782826ee420",
|
||||
"buildIdentity": "d0216aa7622b5f099c02986c32bef2acf909ad6888e08647a75ad9f85533d050",
|
||||
"method": "Input POST start to first subsequent stdout/input/terminal SSE event, including command work and control response; no human think time.",
|
||||
"concurrentStreams": 4,
|
||||
"questionsPerStream": 10,
|
||||
"fixture": {
|
||||
"version": "ai-engineering 0.1.0",
|
||||
"binary": "/Users/niltonconstantino/personal/workspace.personal/intrepid/ai-engineering/build/native/package/ai-engineering",
|
||||
"binarySha256": "0c360680bc0355bce8dedb3342d73aed73f0de7042ffe7c25755561b752f7ef7",
|
||||
"platform": "macOS-27.2.1-arm64-arm-64bit",
|
||||
"machine": "arm64",
|
||||
"storage": "sqlite",
|
||||
"works": 100,
|
||||
"entriesPerWork": 10,
|
||||
"selectedWork": "WRK-0064",
|
||||
"measurementPerformed": false
|
||||
},
|
||||
"queriesWithStreams": {
|
||||
"samples": 100,
|
||||
"p50Ms": 36.908916500000004,
|
||||
"p95Ms": 42.287042,
|
||||
"maxMs": 54.370083,
|
||||
"rawMs": [
|
||||
29.061625,
|
||||
30.812708,
|
||||
35.137042,
|
||||
34.391625,
|
||||
35.152833,
|
||||
34.681458,
|
||||
32.974583,
|
||||
33.143334,
|
||||
37.213333,
|
||||
34.241666,
|
||||
37.68025,
|
||||
36.714542,
|
||||
37.758125,
|
||||
32.081542,
|
||||
34.110875,
|
||||
31.506125,
|
||||
36.67975,
|
||||
33.72975,
|
||||
37.643833,
|
||||
37.384542,
|
||||
33.227125,
|
||||
33.860416,
|
||||
34.583125,
|
||||
33.560166,
|
||||
34.626417,
|
||||
36.974208,
|
||||
54.370083,
|
||||
40.227459,
|
||||
36.065959,
|
||||
40.296625,
|
||||
42.965458,
|
||||
42.287042,
|
||||
39.87025,
|
||||
38.923,
|
||||
46.087208,
|
||||
37.147625,
|
||||
38.708667,
|
||||
38.212667,
|
||||
37.192959,
|
||||
35.6235,
|
||||
37.727416,
|
||||
37.290583,
|
||||
36.60575,
|
||||
38.346625,
|
||||
35.897041,
|
||||
36.751292,
|
||||
36.336167,
|
||||
38.390833,
|
||||
35.607792,
|
||||
38.6025,
|
||||
34.587375,
|
||||
33.771542,
|
||||
34.986458,
|
||||
32.811625,
|
||||
34.311,
|
||||
32.764541,
|
||||
35.361167,
|
||||
33.825958,
|
||||
37.112583,
|
||||
35.865667,
|
||||
36.8035,
|
||||
38.546875,
|
||||
38.119041,
|
||||
38.014334,
|
||||
37.472916,
|
||||
36.977459,
|
||||
37.405541,
|
||||
38.740042,
|
||||
40.783709,
|
||||
40.740708,
|
||||
43.048875,
|
||||
42.629,
|
||||
37.59925,
|
||||
36.089625,
|
||||
33.967708,
|
||||
35.899042,
|
||||
36.072958,
|
||||
35.907917,
|
||||
32.952916,
|
||||
31.429917,
|
||||
32.08325,
|
||||
32.594541,
|
||||
32.516583,
|
||||
36.769208,
|
||||
37.71525,
|
||||
36.843625,
|
||||
39.13525,
|
||||
37.269959,
|
||||
38.642625,
|
||||
39.363833,
|
||||
38.671875,
|
||||
40.129,
|
||||
39.107125,
|
||||
36.684209,
|
||||
38.883333,
|
||||
38.262291,
|
||||
38.091459,
|
||||
39.192541,
|
||||
40.813125,
|
||||
40.971
|
||||
]
|
||||
},
|
||||
"rssWithStreamsMiB": 63.0625,
|
||||
"failure": "Native SSE job failed: COMPLETED exit=4 stderr=Project publication is busy; local writer wait exceeded 2000 ms\n"
|
||||
}
|
||||
@@ -0,0 +1,244 @@
|
||||
{
|
||||
"platform": "macOS-27.2.1-arm64-arm-64bit",
|
||||
"binarySha256": "2fa0f168bfb8e1ba11edbcd5cdda2a6b150726f86d9c11e77ee26c21ce7fc887",
|
||||
"buildIdentity": "c891da8913045080a02d7b977a259d097e30864a5487e230d0ec7d5d4e78daff",
|
||||
"method": "Input POST start to first subsequent stdout/input/terminal SSE event, including command work and control response; no human think time.",
|
||||
"concurrentStreams": 4,
|
||||
"questionsPerStream": 10,
|
||||
"fixture": {
|
||||
"version": "ai-engineering 0.1.0",
|
||||
"binary": "/Users/niltonconstantino/personal/workspace.personal/intrepid/ai-engineering/build/native/package/ai-engineering",
|
||||
"binarySha256": "0c360680bc0355bce8dedb3342d73aed73f0de7042ffe7c25755561b752f7ef7",
|
||||
"platform": "macOS-27.2.1-arm64-arm-64bit",
|
||||
"machine": "arm64",
|
||||
"storage": "sqlite",
|
||||
"works": 100,
|
||||
"entriesPerWork": 10,
|
||||
"selectedWork": "WRK-0064",
|
||||
"measurementPerformed": false
|
||||
},
|
||||
"queriesWithStreams": {
|
||||
"samples": 100,
|
||||
"p50Ms": 44.939021,
|
||||
"p95Ms": 55.1795,
|
||||
"maxMs": 62.78025,
|
||||
"rawMs": [
|
||||
28.76975,
|
||||
29.987667,
|
||||
34.436833,
|
||||
33.418125,
|
||||
32.68275,
|
||||
32.851834,
|
||||
33.036,
|
||||
33.84675,
|
||||
36.752292,
|
||||
41.603583,
|
||||
42.806416,
|
||||
56.994542,
|
||||
42.976417,
|
||||
42.95225,
|
||||
45.03725,
|
||||
37.020375,
|
||||
35.761708,
|
||||
33.717209,
|
||||
34.224291,
|
||||
35.327,
|
||||
39.704708,
|
||||
34.02625,
|
||||
33.536916,
|
||||
36.447041,
|
||||
40.812459,
|
||||
44.840792,
|
||||
44.118708,
|
||||
51.321875,
|
||||
46.081875,
|
||||
43.322375,
|
||||
44.472917,
|
||||
48.500417,
|
||||
45.077125,
|
||||
42.26125,
|
||||
46.487334,
|
||||
46.109,
|
||||
45.715625,
|
||||
47.799042,
|
||||
45.607292,
|
||||
62.78025,
|
||||
49.805792,
|
||||
48.930291,
|
||||
50.6305,
|
||||
45.726041,
|
||||
48.121625,
|
||||
52.496792,
|
||||
55.1795,
|
||||
56.541833,
|
||||
51.401459,
|
||||
48.596625,
|
||||
47.12175,
|
||||
50.265292,
|
||||
46.533125,
|
||||
51.594209,
|
||||
49.8065,
|
||||
50.667583,
|
||||
50.429458,
|
||||
48.414625,
|
||||
44.264417,
|
||||
42.545958,
|
||||
39.16125,
|
||||
38.935208,
|
||||
40.905625,
|
||||
42.612917,
|
||||
45.348792,
|
||||
46.701167,
|
||||
42.857208,
|
||||
46.396667,
|
||||
50.000833,
|
||||
52.979667,
|
||||
51.240292,
|
||||
47.554334,
|
||||
45.697791,
|
||||
46.023958,
|
||||
42.536417,
|
||||
39.550959,
|
||||
36.817542,
|
||||
39.571083,
|
||||
42.350417,
|
||||
35.259083,
|
||||
37.168458,
|
||||
35.837,
|
||||
39.118208,
|
||||
38.462333,
|
||||
38.162916,
|
||||
41.72625,
|
||||
43.378834,
|
||||
47.599583,
|
||||
44.220416,
|
||||
44.505459,
|
||||
47.966667,
|
||||
49.48375,
|
||||
49.536625,
|
||||
48.56825,
|
||||
54.346083,
|
||||
51.56225,
|
||||
56.096375,
|
||||
49.904917,
|
||||
49.791625,
|
||||
55.821958
|
||||
]
|
||||
},
|
||||
"rssWithStreamsMiB": 63.703125,
|
||||
"jobs": [
|
||||
{
|
||||
"events": 104,
|
||||
"inputToEventMs": [
|
||||
128.174917,
|
||||
429.247417,
|
||||
444.289333,
|
||||
451.0225,
|
||||
464.951709,
|
||||
473.534208,
|
||||
486.40725,
|
||||
500.553125,
|
||||
520.214583,
|
||||
532.23025
|
||||
],
|
||||
"stdoutSha256": "931bd0cd851a4b422e2c7066a689601ab6a88a62c70d9015d3b4f614944b8786"
|
||||
},
|
||||
{
|
||||
"events": 104,
|
||||
"inputToEventMs": [
|
||||
235.451542,
|
||||
435.689666,
|
||||
442.981666,
|
||||
453.538916,
|
||||
465.441084,
|
||||
478.091375,
|
||||
489.298541,
|
||||
506.608042,
|
||||
525.012583,
|
||||
537.225666
|
||||
],
|
||||
"stdoutSha256": "931bd0cd851a4b422e2c7066a689601ab6a88a62c70d9015d3b4f614944b8786"
|
||||
},
|
||||
{
|
||||
"events": 104,
|
||||
"inputToEventMs": [
|
||||
344.050542,
|
||||
437.069834,
|
||||
444.476667,
|
||||
457.928542,
|
||||
468.600833,
|
||||
482.400584,
|
||||
491.982916,
|
||||
511.669375,
|
||||
525.532417,
|
||||
542.435416
|
||||
],
|
||||
"stdoutSha256": "931bd0cd851a4b422e2c7066a689601ab6a88a62c70d9015d3b4f614944b8786"
|
||||
},
|
||||
{
|
||||
"events": 104,
|
||||
"inputToEventMs": [
|
||||
451.012875,
|
||||
441.048666,
|
||||
447.26875,
|
||||
463.7365,
|
||||
468.111042,
|
||||
484.093,
|
||||
498.831,
|
||||
515.019542,
|
||||
529.620667,
|
||||
543.795083
|
||||
],
|
||||
"stdoutSha256": "931bd0cd851a4b422e2c7066a689601ab6a88a62c70d9015d3b4f614944b8786"
|
||||
}
|
||||
],
|
||||
"inputToEvent": {
|
||||
"samples": 40,
|
||||
"p50Ms": 471.0675205,
|
||||
"p95Ms": 537.225666,
|
||||
"maxMs": 543.795083,
|
||||
"rawMs": [
|
||||
128.174917,
|
||||
429.247417,
|
||||
444.289333,
|
||||
451.0225,
|
||||
464.951709,
|
||||
473.534208,
|
||||
486.40725,
|
||||
500.553125,
|
||||
520.214583,
|
||||
532.23025,
|
||||
235.451542,
|
||||
435.689666,
|
||||
442.981666,
|
||||
453.538916,
|
||||
465.441084,
|
||||
478.091375,
|
||||
489.298541,
|
||||
506.608042,
|
||||
525.012583,
|
||||
537.225666,
|
||||
344.050542,
|
||||
437.069834,
|
||||
444.476667,
|
||||
457.928542,
|
||||
468.600833,
|
||||
482.400584,
|
||||
491.982916,
|
||||
511.669375,
|
||||
525.532417,
|
||||
542.435416,
|
||||
451.012875,
|
||||
441.048666,
|
||||
447.26875,
|
||||
463.7365,
|
||||
468.111042,
|
||||
484.093,
|
||||
498.831,
|
||||
515.019542,
|
||||
529.620667,
|
||||
543.795083
|
||||
]
|
||||
},
|
||||
"cancellationVerified": true
|
||||
}
|
||||
@@ -0,0 +1,599 @@
|
||||
{
|
||||
"observedAt": "2026-11-22T22:34:13.785795+00:00",
|
||||
"environment": {
|
||||
"platform": "macOS-27.2.1-arm64-arm-64bit",
|
||||
"machine": "arm64",
|
||||
"logicalCpus": 10,
|
||||
"initialLoadAverage": [
|
||||
3.5703125,
|
||||
4.8671875,
|
||||
4.8251953125
|
||||
],
|
||||
"cpu": "Apple M2 Pro",
|
||||
"physicalMemoryBytes": "17179869184"
|
||||
},
|
||||
"method": {
|
||||
"works": 100,
|
||||
"notesPerWork": 10,
|
||||
"storage": "sqlite",
|
||||
"git": false,
|
||||
"provider": false,
|
||||
"freshClientPerSample": true,
|
||||
"percentile": "nearest rank",
|
||||
"cold": "process cold; OS file caches not flushed",
|
||||
"copiedFixture": "/private/tmp/aie-wrk000e-benchmark-1/nominal",
|
||||
"command": [
|
||||
"work",
|
||||
"show",
|
||||
"WRK-0064",
|
||||
"--format",
|
||||
"json"
|
||||
],
|
||||
"memoryWorkload": "Fresh server then work show per project; first project has 100 Works/1000 notes, remaining projects one Work each. Summed process RSS, shared pages may be counted repeatedly."
|
||||
},
|
||||
"candidate": {
|
||||
"path": "/Users/niltonconstantino/personal/workspace.personal/intrepid/ai-engineering/build/native/package/ai-engineering",
|
||||
"sha256": "2fa0f168bfb8e1ba11edbcd5cdda2a6b150726f86d9c11e77ee26c21ce7fc887",
|
||||
"package": {
|
||||
"schemaVersion": 1,
|
||||
"aieVersion": "0.1.0",
|
||||
"protocolVersion": 4,
|
||||
"sqliteVersion": "3.54.1",
|
||||
"localServerProtocol": 1,
|
||||
"localServerEvents": "sse",
|
||||
"buildIdentity": "c891da8913045080a02d7b977a259d097e30864a5487e230d0ec7d5d4e78daff",
|
||||
"files": {
|
||||
"LICENSE": "975eef35ea2ca6532c53302a8bf202b99231cc7387ebbb022b1af1d58e4852b6",
|
||||
"README.md": "79b01d93a0c639d727894db6c5040790c5ee05aa0885d2533617d148fcab4f96",
|
||||
"ai-engineering": "2fa0f168bfb8e1ba11edbcd5cdda2a6b150726f86d9c11e77ee26c21ce7fc887",
|
||||
"docs/architecture.md": "d84f7716ce7ad7da107c41cfa0e453047f72ee8291991373c82175bf7e6b445c",
|
||||
"docs/benchmarks/local-server-initial.json": "5a5df4ed04754cfe53ec4f18ded72dcd0821603601f1dd38f6188b80bb164bd6",
|
||||
"docs/benchmarks/local-server-native.json": "c2091eac03c9c7d0fd1654ca38df679161bf9d0f1deee7231d51c4fd74ae43dd",
|
||||
"docs/cli-adapters.md": "bbf42d7953cb3ff48e75f0ce2228d83afc87c5e10b69d02d555bcd25ca3e32e1",
|
||||
"docs/compatibility.md": "c127cb6440f561a976b696af5b99a9659da124a7151c170de3413e40cd377cfc",
|
||||
"docs/discussion-import.md": "de1e09cd8b576da796a6af7dd4b4c8bac6ec08d8cf3c21389155b0710cf5ecda",
|
||||
"docs/discussion-slice.md": "3aa8b75ddb6c7ba546740594d6709ba78fcffc553a63e0366cd6b56771eae1e5",
|
||||
"docs/epics.md": "67ea357a91f1fbe64330b1b5a4fd26432e846bd687f961e23e3deca6cb23ceba",
|
||||
"docs/experiments.md": "cf6ed18390d16f9483bb8a26f77b3ae040e1cabdc6570ab3300bb1bfb4cd2646",
|
||||
"docs/latency-scenario.md": "5f4d5591b18d6694982396f82ea5c1112cc9a3ea1abd8335bfcf91d5d2a1acf6",
|
||||
"docs/legacy-file-storage.md": "97613b0b58baf02f9c5ef31dfe95ee4b33ef742296c6d94ca3e660205b92d598",
|
||||
"docs/local-server-results.md": "eee82ffe4cc7f4b631be89fe54d4a278e8a95ce74cd80981ec1396a4339a46a2",
|
||||
"docs/local-server-sse.md": "2ecf3cc6feb85d53778f1441db43faf0e9bfbb7f7a48c3bc4f50fe93aac447a1",
|
||||
"docs/local-server.md": "f726ca6c9ef65d3534ea6c9b69e8298f4207df255746ea254d1d12881e823628",
|
||||
"docs/plan-consolidation.md": "9fdc22aab9975e46bb67b1b1aefab0e71af3f069762770662e590483ae1a68cc",
|
||||
"docs/protocol.md": "c5bf6bf2d459312a3d92e477a1b43dcbdd86aa41c45bd5c10a314560df8a419a",
|
||||
"docs/roadmap.md": "b3f7d396ad9c4a41a8a02136529f628febf53c4bf2b97acb331668efb76dbeff",
|
||||
"docs/sqlite-migration-design.md": "21f775427602af06820e6fbeb4d08ff639c803bf923aa0277574df8b2a60488d",
|
||||
"docs/storage-migration.md": "ac54b7bd2c963367a47d488a32c16720154243378e82b10ba3b78209c8d16aad",
|
||||
"docs/work-guidance.md": "45e7934db455d427ac1374a1694707d8075ca80b63eef7e13b875e1531474562",
|
||||
"libawt.dylib": "c794235bd609c8ce066aa3d5b2a3dd5b99d40b5fcd595aceddf4f54051be5d24",
|
||||
"libawt_lwawt.dylib": "ff09e5e47be4b96c3560b42c890c851ff18e99ddf4d8085525a3244c0aeeba4e",
|
||||
"libfontmanager.dylib": "3b33fb98dc2937c495ca7833396ad1d613e261e5b6164115821915353ddcdde4",
|
||||
"libfreetype.dylib": "9a88ef02fe6522f024c2d1e2dee8c1dd053a8ab87d1f61d2b62ea1806b2b189d",
|
||||
"libjava.dylib": "465aac4cf94ccbd19c4849b89c61284b459c648ecc0f813e8452ad8c6905f444",
|
||||
"libjavajpeg.dylib": "9370b79daf271c2da78275baa782cfb987c49f0a554585fd35a9edf32211e716",
|
||||
"libjvm.dylib": "d535b761c960e4f4d1867fc2a977dbc28f7d8fb2a32d7db9bf478c56c175b71d",
|
||||
"liblcms.dylib": "8d554b5fdb043bb7daff0c305c4464e934387576cb64955b39889ff29a7b0c60",
|
||||
"libmlib_image.dylib": "e7d5a248aa7956f476aaba2483d7e7684406c3eff3c3984a2a5bba4f9e05fb30",
|
||||
"libosxapp.dylib": "18fbd74e41bad5e3cb4e6c1a212c75a9590aa863947d5edcdd3571aa5e550105",
|
||||
"libsqlitejdbc.dylib": "47fa68b43f34552fbfedeed25e82875a42cfd53e81c33c7cee20ac3f729c060e",
|
||||
"sqlite3": "440575f732a7ff117b604ddd87d742833685a3a6cb3faff414c258b87fc2204c"
|
||||
}
|
||||
}
|
||||
},
|
||||
"baseline": {
|
||||
"path": "/private/tmp/aie-wrk000e-baseline-package/ai-engineering",
|
||||
"sha256": "ba200c28e3ddc6d78668aecf5587524d718902fc6c5eeb607bbca07ee8947658",
|
||||
"version": "ai-engineering 0.1.0",
|
||||
"roundtrip": {
|
||||
"samples": 100,
|
||||
"minMs": 245.154708,
|
||||
"p50Ms": 248.1353335,
|
||||
"p95Ms": 252.225,
|
||||
"maxMs": 297.107416,
|
||||
"rawMs": [
|
||||
252.045584,
|
||||
248.051541,
|
||||
245.702,
|
||||
249.352958,
|
||||
247.76325,
|
||||
245.338459,
|
||||
247.057625,
|
||||
247.6025,
|
||||
249.966792,
|
||||
247.881167,
|
||||
248.051208,
|
||||
249.223959,
|
||||
248.307875,
|
||||
249.361166,
|
||||
248.009375,
|
||||
249.421042,
|
||||
249.524042,
|
||||
247.167375,
|
||||
248.129958,
|
||||
249.7405,
|
||||
252.521084,
|
||||
248.329208,
|
||||
249.882125,
|
||||
249.121459,
|
||||
248.769542,
|
||||
252.225,
|
||||
246.79025,
|
||||
247.251375,
|
||||
245.154708,
|
||||
245.525417,
|
||||
247.197541,
|
||||
248.008583,
|
||||
248.605166,
|
||||
246.947291,
|
||||
247.286542,
|
||||
247.399666,
|
||||
249.042459,
|
||||
247.314,
|
||||
247.341875,
|
||||
249.119292,
|
||||
246.808375,
|
||||
245.478875,
|
||||
245.816125,
|
||||
250.391458,
|
||||
247.9555,
|
||||
247.242916,
|
||||
251.236625,
|
||||
249.777958,
|
||||
248.468208,
|
||||
248.485791,
|
||||
247.744292,
|
||||
247.068625,
|
||||
248.588875,
|
||||
250.362041,
|
||||
248.637791,
|
||||
246.075208,
|
||||
249.188708,
|
||||
248.140709,
|
||||
249.313,
|
||||
248.675625,
|
||||
246.043625,
|
||||
247.238292,
|
||||
263.43525,
|
||||
257.094083,
|
||||
249.968959,
|
||||
248.012209,
|
||||
249.166709,
|
||||
249.219709,
|
||||
248.290792,
|
||||
248.350125,
|
||||
246.845125,
|
||||
248.723167,
|
||||
248.073958,
|
||||
248.776125,
|
||||
246.788958,
|
||||
251.191875,
|
||||
249.24725,
|
||||
246.333375,
|
||||
247.315334,
|
||||
246.071542,
|
||||
250.410042,
|
||||
249.084292,
|
||||
247.372958,
|
||||
246.984542,
|
||||
247.194083,
|
||||
247.142208,
|
||||
247.239875,
|
||||
246.797584,
|
||||
250.116083,
|
||||
252.378541,
|
||||
246.629417,
|
||||
248.9465,
|
||||
248.83925,
|
||||
247.309959,
|
||||
246.2065,
|
||||
297.107416,
|
||||
249.736625,
|
||||
247.423667,
|
||||
245.738166,
|
||||
248.331583
|
||||
]
|
||||
}
|
||||
},
|
||||
"fixture": {
|
||||
"version": "ai-engineering 0.1.0",
|
||||
"binary": "/Users/niltonconstantino/personal/workspace.personal/intrepid/ai-engineering/build/native/package/ai-engineering",
|
||||
"binarySha256": "0c360680bc0355bce8dedb3342d73aed73f0de7042ffe7c25755561b752f7ef7",
|
||||
"platform": "macOS-27.2.1-arm64-arm-64bit",
|
||||
"machine": "arm64",
|
||||
"storage": "sqlite",
|
||||
"works": 100,
|
||||
"entriesPerWork": 10,
|
||||
"selectedWork": "WRK-0064",
|
||||
"measurementPerformed": false
|
||||
},
|
||||
"readiness": {
|
||||
"samples": 10,
|
||||
"minMs": 279.354541,
|
||||
"p50Ms": 284.5805415,
|
||||
"p95Ms": 289.952334,
|
||||
"maxMs": 289.952334,
|
||||
"rawMs": [
|
||||
289.952334,
|
||||
281.8995,
|
||||
285.948041,
|
||||
283.171875,
|
||||
286.641917,
|
||||
286.5895,
|
||||
283.213042,
|
||||
279.872959,
|
||||
289.282,
|
||||
279.354541
|
||||
]
|
||||
},
|
||||
"firstUse": {
|
||||
"samples": 10,
|
||||
"minMs": 110.338834,
|
||||
"p50Ms": 114.1799375,
|
||||
"p95Ms": 147.844083,
|
||||
"maxMs": 147.844083,
|
||||
"rawMs": [
|
||||
120.2665,
|
||||
110.6965,
|
||||
110.883167,
|
||||
122.842125,
|
||||
112.405083,
|
||||
110.338834,
|
||||
147.844083,
|
||||
118.626958,
|
||||
115.954792,
|
||||
110.828666
|
||||
]
|
||||
},
|
||||
"warm": {
|
||||
"samples": 100,
|
||||
"minMs": 33.537625,
|
||||
"p50Ms": 43.9224375,
|
||||
"p95Ms": 52.730458,
|
||||
"maxMs": 99.280542,
|
||||
"rawMs": [
|
||||
34.481667,
|
||||
36.241958,
|
||||
33.717791,
|
||||
35.211041,
|
||||
40.031291,
|
||||
51.585333,
|
||||
56.2185,
|
||||
58.282291,
|
||||
51.727625,
|
||||
49.40725,
|
||||
99.280542,
|
||||
49.367208,
|
||||
50.964584,
|
||||
56.786417,
|
||||
47.983667,
|
||||
50.743708,
|
||||
38.514916,
|
||||
40.215584,
|
||||
44.014792,
|
||||
41.886625,
|
||||
39.79825,
|
||||
42.414708,
|
||||
43.093042,
|
||||
42.825291,
|
||||
46.515458,
|
||||
47.277708,
|
||||
44.157292,
|
||||
52.114208,
|
||||
49.488041,
|
||||
42.305292,
|
||||
44.416167,
|
||||
52.090917,
|
||||
45.6385,
|
||||
49.675375,
|
||||
49.939,
|
||||
42.854958,
|
||||
46.137334,
|
||||
47.519917,
|
||||
39.545,
|
||||
41.859667,
|
||||
35.3645,
|
||||
37.961,
|
||||
40.782292,
|
||||
43.062916,
|
||||
48.203583,
|
||||
45.259792,
|
||||
50.854542,
|
||||
41.31675,
|
||||
40.385709,
|
||||
43.830083,
|
||||
36.761917,
|
||||
37.224792,
|
||||
36.573834,
|
||||
40.969125,
|
||||
68.0515,
|
||||
39.994833,
|
||||
41.051042,
|
||||
42.957333,
|
||||
42.428042,
|
||||
43.560542,
|
||||
48.143333,
|
||||
47.445042,
|
||||
44.286541,
|
||||
47.78575,
|
||||
45.193333,
|
||||
39.918917,
|
||||
40.87525,
|
||||
40.816459,
|
||||
47.281917,
|
||||
48.187,
|
||||
46.691584,
|
||||
48.802458,
|
||||
45.130208,
|
||||
52.730458,
|
||||
48.521458,
|
||||
48.77825,
|
||||
47.306333,
|
||||
49.6775,
|
||||
39.340042,
|
||||
40.246916,
|
||||
44.368917,
|
||||
46.550375,
|
||||
45.618875,
|
||||
42.819459,
|
||||
39.3795,
|
||||
45.284542,
|
||||
45.089958,
|
||||
42.67825,
|
||||
37.763958,
|
||||
35.98575,
|
||||
35.276709,
|
||||
33.537625,
|
||||
37.561958,
|
||||
38.99925,
|
||||
41.129208,
|
||||
39.546958,
|
||||
41.598334,
|
||||
43.69275,
|
||||
47.036291,
|
||||
46.059625
|
||||
]
|
||||
},
|
||||
"serverBaseline": {
|
||||
"path": "/private/tmp/aie-sse-baseline-package/ai-engineering",
|
||||
"sha256": "4764f522935d8fdb1600f5a925e845ddb62689a4743a9e17f8eb433347d1e8c2",
|
||||
"package": {
|
||||
"schemaVersion": 1,
|
||||
"aieVersion": "0.1.0",
|
||||
"protocolVersion": 4,
|
||||
"sqliteVersion": "3.54.1",
|
||||
"localServerProtocol": 1,
|
||||
"buildIdentity": "79f2d2b1a929f76c59d3214ffe55a635e87ab9f536e3f8c28f88438f2a421747",
|
||||
"files": {
|
||||
"LICENSE": "975eef35ea2ca6532c53302a8bf202b99231cc7387ebbb022b1af1d58e4852b6",
|
||||
"README.md": "584c14e6eb74928674c75d1778a692157f63723aad1f51b949dca1055e04f136",
|
||||
"ai-engineering": "4764f522935d8fdb1600f5a925e845ddb62689a4743a9e17f8eb433347d1e8c2",
|
||||
"docs/architecture.md": "64f6429677d8073f31d56882f42bed1fcab9820b1c6174026cf46149b90ffb5f",
|
||||
"docs/cli-adapters.md": "bbf42d7953cb3ff48e75f0ce2228d83afc87c5e10b69d02d555bcd25ca3e32e1",
|
||||
"docs/compatibility.md": "c127cb6440f561a976b696af5b99a9659da124a7151c170de3413e40cd377cfc",
|
||||
"docs/discussion-import.md": "de1e09cd8b576da796a6af7dd4b4c8bac6ec08d8cf3c21389155b0710cf5ecda",
|
||||
"docs/discussion-slice.md": "3aa8b75ddb6c7ba546740594d6709ba78fcffc553a63e0366cd6b56771eae1e5",
|
||||
"docs/epics.md": "67ea357a91f1fbe64330b1b5a4fd26432e846bd687f961e23e3deca6cb23ceba",
|
||||
"docs/experiments.md": "cf6ed18390d16f9483bb8a26f77b3ae040e1cabdc6570ab3300bb1bfb4cd2646",
|
||||
"docs/latency-scenario.md": "d98b5a16c00b6e97f2af33d736515252c39bfdb2ea0ca214c22efbba69ef1183",
|
||||
"docs/legacy-file-storage.md": "97613b0b58baf02f9c5ef31dfe95ee4b33ef742296c6d94ca3e660205b92d598",
|
||||
"docs/local-server.md": "26ab737dfa424a35eceffe25177a7b6b006e535e7ccf2c2df41eb97e69ad498e",
|
||||
"docs/plan-consolidation.md": "9fdc22aab9975e46bb67b1b1aefab0e71af3f069762770662e590483ae1a68cc",
|
||||
"docs/protocol.md": "c5bf6bf2d459312a3d92e477a1b43dcbdd86aa41c45bd5c10a314560df8a419a",
|
||||
"docs/roadmap.md": "b3f7d396ad9c4a41a8a02136529f628febf53c4bf2b97acb331668efb76dbeff",
|
||||
"docs/sqlite-migration-design.md": "21f775427602af06820e6fbeb4d08ff639c803bf923aa0277574df8b2a60488d",
|
||||
"docs/storage-migration.md": "ac54b7bd2c963367a47d488a32c16720154243378e82b10ba3b78209c8d16aad",
|
||||
"docs/work-guidance.md": "45e7934db455d427ac1374a1694707d8075ca80b63eef7e13b875e1531474562",
|
||||
"libawt.dylib": "c794235bd609c8ce066aa3d5b2a3dd5b99d40b5fcd595aceddf4f54051be5d24",
|
||||
"libawt_lwawt.dylib": "ff09e5e47be4b96c3560b42c890c851ff18e99ddf4d8085525a3244c0aeeba4e",
|
||||
"libfontmanager.dylib": "3b33fb98dc2937c495ca7833396ad1d613e261e5b6164115821915353ddcdde4",
|
||||
"libfreetype.dylib": "9a88ef02fe6522f024c2d1e2dee8c1dd053a8ab87d1f61d2b62ea1806b2b189d",
|
||||
"libjava.dylib": "465aac4cf94ccbd19c4849b89c61284b459c648ecc0f813e8452ad8c6905f444",
|
||||
"libjavajpeg.dylib": "9370b79daf271c2da78275baa782cfb987c49f0a554585fd35a9edf32211e716",
|
||||
"libjvm.dylib": "d535b761c960e4f4d1867fc2a977dbc28f7d8fb2a32d7db9bf478c56c175b71d",
|
||||
"liblcms.dylib": "8d554b5fdb043bb7daff0c305c4464e934387576cb64955b39889ff29a7b0c60",
|
||||
"libmlib_image.dylib": "e7d5a248aa7956f476aaba2483d7e7684406c3eff3c3984a2a5bba4f9e05fb30",
|
||||
"libosxapp.dylib": "18fbd74e41bad5e3cb4e6c1a212c75a9590aa863947d5edcdd3571aa5e550105",
|
||||
"libsqlitejdbc.dylib": "47fa68b43f34552fbfedeed25e82875a42cfd53e81c33c7cee20ac3f729c060e",
|
||||
"sqlite3": "440575f732a7ff117b604ddd87d742833685a3a6cb3faff414c258b87fc2204c"
|
||||
}
|
||||
},
|
||||
"roundtrip": {
|
||||
"samples": 100,
|
||||
"minMs": 35.376542,
|
||||
"p50Ms": 50.244063,
|
||||
"p95Ms": 56.969417,
|
||||
"maxMs": 60.157083,
|
||||
"rawMs": [
|
||||
42.715416,
|
||||
39.09525,
|
||||
38.239209,
|
||||
37.035166,
|
||||
37.447917,
|
||||
39.666,
|
||||
41.215583,
|
||||
45.441875,
|
||||
47.381792,
|
||||
46.277791,
|
||||
48.657334,
|
||||
52.255459,
|
||||
47.425167,
|
||||
50.080083,
|
||||
57.620042,
|
||||
54.5475,
|
||||
51.618916,
|
||||
48.505875,
|
||||
46.306958,
|
||||
53.5165,
|
||||
51.731833,
|
||||
51.088667,
|
||||
47.873125,
|
||||
51.439334,
|
||||
52.454333,
|
||||
53.671583,
|
||||
48.833541,
|
||||
55.405333,
|
||||
50.291584,
|
||||
50.477709,
|
||||
55.7595,
|
||||
49.025541,
|
||||
51.199458,
|
||||
49.88725,
|
||||
55.038583,
|
||||
60.157083,
|
||||
52.494875,
|
||||
54.252292,
|
||||
56.969417,
|
||||
54.592458,
|
||||
49.5385,
|
||||
54.764916,
|
||||
54.187416,
|
||||
54.269625,
|
||||
54.390375,
|
||||
48.321416,
|
||||
53.511042,
|
||||
59.531208,
|
||||
49.600208,
|
||||
49.828584,
|
||||
52.10675,
|
||||
42.941834,
|
||||
42.966208,
|
||||
42.001584,
|
||||
48.53,
|
||||
53.9495,
|
||||
49.582875,
|
||||
57.546792,
|
||||
53.727834,
|
||||
58.162792,
|
||||
54.521667,
|
||||
47.934875,
|
||||
49.674209,
|
||||
56.507,
|
||||
48.376917,
|
||||
51.598292,
|
||||
51.293416,
|
||||
52.109375,
|
||||
53.021542,
|
||||
48.891875,
|
||||
53.835333,
|
||||
50.164333,
|
||||
50.185334,
|
||||
50.196542,
|
||||
45.999125,
|
||||
52.37525,
|
||||
51.912958,
|
||||
47.918292,
|
||||
48.870417,
|
||||
54.110667,
|
||||
50.764125,
|
||||
42.50375,
|
||||
42.017959,
|
||||
43.11375,
|
||||
35.376542,
|
||||
38.646292,
|
||||
41.034875,
|
||||
40.318333,
|
||||
42.526875,
|
||||
46.629167,
|
||||
45.452791,
|
||||
49.651583,
|
||||
53.920833,
|
||||
51.994417,
|
||||
50.58725,
|
||||
50.946959,
|
||||
48.99525,
|
||||
52.794167,
|
||||
54.237625,
|
||||
55.123417
|
||||
]
|
||||
}
|
||||
},
|
||||
"memory": [
|
||||
{
|
||||
"projects": 1,
|
||||
"processes": [
|
||||
{
|
||||
"pid": 45168,
|
||||
"rssMiB": 48.609375
|
||||
}
|
||||
],
|
||||
"totalRssMiB": 48.609375
|
||||
},
|
||||
{
|
||||
"projects": 5,
|
||||
"processes": [
|
||||
{
|
||||
"pid": 45168,
|
||||
"rssMiB": 48.640625
|
||||
},
|
||||
{
|
||||
"pid": 45177,
|
||||
"rssMiB": 48.453125
|
||||
},
|
||||
{
|
||||
"pid": 45185,
|
||||
"rssMiB": 48.546875
|
||||
},
|
||||
{
|
||||
"pid": 45192,
|
||||
"rssMiB": 48.515625
|
||||
},
|
||||
{
|
||||
"pid": 45199,
|
||||
"rssMiB": 48.46875
|
||||
}
|
||||
],
|
||||
"totalRssMiB": 242.625
|
||||
},
|
||||
{
|
||||
"projects": 10,
|
||||
"processes": [
|
||||
{
|
||||
"pid": 45168,
|
||||
"rssMiB": 48.6875
|
||||
},
|
||||
{
|
||||
"pid": 45177,
|
||||
"rssMiB": 48.484375
|
||||
},
|
||||
{
|
||||
"pid": 45185,
|
||||
"rssMiB": 48.578125
|
||||
},
|
||||
{
|
||||
"pid": 45192,
|
||||
"rssMiB": 48.546875
|
||||
},
|
||||
{
|
||||
"pid": 45199,
|
||||
"rssMiB": 48.5
|
||||
},
|
||||
{
|
||||
"pid": 45216,
|
||||
"rssMiB": 48.53125
|
||||
},
|
||||
{
|
||||
"pid": 45224,
|
||||
"rssMiB": 48.46875
|
||||
},
|
||||
{
|
||||
"pid": 45231,
|
||||
"rssMiB": 48.4375
|
||||
},
|
||||
{
|
||||
"pid": 45238,
|
||||
"rssMiB": 48.578125
|
||||
},
|
||||
{
|
||||
"pid": 45247,
|
||||
"rssMiB": 48.515625
|
||||
}
|
||||
],
|
||||
"totalRssMiB": 485.328125
|
||||
}
|
||||
],
|
||||
"acceptance": {
|
||||
"warmP95AtMost100Ms": true,
|
||||
"allReadinessAtMost1000Ms": true
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,9 @@
|
||||
# WRK-000C measurement handoff
|
||||
# Historical WRK-000C measurement handoff
|
||||
|
||||
SQLite adoption does not close the latency ticket. This scenario prepares comparable
|
||||
WRK-000C was cancelled by Nilton; WRK-000E implements the local-server model and
|
||||
records [native SSE measurements](local-server-sse-results.md). The scenario below preserves
|
||||
the earlier backend-comparison handoff; it is not the accepted server benchmark.
|
||||
SQLite adoption alone did not establish latency results. This scenario prepares comparable
|
||||
local datasets; it makes no performance claim and was not run as a benchmark in
|
||||
WRK-000D. Use the same final executable/package, machine and source revision for
|
||||
both backends. Keep companion libraries beside the executable.
|
||||
@@ -31,5 +34,5 @@ Use no registered Git repositories first, then measure their contribution separa
|
||||
Do not mix migration, integrity repair, network/provider calls or fixture generation
|
||||
into query timing. The current physical native verification used macOS arm64 and
|
||||
GraalVM CE 25.5.5.0+3 with SQLite JDBC 3.54.1.0 / sqlite3 3.54.1; other machines need
|
||||
their own recorded environment. WRK-000C remains OPEN until actual measurements and
|
||||
responsiveness criteria justify its decision and implementation.
|
||||
their own recorded environment. The historical instructions do not reopen WRK-000C
|
||||
or replace WRK-000E's accepted scenario and measured results.
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
# Native local-server measurements
|
||||
|
||||
These historical PLN-0001 measurements cover the initial polling implementation.
|
||||
The delivered SSE implementation is measured separately in [SSE results](local-server-sse-results.md).
|
||||
|
||||
WRK-000E / PLN-0001 measured on 2026-11-22, Apple M2 Pro (10 logical CPUs),
|
||||
16 GiB RAM, macOS 27.2.1 arm64. Native GraalVM CE 25.5.5.0+3, Java 25,
|
||||
Spring Boot 4.0.9 and SQLite JDBC 3.54.1.0. These are observations on this machine.
|
||||
|
||||
| Operation | Samples | Median | p95 | Maximum |
|
||||
|---|---:|---:|---:|---:|
|
||||
| Fresh native client, ready server, `work show` | 100 | 35.22 ms | 41.14 ms | 42.38 ms |
|
||||
| Manual `start` through readiness | 10 | 285.55 ms | 291.38 ms | 291.38 ms |
|
||||
| Automatic first `work show`, server stopped | 10 | 111.27 ms | 113.50 ms | 113.50 ms |
|
||||
| Preserved native baseline, Spring per invocation | 100 | 252.97 ms | 261.32 ms | 304.63 ms |
|
||||
|
||||
Both accepted targets passed: ready-server p95 <=100 ms and readiness <=1 second
|
||||
in every measured start. The ready-server p95 was about 6.4 times faster than the
|
||||
baseline. The baseline is the complete native package preserved before this Work,
|
||||
not a JVM comparison. No Rust implementation or DI migration was benchmarked.
|
||||
|
||||
The initial server implementation failed: ready-server p95 was 652.35 ms.
|
||||
Constructing the entire annotated Picocli command graph repeatedly dominated the
|
||||
cost. The implementation now parses prefixes with Picocli and constructs only
|
||||
the selected branch, with fresh command objects; full catalogs remain available
|
||||
for help and unknown-command diagnostics. EXP-0001 records the refutation and
|
||||
EXP-0002 records the reconsideration and successful repeat.
|
||||
|
||||
The dataset contains 100 synthetic Works and 10 notes per Work in SQLite, created
|
||||
through public commands. No Git repository or provider/network activity is involved.
|
||||
The second experiment copied the stopped original fixture without operational server
|
||||
state. Each timed query checked that its JSON matched the baseline. Ten ready-server
|
||||
warmups preceded 100 independent client processes. Times use Python's monotonic
|
||||
clock, include process launch/transport/queue/operation/output capture, and exclude
|
||||
terminal rendering. p95 uses nearest rank. Process-cold starts do not flush OS caches.
|
||||
Manual `start` includes its management parser; automatic first use takes a shorter
|
||||
path. Server readiness alone does not promise a particular application's operation cost.
|
||||
|
||||
After a fresh start and one `work show` per server, summed resident memory was:
|
||||
|
||||
| Active project servers | Total process RSS |
|
||||
|---|---:|
|
||||
| 1 | 48.52 MiB |
|
||||
| 5 | 242.69 MiB |
|
||||
| 10 | 485.47 MiB |
|
||||
|
||||
The first project contains the nominal dataset; the additional projects contain one
|
||||
Work each. RSS is an idle snapshot after that read, not peak memory or proportional
|
||||
memory; shared pages can be counted repeatedly. Large outputs and provider jobs
|
||||
need separate workload measurements. All fixture servers were stopped afterward.
|
||||
|
||||
Raw samples, initial load average, package component hashes, binary paths and fixture
|
||||
provenance are retained in [the accepted run](benchmarks/local-server-native.json)
|
||||
and [the initial run](benchmarks/local-server-initial.json). The accepted build ID is
|
||||
`79f2d2b1a929f76c59d3214ffe55a635e87ab9f536e3f8c28f88438f2a421747`;
|
||||
native binary SHA-256 is
|
||||
`4764f522935d8fdb1600f5a925e845ddb62689a4743a9e17f8eb433347d1e8c2`.
|
||||
|
||||
To reproduce with new disposable directories and a preserved baseline package:
|
||||
|
||||
```sh
|
||||
python3 scripts/server-benchmark.py \
|
||||
--binary build/native/package/ai-engineering \
|
||||
--baseline /path/to/preserved-package/ai-engineering \
|
||||
--directory /tmp/aie-server-benchmark-new \
|
||||
--output /tmp/aie-server-benchmark-new.json --samples 100 --starts 10
|
||||
```
|
||||
|
||||
Fixture generation is separate from timed operations. `--fixture PATH` can copy a
|
||||
previously generated, stopped synthetic dataset. A failed target returns nonzero;
|
||||
the script still retains its results and stops the disposable servers.
|
||||
|
||||
Verification at the PLN-0001 checkpoint: `./gradlew check` passed 248 tests with no
|
||||
failures or skips and the 11 Jenkins pipeline fixture scenarios. The complete
|
||||
native smoke, native package verifier and 17 disposable installer tests passed.
|
||||
Work/project integrity, shell/Python syntax, documentation links and diff checks
|
||||
passed. Fixture servers were stopped. The measured binary/build hashes still
|
||||
matched that checkpoint's candidate package; the active user installation was not changed.
|
||||
@@ -0,0 +1,103 @@
|
||||
# Native SSE results
|
||||
|
||||
WRK-000E / DEC-0002 / PLN-0002 measured on 2026-11-22, Apple M2 Pro, 10 logical
|
||||
CPUs, 16 GiB RAM, macOS 27.2.1 arm64. GraalVM CE 25.5.5.0+3 / Java 25,
|
||||
Spring Boot 4.0.9 and SQLite JDBC 3.54.1.0 remain unchanged. No Rust port, DI
|
||||
migration or JDBC pool is part of this change.
|
||||
|
||||
| Operation | Samples | Median | p95 | Maximum |
|
||||
|---|---:|---:|---:|---:|
|
||||
| Fresh client, ready server, `work show` | 100 | 43.92 ms | 52.73 ms | 99.28 ms |
|
||||
| Manual `start` to readiness | 10 | 284.58 ms | 289.95 ms | 289.95 ms |
|
||||
| Automatic first `work show`, server stopped | 10 | 114.18 ms | 147.84 ms | 147.84 ms |
|
||||
| Preserved server before SSE, same records | 100 | 50.24 ms | 56.97 ms | 60.16 ms |
|
||||
| Preserved native Spring-per-call baseline | 100 | 248.14 ms | 252.23 ms | 297.11 ms |
|
||||
| Queries with four waiting SSE jobs | 100 | 44.94 ms | 55.18 ms | 62.78 ms |
|
||||
|
||||
The <=100 ms ready-server p95 and <=1 second readiness targets passed. These are
|
||||
sequential runs on this machine, not randomized causal comparisons. SSE improves
|
||||
ongoing event delivery; it does not itself establish a bootstrap speedup.
|
||||
|
||||
The pure-query dataset remains 100 synthetic Works and 1,000 notes, SQLite, without
|
||||
Git, providers or external network. It is copied from the stopped fixture originally
|
||||
created through public CLI commands; operational server state is excluded. Ten warmups
|
||||
precede 100 independent native clients. Python's monotonic clock includes launch,
|
||||
transport, queue, command execution and captured output, excluding terminal rendering.
|
||||
p95 uses nearest rank. Process-cold starts leave OS file caches intact. Manual
|
||||
management commands still construct their full help-capable parser.
|
||||
|
||||
The stream workload adds four surveys with ten questions each to WRK-0001 in a
|
||||
separate copy of the same dataset. All four jobs subscribe before 100 fresh-client
|
||||
queries of WRK-0064; they are waiting for input during those queries. The jobs then
|
||||
answer concurrently, producing 40 input-to-next-output observations:
|
||||
|
||||
| Stream workload | Result |
|
||||
|---|---:|
|
||||
| Responses verified | 40 / 40 |
|
||||
| Input POST start to next output/event, median | 471.07 ms |
|
||||
| Input POST start to next output/event, p95 | 537.23 ms |
|
||||
| Input POST start to next output/event, maximum | 543.80 ms |
|
||||
| Resident memory with four waiting streams, after setup | 63.70 MiB |
|
||||
|
||||
That timing includes the control request, survey/history validation, publication and
|
||||
writer contention. It is not isolated SSE transport latency. Unicode output matches
|
||||
durable results, terminal snapshots after reconnect match, and a separate native job
|
||||
verifies cooperative cancellation. Client tests count one submit and zero periodic
|
||||
job GETs during ordinary reconnection. Ambiguous input responses use one recovery
|
||||
lookup and preserve the buffered line/sequence.
|
||||
|
||||
The first concurrent workload failed with `Project publication is busy; local writer
|
||||
wait exceeded 2000 ms`. EXP-0001 retained partial evidence; EXP-0002 retained the
|
||||
actual terminal error. The fix reuses only the validated bootstrap/backend choice
|
||||
within each SQLite transaction, reducing repeated decoding while the publication
|
||||
fence is held. It does not cache records across transactions, weaken domain/history
|
||||
validation, infer SQLite from an existing database, change schema or enlarge timeouts.
|
||||
EXP-0003 repeated the identical four-survey/40-answer workload successfully.
|
||||
|
||||
After a fresh start and one `work show` per server, summed RSS was:
|
||||
|
||||
| Project servers | Total process RSS |
|
||||
|---|---:|
|
||||
| 1 | 48.61 MiB |
|
||||
| 5 | 242.62 MiB |
|
||||
| 10 | 485.33 MiB |
|
||||
|
||||
The first project has the nominal dataset; the rest have one Work each. These are
|
||||
idle snapshots, not peak memory or proportional memory; shared pages can be counted
|
||||
repeatedly. The four-stream RSS also includes mutation/setup allocations and job
|
||||
state, so its difference cannot be attributed exclusively to SSE. Fixtures are stopped
|
||||
and temporary stream projects removed afterward.
|
||||
|
||||
Raw samples, environment/load, fixture provenance and component hashes are retained:
|
||||
[nominal run](benchmarks/local-server-sse-native.json),
|
||||
[stream run](benchmarks/local-server-sse-events.json), and
|
||||
[failed stream run](benchmarks/local-server-sse-events-failed.json).
|
||||
The measured build ID is `c891da8913045080a02d7b977a259d097e30864a5487e230d0ec7d5d4e78daff`;
|
||||
native binary SHA-256 is `2fa0f168bfb8e1ba11edbcd5cdda2a6b150726f86d9c11e77ee26c21ce7fc887`.
|
||||
|
||||
```sh
|
||||
python3 scripts/server-benchmark.py \
|
||||
--binary build/native/package/ai-engineering \
|
||||
--baseline /path/to/native-per-call-package/ai-engineering \
|
||||
--server-baseline /path/to/pre-sse-package/ai-engineering \
|
||||
--directory /tmp/aie-sse-benchmark-new --output /tmp/aie-sse-benchmark-new.json \
|
||||
--samples 100 --starts 10
|
||||
|
||||
python3 scripts/native-sse-smoke.py \
|
||||
--binary build/native/package/ai-engineering \
|
||||
--fixture /tmp/aie-sse-benchmark-new/nominal \
|
||||
--samples 100 --questions 10 --streams 4 --output /tmp/aie-sse-events-new.json
|
||||
```
|
||||
|
||||
Fixture generation is outside timing; `--fixture` can reuse a previously generated,
|
||||
stopped synthetic dataset. The probe retains a failure diagnostic if a job fails,
|
||||
cancels unfinished fixture jobs and attempts bounded shutdown during cleanup.
|
||||
|
||||
Final verification: `./gradlew check` passed 269 tests without failures, errors or
|
||||
skips and all 11 Jenkins pipeline fixture scenarios. The complete native smoke
|
||||
passed on the final binary, including forced native SSE client execution, SQLite,
|
||||
legacy formats, provider fixtures, authority, recovery and cancellation. The 17
|
||||
installer fixture tests, Work/project integrity, syntax, documentation links and
|
||||
diff checks passed. Fixture servers were closed. The measured binary/build hashes
|
||||
match the candidate; documentation synchronization changes package component hashes
|
||||
without changing that executable. No active installation or consumer project was changed.
|
||||
@@ -0,0 +1,54 @@
|
||||
# SSE for pending invocations
|
||||
|
||||
WRK-000E / DEC-0002 / PLN-0002 replaces repeated status requests with an event
|
||||
subscription. `POST /execute` still admits one UUID/fingerprint exactly once under
|
||||
the existing recovery contract. A terminal response stays ordinary JSON. Otherwise
|
||||
the client opens `GET /requests/UUID/events`, authenticated with the same private
|
||||
instance/protocol headers, and consumes `text/event-stream` as UTF-8.
|
||||
|
||||
Frames have `id`, `event` and JSON `data` fields. The ID is a job generation UUID
|
||||
and monotonic sequence joined by `:`. The payload contains the request `id`, event
|
||||
`cursor`/`kind`, `stdoutOffset`/`stderrOffset`, incremental `stdout`/`stderr`, state,
|
||||
exit code, input sequence, input requirement and cancellation flag. Output offsets
|
||||
count UTF-16 characters, matching Java writers and the existing JSON response.
|
||||
|
||||
Kinds are `snapshot`, `stdout`, `stderr`, `progress`, `input-required`, `completed`
|
||||
and `unknown`. Output events carry deltas; state events carry no additional output.
|
||||
A snapshot contains the complete retained output from offset zero. Its terminal
|
||||
state can also represent a job that finished before subscription. Terminal events
|
||||
follow durable receipt publication; UNKNOWN retains the existing ambiguous-outcome
|
||||
semantics. Transient progress history is not a durable execution log.
|
||||
|
||||
`Last-Event-ID` resumes within a generation. Replay is limited to 128 events and
|
||||
256 Ki characters; output events use chunks of at most 16 Ki characters. A missing,
|
||||
expired, future or different-generation cursor gets an explicit snapshot. The
|
||||
client verifies previously received output before appending a snapshot suffix;
|
||||
gaps or differing prefixes are errors, never silently accepted or replayed mutations.
|
||||
After a crash only durable terminal output or an explicit UNKNOWN result is available.
|
||||
|
||||
Publishers wake waiting subscribers when state/output changes. Waiting and replay
|
||||
selection occur under the job monitor; socket writes happen after it is released.
|
||||
No stream retains a database transaction or publication lock. An open subscription
|
||||
does not itself count as job activity. Disconnecting it neither cancels the operation
|
||||
nor resubmits `/execute`; input and cooperative cancellation remain explicit POSTs.
|
||||
|
||||
`GET /requests/UUID` remains for inspection and recovery, rather than periodic
|
||||
monitoring by the updated client. SSE is additive to local HTTP protocol 1; the
|
||||
existing build-identity/drain lifecycle still selects matching client/server builds.
|
||||
Engineering contract 4 and canonical SQLite memory are unchanged.
|
||||
|
||||
The CLI allows three reconnect attempts with 100/200/400 ms backoff and a five-second
|
||||
stream read timeout. A normal stream disconnect resumes from its last committed
|
||||
cursor; an uncertain input response or a changed server instance also inspects the
|
||||
durable result once. Input already read from stdin is retained with its sequence.
|
||||
Neither stream exhaustion nor disconnection automatically cancels the job.
|
||||
|
||||
The dedicated stream executor admits at most 16 subscriptions per project and two
|
||||
per job. Heartbeats run every second; a socket write blocked for two seconds is
|
||||
interrupted, closing its JDK SocketChannel. This detaches the subscriber and leaves
|
||||
the job recoverable. Drain allows one second for terminal delivery once no jobs
|
||||
remain, then closes remaining streams. These timers do not extend server idle time.
|
||||
|
||||
Reference: [SSE specification](https://html.spec.whatwg.org/multipage/server-sent-events.html).
|
||||
|
||||
Native observations and reproduction commands: [SSE results](local-server-sse-results.md).
|
||||
@@ -0,0 +1,118 @@
|
||||
# Local project server
|
||||
|
||||
WRK-000E / DEC-0001 separates process lifetime from command lifetime. The public
|
||||
`aie` interface stays unchanged: a lightweight client discovers a project's server,
|
||||
starts it when needed, and forwards literal arguments and the caller's working
|
||||
directory. Spring starts only in the persistent server. Native GraalVM is the
|
||||
distribution default; the same entry point supports a JVM for development.
|
||||
|
||||
`aie start` waits for readiness and reuses a compatible running instance. `aie stop`
|
||||
drains admitted operations and is successful when already stopped. Normal commands
|
||||
can start the server again. Idle servers stop after 30 minutes with no active jobs;
|
||||
the timeout is configurable. Help, version, initialization and bootstrap guidance
|
||||
do not need a server. `aie status` retains its existing project-status meaning.
|
||||
|
||||
The canonical project path owns an exclusive OS lock and a loopback-only ephemeral
|
||||
port. A private descriptor under `.ai-engineering/.local/server/` contains the
|
||||
instance identity, process, protocol/build identity, endpoint and capability token.
|
||||
Clients authenticate and verify identity, and never infer ownership from a PID or
|
||||
port alone. Startup is coordinated; incompatible versions drain before replacement.
|
||||
|
||||
HTTP messages are versioned JSON. Commands are parsed with Picocli, not a shell.
|
||||
Each request gets fresh parser, writers, reader and project context. No process-wide
|
||||
working directory or standard streams are redirected. Output and errors remain
|
||||
separate and the original exit code is returned. Interactive input is requested
|
||||
only when the command reads it. Jobs expose progress, input, completion and
|
||||
cooperative cancellation; a cancellation request never asserts rollback.
|
||||
|
||||
Reads are bounded and concurrent. Writes are coordinated at their existing
|
||||
transaction/lock boundaries; a provider call or an input prompt must not retain a
|
||||
database transaction or monopolize the command executor. Native/file storage and
|
||||
all human-authority checks retain their existing contracts.
|
||||
|
||||
Mutations have a durable intent, request fingerprint and recoverable result in
|
||||
private local operational state, separate from canonical engineering memory.
|
||||
Repeated IDs cannot execute twice or change their arguments. A crash between
|
||||
effects and a completed result leaves an explicitly unknown outcome, requiring
|
||||
inspection rather than replay. This is not an exactly-once guarantee. Tokens,
|
||||
credentials, environment dumps and transport logs are not canonical evidence.
|
||||
|
||||
Acceptance targets on the recorded native test machine are p95 <= 100 ms for a
|
||||
fresh client's `work show` roundtrip to a ready server, and <= 1 s from `aie start`
|
||||
to readiness. The nominal disposable dataset has 100 Works and 10 notes per Work,
|
||||
without Git or provider/network work. Record build hash, hardware, first use and
|
||||
ready-server distributions, and memory at 1/5/10 active projects. These targets must
|
||||
be measured; external framework benchmarks are not proof that AIE meets them.
|
||||
|
||||
The native measurements now meet both targets on the recorded test machine.
|
||||
See [current SSE results](local-server-sse-results.md) and the [earlier polling
|
||||
measurements](local-server-results.md), including the initial failed implementation
|
||||
and parser correction.
|
||||
|
||||
## Operation and limits
|
||||
|
||||
`aie server status` returns process status as JSON without starting a server. It
|
||||
distinguishes STOPPED, STARTING, RUNNING and UNREACHABLE. `aie start` defaults to a
|
||||
15-second readiness timeout; `aie stop` defaults to a 30-second drain timeout.
|
||||
`--timeout-seconds N` overrides either. A stop timeout leaves the server draining;
|
||||
active effects are not killed or rolled back. Changing the idle timeout with
|
||||
`start --idle-timeout-seconds N` drains and replaces an existing instance when needed.
|
||||
The override applies to that instance; a new automatic start defaults to 1,800 seconds.
|
||||
|
||||
The server inherits the environment of the client that starts it. Restart it after
|
||||
changing PATH, provider executables or environment-based credentials. Per-call cwd,
|
||||
arguments, input and output are isolated; environment dumps are not forwarded or
|
||||
stored in Work memory. Relative files resolve from the calling client's cwd.
|
||||
|
||||
HTTP protocol 1 is independent of engineering contract 4. The instance listens only
|
||||
on `127.0.0.1`, authenticates a private capability token, verifies instance identity
|
||||
and rejects browser-origin requests. Startup and ownership use separate exclusive
|
||||
OS locks. A stale descriptor without a lock owner can be replaced. A live but
|
||||
unreachable owner is diagnosed rather than killed. Different compatible-protocol
|
||||
builds drain before replacement; an unsupported protocol requires its matching CLI
|
||||
to stop it. Ports can change after a restart.
|
||||
|
||||
The protocol provides GET `/health`, POST `/execute`, GET `/requests/UUID`, GET
|
||||
`/requests/UUID/events`, POST `/input`, POST `/cancel` and POST `/stop`. Requests contain the canonical project,
|
||||
calling cwd, literal argv, UUID and console-input capability. Responses carry state,
|
||||
stdout, stderr, exit code, input sequence and cancellation status. Input retries
|
||||
reuse the same sequence. Operations report QUEUED, RUNNING, COMPLETED or UNKNOWN.
|
||||
Pending invocations open an SSE subscription; immediate terminal responses stay
|
||||
JSON. The client reports the request ID when opening the stream and progress every
|
||||
five seconds while waiting. It does not poll job results. No execution is silently
|
||||
resubmitted after an ambiguous connection loss. Input-response uncertainty and server
|
||||
restart use a one-off result lookup, not periodic monitoring.
|
||||
|
||||
SSE resumes with `Last-Event-ID`; expired cursors get an explicit snapshot. The
|
||||
client checks overlaps and previously delivered prefixes before appending output.
|
||||
After three reconnect attempts with 100/200/400 ms backoff, it reports the request
|
||||
as recoverable and exits without cancelling/replaying it. The SSE read timeout is
|
||||
five seconds and server heartbeats arrive every second. A crash can leave less
|
||||
recoverable output than was already printed; a prefix gap is reported together
|
||||
with the unknown outcome, never replaced silently. See [event framing and resource
|
||||
bounds](local-server-sse.md).
|
||||
|
||||
Four ordinary workers and a 64-entry queue handle short commands; up to four
|
||||
dedicated workers handle provider jobs and guided survey input. Total active/queued
|
||||
admission is bounded. An interactive wait or provider call does not retain a database
|
||||
transaction. Writers keep the existing bounded SQLite/publication coordination.
|
||||
SSE uses a separate executor with at most 16 streams per project and two per job.
|
||||
Two-second blocked writes detach the subscriber; they do not cancel its job.
|
||||
Streams/heartbeats alone do not postpone idle shutdown. Once jobs finish, drain
|
||||
allows one second for terminal notification before closing remaining streams;
|
||||
durable results remain available for recovery.
|
||||
|
||||
JSON request bodies are limited to 1 MiB; accumulated output is limited to 8 MiB
|
||||
characters per stream, with explicit failure on overflow. Response/receipt reads
|
||||
are limited to 128 MiB. Large `work context`, input or provider workloads need their
|
||||
own capacity assessment; the simple-query target does not cover them.
|
||||
|
||||
`aie server request UUID` can start the server to inspect a durable result;
|
||||
`aie server cancel UUID` addresses an existing server. Completed read results are
|
||||
persisted too, so cache eviction does not lose a waiting client's output. Receipts
|
||||
are private files containing fingerprints, outcomes and command output. They remain
|
||||
after stop/restart and currently have no automatic pruning. Preserve receipts while
|
||||
outcomes need recovery; removing them also removes their deduplication history.
|
||||
Do not remove state while a server is running or an interrupted mutation is unresolved.
|
||||
Canonical Works, decisions, approvals and evidence continue to belong to SQLite or
|
||||
the selected legacy backend, not to these operational receipts.
|
||||
Reference in New Issue
Block a user