|
91 | 91 |
|
92 | 92 | ## Open Threads |
93 | 93 |
|
94 | | -- [ ] (feature — design RATIFIED by Eric 2026-08-23; **IMPLEMENTED same day on |
95 | | - `feature/primitive-event-bus`, commit `957d6b7`, tests 40/40 incl. the 8 bus pins + |
96 | | - live wire proof (chain → private via bus; wire → private = 403); node twin `da8ce4c` |
97 | | - 39/39; PENDING Eric's PR gate**) |
98 | | - **Primitive in-process event bus — the single dispatch pipeline.** Ratified shape: |
99 | | - per-route FIFO mailbox (asyncio.Queue; node = queue + worker loops) with |
100 | | - **instances = N worker tasks** (replaces the semaphore — the parameter becomes faithful); |
101 | | - two operations only: `deliver` (RPC with ttl → 408 envelope; dead-work skip when the |
102 | | - caller's future already expired) and `publish` (drop-n-forget, returns the 202-shape |
103 | | - ack). The HTTP host becomes thin ingress (hygiene + 403-private, then bus); PostOffice |
104 | | - WITHOUT an endpoint = local ingress reaching private AND public routes (engine |
105 | | - semantics — `private` becomes faithful: in-app only); with endpoint = wire client, |
106 | | - unchanged. **No spill tier / no queue cap (Eric's ruling): back-pressure belongs to the |
107 | | - tier that owns recovery — the engine's flows/graphs; a leaf host fails fast by deadline |
108 | | - rather than hoarding work.** Caveats recorded: in-memory = in-flight events die with the |
109 | | - process (durability was never this layer's contract); send() has no ttl valve (engine |
110 | | - parity; per-route cap only on field demand). Bus class stays INTERNAL (developers touch |
111 | | - preload/PostOffice only). Scope fence amended: + "primitive in-process event bus, no |
112 | | - orchestration/flows/persistence/broadcast". Pins: local RPC public+private, FIFO order, |
113 | | - instances=2 concurrency, local 408, unregistered-route error, trace-chained |
114 | | - hosted→local-private. README boundary statement: leaf-side composition here; workflow |
115 | | - processing = Event Script / Knowledge Graph. |
| 94 | +- [x] (feature — RATIFIED + IMPLEMENTED + **MERGED 2026-08-23 as |
| 95 | + [PR #17](https://github.com/Accenture/mercury-python/pull/17), true merge `f38ac17` |
| 96 | + carrying branch head `1931f01`; tree verified identical, branches deleted both ends; |
| 97 | + one PR with [[thread-actuator-endpoints]]**) **Primitive in-process event bus — the |
| 98 | + single dispatch pipeline.** `instances`/`private` faithful; deliver + publish only; the |
| 99 | + HTTP host and local PostOffice = thin ingress adapters. Durable ruling: NO spill tier / |
| 100 | + NO queue cap — back-pressure belongs to the engines' flows/graphs (scope fence: |
| 101 | + instructions.md). Full design, pins and wire proofs: origin log. |
116 | 102 | <!-- id: thread-primitive-event-bus | created: 2026-08-23 | last_used: 2026-08-23 | uses: 1 | tier: working | origin: 2026-08-23-005709 --> |
117 | 103 |
|
118 | | -- [ ] (feature — Eric's directive 2026-08-23, **IMPLEMENTED same day on |
119 | | - `feature/primitive-event-bus`, commits `56c002c` + `a674198` (IDE/Sonar round); |
120 | | - node twin `342a854` + `7a8b12c`; PENDING Eric's PR gate together with the bus**) |
| 104 | +- [x] (feature — Eric's directive, IMPLEMENTED + **MERGED 2026-08-23 in the same |
| 105 | + [PR #17](https://github.com/Accenture/mercury-python/pull/17) as the bus**) |
121 | 106 | **Actuator endpoints — the engines' operational surface for Kubernetes PODs.** |
122 | | - GET `/info`, `/info/routes`, `/env`, `/health`, `/livenessprobe` on the Event API port; |
123 | | - shapes mirror the Rust engine's actuator (the approved minimalist port of Java |
124 | | - `ActuatorServices`). Health check functions are normal registered functions speaking |
125 | | - the engines' `type=info` / `type=health` interface contract (Eric's ruling), listed in |
126 | | - `mandatory.health.dependencies` / `optional.health.dependencies` and called through the |
127 | | - event bus; `/health` = UP 200 / DOWN 400 (Java parity); `/livenessprobe` follows the |
128 | | - most recent health outcome. Engine formats verbatim (origin = UTC yyyyMMdd + 32-hex |
129 | | - uuid per the Java reference; elapsed-time boundary quirks pinned). Documented deltas: |
130 | | - no `/info/lib`, no XML, no info cache. One async `handle()` dispatcher (S7503-clean, |
131 | | - mirrors the node twin). 10 pins + live demo drives on both wrappers. |
132 | | - Relates [[thread-primitive-event-bus]]; serves [[bp-publish-interop-gate]]. |
| 107 | + /info, /info/routes, /env, /health, /livenessprobe; health check functions speak the |
| 108 | + engines' `type=info`/`type=health` contract through the bus; UP 200 / DOWN 400; |
| 109 | + liveness follows the last health outcome. Durable lesson: engine `log.format` json = |
| 110 | + PRETTY-printed, compact = single-line JSONL (the JsonAppender/CompactAppender pair). |
| 111 | + Detail: origin log. Relates [[thread-primitive-event-bus]]. |
133 | 112 | <!-- id: thread-actuator-endpoints | created: 2026-08-23 | last_used: 2026-08-23 | uses: 1 | tier: working | origin: 2026-08-23-031558 --> |
134 | 113 | > Mark completed items `- [x]` and leave them in place — the review sweeps them to |
135 | 114 | > the archive once older than `archive_window` sessions. Don't archive them by hand. |
|
0 commit comments