Peter Steinberger
f21ac5a736
refactor(scripts): share gateway benchmark runtime ( #117769 )
...
* refactor(scripts): share gateway benchmark runtime
* fix(scripts): keep benchmark helper types private
2026-08-01 20:33:28 -07:00
Peter Steinberger
edecdbd05e
refactor(config): config-surface reduction tranche 3 — product consolidations (review request) ( #111527 )
...
* refactor(config): consolidate media model lists
* refactor(config): unify memory configuration
* refactor(config): consolidate TTS ownership
* refactor(config): move typing policy to agents
* refactor(config): retire product-level config surfaces
* refactor(config): share scoped tool policy type
* chore(config): refresh generated baselines
* fix(config): honor agent typing overrides
* fix(config): migrate sibling config consumers
* refactor(infra): keep base64url decoder private
* fix(config): strip invalid legacy TTS values
* chore(config): refresh rebased baseline hash
* fix(doctor): route legacy messages.tts.realtime voice to talk during tts move
* refactor(config): polish final layout names
* refactor(config): freeze retired tuning defaults
* feat(config): add fast mode default symmetry
* refactor(config): key agent entries by id
* docs(config): update final layout reference
* test(config): cover final layout migrations
* chore(config): refresh final layout baselines
* fix(config): align final layout runtime readers
* fix(config): align remaining readers
* fix(config): stabilize final layout migrations
* fix(config): finalize config projection proof
* fix(config): address final layout review
* docs(release): preserve historical config names
* fix(config): complete keyed agent migration
* fix(config): close final migration gaps
* fix(config): finish full-branch review
* fix(config): complete runtime secret detection
* fix(config): close final review findings
* fix(config): finish canonical docs and heartbeat migration
* fix(config): integrate latest main after rebase
* refactor(env): isolate test-only controls
* refactor(env): isolate build and development controls
* refactor(env): collapse process identity indirection
* refactor(env): remove duplicate config and temp aliases
* docs(env): define the operator-facing allowlist
* ci(env): ratchet production variable count
* fix(env): remove stale provider helper import
* fix(env): make ratchet sorting explicit
* test(env): keep test seam in dead-code audit
* test(env): cover ratchet growth and boundary; document surface budgets
* docs(config): document tier-eval consolidations
* docs(config): clarify speech preference ownership
* test(memory): align retired tuning fixtures
* refactor(memory): freeze engine heuristics
* refactor(config): apply tier-eval tranche
* refactor(tts): move persona shaping to providers
* refactor(compaction): move prompt policy to providers
* test(config): align hookified prompt fixtures
* chore(deadcode): classify test-only exports
* chore(github): remove unused spawn helper
* chore(deadcode): classify queue diagnostics
* chore(deadcode): remove unused lane snapshot export
* chore(plugin-sdk): ratchet consolidated surface
* fix(config): integrate latest main after rebase
2026-07-21 20:28:43 -07:00
Ayaan Zaidi
319a796079
fix(gateway): never leave the restart admission fence closed without a restart
...
A failed, refused, superseded, or thrown restart emission could leave the
reversible restart-signal admission fence closed forever: concurrent emitters
could overwrite the live rollback lease with a dead stand-in, the fenced body
had no try/finally, and the outer catch swallowed errors precisely because the
stuck fence made isGatewayRestartDraining() true. The gateway then rejected
every new task with GatewayDrainingError - silently - until an operator
restarted the process.
beginGatewayRestartSignalAdmission now returns null instead of stand-in
leases (single fence owner), emitPreparedGatewayRestart reopens the fence on
every non-delivery path via try/finally while preserving it whenever a queued
SIGUSR1 is unconsumed, refused-signal cleanup force-clears orphaned fences,
and admission close/reopen transitions are logged with their reason. The
self-contained SQLite restart-intent persistence moves to restart-intent.ts
to keep restart.ts within the LOC ratchet.
Fixes #107322
2026-07-14 16:14:48 +05:30
Vincent Koc
968604849c
refactor(scripts): remove benchmark testing aliases ( #105497 )
2026-07-12 17:34:12 +02:00
Peter Steinberger
e580275464
feat(tooling): enforce noUncheckedIndexedAccess in the scripts lane (NUIA phase 5) ( #105180 )
...
* feat(tooling): enforce noUncheckedIndexedAccess in the scripts lane
Burns down all 153 scripts-lane errors (bench aggregation, release
checks, i18n inventories, argv indexing) and flips the flag in
tsconfig.scripts.json. Direct-Node-executed release harness scripts use
local narrowing instead of workspace imports, which do not resolve
under plain node execution. Benchmark measured loops untouched.
* fix(scripts): import expect helpers via relative package sources
tsconfig path aliases resolve from cwd under tsx, so release wrapper
scripts running against old release target cwds could not resolve
@openclaw/normalization-core (not a linked root dependency). Relative
package-source imports match the established pattern on the adjacent
lines and are cwd-independent; old-target planning verified directly.
2026-07-12 10:17:00 +01:00
Vincent Koc
a822c9abaa
fix(qa): reject duplicate gateway restart controls
2026-06-23 17:13:39 +02:00
Vincent Koc
8e6624cb6c
fix(qa): reject duplicate sibling bench cases
2026-06-23 16:20:46 +02:00
Gio Della-Libera
037ee6de0a
Doctor: expose sandbox registry findings ( #84326 )
...
Merged via squash.
Prepared head SHA: ab069883b0
Co-authored-by: giodl73-repo <235387111+giodl73-repo@users.noreply.github.com >
Co-authored-by: giodl73-repo <235387111+giodl73-repo@users.noreply.github.com >
Reviewed-by: @giodl73-repo
2026-06-22 14:42:23 -07:00
Vincent Koc
fe7b78b05f
chore(deadcode): prune stale test hooks
2026-06-22 08:51:49 +08:00
Vincent Koc
e366349730
test(deadcode): reuse gateway restart intent writer
2026-06-21 19:49:47 +08:00
Vincent Koc
4b2b70ec79
fix(test): guard gateway benchmark cli args
2026-06-20 03:04:34 +02:00
Vincent Koc
887297e04a
refactor(scripts): dedupe gateway bench probes
2026-06-18 12:06:40 +08:00
Vincent Koc
331cc6a8c1
fix(qa): reject loose gateway RSS samples
2026-06-16 22:16:30 +02:00
Vincent Koc
3f18c71ac4
fix(test): require restart bench resource evidence
2026-06-06 21:18:58 +02:00
Vincent Koc
e974d98811
fix(test): reject missing gateway bench flag values
2026-06-06 21:03:45 +02:00
Peter Steinberger
b8d08f0cfd
docs: document repository scripts
2026-06-04 20:52:50 -04:00
Peter Steinberger
27dde7a4d6
chore(lint): enable stricter error rules
2026-06-01 01:12:21 +01:00
Vincent Koc
b3fbe5325e
refactor: dedupe approval and benchmark helpers
2026-05-28 22:41:26 +02:00
Vincent Koc
1baab3bef5
fix(gateway): bound benchmark teardown waits
2026-05-27 03:49:41 +02:00
Vincent Koc
82bbcf60b0
fix(perf): harden gateway restart bench exits
2026-05-25 10:43:01 +02:00
Vincent Koc
5bd5509e06
fix(scripts): budget restart benchmark timeouts
2026-05-25 06:38:43 +02:00
Vincent Koc
95d1b39b96
fix(scripts): fail restart benchmark regressions
2026-05-25 05:41:38 +02:00
Peter Steinberger
4f4d108639
chore(lint): remove underscore-dangle allow list ( #83542 )
...
* chore(lint): reduce underscore-dangle exceptions
* chore(lint): reduce more underscore exceptions
* chore(lint): remove underscore-dangle allow list
* fix(lint): repair underscore cleanup regressions
* test(lint): track version define suppression
2026-05-18 14:56:06 +01:00
samzong
27adbf9a1f
[Test] Add gateway restart benchmark tooling ( #83299 )
...
* test(gateway): add repeated restart benchmark
Signed-off-by: samzong <samzong.lu@gmail.com >
* test(gateway): harden restart benchmark probes
Signed-off-by: samzong <samzong.lu@gmail.com >
* fix(gateway): count restart benchmark sample failures
* fix(gateway): harden restart benchmark portability
* fix(gateway): tighten restart benchmark attribution
* fix(gateway): preserve restart benchmark partial logs
* fix(gateway): start restart probes before sampling
* fix(gateway): avoid blocking restart probe sampling
* fix(gateway): keep missed restart outage nonfatal
---------
Signed-off-by: samzong <samzong.lu@gmail.com >
Co-authored-by: Peter Steinberger <steipete@gmail.com >
2026-05-18 08:13:31 +01:00