Skip to content

Commit 90ad4da

Browse files
committed
session 2026-08-24 [Claude Code]
1 parent 2a0d8f8 commit 90ad4da

3 files changed

Lines changed: 94 additions & 6 deletions

File tree

‎memory/continuity.md‎

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
polyglot initiative: a lightweight Event-over-HTTP function host + thin client, repurposed
1818
August 2026 (the previous full-framework port, up to v4.3.28, lives in git history and on npm)
1919
- **last_enabled:** 2026-08-22
20-
- **last_session:** 2026-08-23 | agent: Claude Code (2026-08-23-031920)
20+
- **last_session:** 2026-08-24 | agent: Claude Code (2026-08-24-013450)
2121
- **last_review:** (none yet)
2222
- **last_invariant_check:** (none yet)
2323
- **repo:** ~/sandbox/mercury-nodejs (origin: github.com/Accenture/mercury-nodejs)
@@ -41,9 +41,11 @@
4141

4242
> Hard constraints that must never change. These never decay (treated as `core`).
4343
44-
- **Wrapper only — no orchestration.** This package intentionally contains no event bus,
45-
no flows, no graphs and no orchestration; those live in the Mercury engines. It provides
46-
functions plus minimalist foundation utilities (README "Scope").
44+
- **Wrapper only — no orchestration.** This package intentionally contains no flows, no
45+
graphs, no persistence and no pub/sub broadcast; orchestration lives in the Mercury
46+
engines. It provides functions, the primitive in-process event bus (route mailboxes +
47+
workers — dispatch, not orchestration; ratified 2026-08-23), and minimalist foundation
48+
utilities (README "Scope", amended with the bus).
4749
<!-- id: scope-wrapper-no-orchestration | created: 2026-08-22 | last_used: 2026-08-22 | uses: 1 | tier: core | origin: 2026-08-22-171916 -->
4850
- **Standard wire format, proven by shared vectors.** The codec implements the standard
4951
event-envelope wire format, verified against the golden conformance vectors shared with
@@ -103,8 +105,15 @@
103105
the runtime block. Detail: origin log. Relates [[thread-primitive-event-bus-node]].
104106
<!-- id: thread-actuator-endpoints-node | created: 2026-08-23 | last_used: 2026-08-23 | uses: 1 | tier: working | origin: 2026-08-23-031920 -->
105107

106-
- [ ] (planned — Eric, 2026-08-23, on return from an AI workshop) **Code quality review
107-
round for mercury-nodejs** — the node twin of the python quality round (mercury-python
108+
- [x] (planned — Eric, 2026-08-23; **EXECUTED 2026-08-24 and MERGED same day as
109+
[PR #88](https://github.com/Accenture/mercury-nodejs/pull/88), true merge `2a0d8f8`
110+
carrying `a73332f` (17 commits, tree verified, branches deleted both ends);
111+
51/51 green throughout — 12 Sonar rules cleared incl. the shared asText
112+
(positive-narrowing lesson), two S3776 extractions, the linear call-site parse, and
113+
the EventEmitter rationale now in bus.ts's header; + the loose-ends round: engine-
114+
parity index page, pretty JSON, {status, message, type: error} host errors
115+
(`956c706`, 51/51); PENDING Eric's PR gate**)
116+
**Code quality review round for mercury-nodejs** — the node twin of the python quality round (mercury-python
108117
PR #16 class: IDE/Sonar screenshot-driven; node has so far received only preemptive
109118
mirrors of python findings, never its own review pass). After it: P4 on the polyglot
110119
initiative (docs chapter + examples demo on the engine repos, interop-report extension,
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Session (2026-08-24T00:48:08.000Z)
2+
3+
**Agent:** Claude Code
4+
**Lightweight:** LICENSE copyright years refreshed to 2018-2026 (Eric's cosmetic edit, committed on main).
5+
6+
Commit `54b35e5` — chore: refresh LICENSE copyright years (2018-2026)
7+
8+
```
9+
LICENSE | 2 +-
10+
1 file changed, 1 insertion(+), 1 deletion(-)
11+
```
12+
13+
## Memory References
14+
(none — auto-stub; enrich per memory/PROTOCOL.md "Close every session", or leave as a lite log)
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Session (2026-08-24T01:34:50.000Z)
2+
3+
**Agent:** Claude Code
4+
5+
**The node quality-review round (Eric's screenshot-driven pass — the twin of
6+
mercury-python's PR #16 round), executed on `chore/quality-polish`.** 14 commits
7+
(incl. Eric's LICENSE year refresh at the base and the EventEmitter rationale
8+
doc-comment from the standing agenda); `npm test` 48/48 after every commit; live
9+
drives where the suite has no coverage (demo, CLI). Pending Eric's PR gate.
10+
11+
## Fixed, by rule
12+
13+
- **Editor determinism:** `"types": ["node"]` pinned in tsconfig (the node:crypto/
14+
process "cannot find name" errors were Eric's stale TS server — restart fixed;
15+
the pin makes editor resolution explicit). Lesson: SonarQube-for-IDE analyzes
16+
OPEN FILES only — every flagged rule got a repo-wide sweep.
17+
- **S2933** readonly on construction-only fields: Mailbox.items/waiters,
18+
EventBus.mailboxes, FunctionRegistry.services, AppConfig.overrides.
19+
- **S7773** Number.parseInt over the global (cli, server).
20+
- **config.ts batch:** S6606 (`instance ??=`), S6582 (`!key?.trim()`),
21+
S6594 (hoisted WHOLE_REF.exec; twin fixed in log.ts).
22+
- **S6551 arc (the big one):** no default Object stringification — evolved into ONE
23+
shared `asText` exported from envelope.ts (config's copy deleted; actuator's
24+
asList converted). **Durable TS lesson: negating `typeof x === 'object'` on an
25+
`unknown` widens the remainder to `{} | undefined`, which re-admits objects —
26+
the rule only clears with POSITIVE primitive narrowing** (string/number/bigint/
27+
boolean/symbol enumerated; function → toString; object/null → JSON; undefined
28+
literal). Rendering now aligns with the python twin's `str()` behavior better
29+
than `[object Object]` ever did. Demo: text validated as string (non-string →
30+
teaching 400, live-proven).
31+
- **S3776 ×2** house helper-extraction: envelope.fromMap 23 → copyStringFields/
32+
copyNumericFields; actuator.checkServices 20 → per-route checkService.
33+
- **S7722** the call-site stack probe's Error carries a message.
34+
- **S8786 ×2 (two rounds!):** colon-exclusion in the class was NOT enough — an
35+
unanchored scanning regex with overlapping classes stays polynomial on
36+
non-matching input. callSite now parses right-to-left with lastIndexOf —
37+
strictly linear. Lesson: for tail-parsing, string ops beat regex scanning.
38+
- **S6571** Handler returns honest `unknown` (the union was absorbed); teaching
39+
moved to the doc comment.
40+
- **S7785** cli.ts uses top-level await (ESM, node>=20); error exits re-verified 1.
41+
- **S9073** composite test assertions split ×3 (envelope + 2 siblings in server).
42+
- **bus.ts header** now records the anycast-vs-broadcast EventEmitter rationale
43+
(the standing agenda item from Eric's pre-workshop question).
44+
45+
## Loose-ends round (same branch, after the smells)
46+
47+
Eric's three engine-parity items, signatures extracted from the Java repo (commit
48+
`956c706`; python twin `da60593` on feature/actuator-polish): `GET /` index page
49+
(platform-core public/index.html style, embedded — no static file service); actuator
50+
JSON pretty-printed (SimpleMapper's default pretty Gson); unknown paths and non-GET
51+
methods answer SimpleHttpUtility's `{status, message, type: "error"}` with
52+
`Resource not found`. 51/51 incl. three new pins; live drive verified all three shapes.
53+
54+
## Charset ruling (Eric)
55+
56+
Content types verified live on both wrappers: application/json on every actuator
57+
endpoint and the error shape, text/plain only on /livenessprobe (engine parity), text/
58+
html on /. Eric ruled the twins match EACH OTHER with explicit `; charset=utf-8`
59+
(node updated, `a73332f`) rather than python going bare like the Java engine.
60+
61+
## Memory References
62+
63+
- referenced: thread-node-quality-review, thread-primitive-event-bus-node,
64+
thread-actuator-endpoints-node, bp-publish-interop-gate
65+
- updated substance: thread-node-quality-review (executed, pending PR)

0 commit comments

Comments
 (0)