Skip to content

Await asynchronous hook transport acknowledgements - #5

Merged
wrightpt merged 1 commit into
mainfrom
agent/await-observe-ack
Jul 14, 2026
Merged

wrightpt merged 1 commit into
mainfrom
agent/await-observe-ack

Conversation

@wrightpt

Copy link
Copy Markdown
Owner

Outcome

Observation hooks now complete the tiny HTTP 202 response lifecycle before exiting while persistence, indexing, and stream work remain asynchronous inside the engine. This prevents short-lived hook clients from stranding iii invocation bookkeeping.

Changes

  • add a shared submitObservation helper with a 500ms default acknowledgement bound
  • await and consume the 202 response in all seven single-observation telemetry hooks
  • retain silent best-effort failure behavior and a configurable upper bound
  • update bundled plugin scripts, hook architecture guidance, REST docs, and generated env reference
  • add transport and migration regression tests

Evidence

  • 20 built hooks against the live engine averaged 99ms including Node startup
  • active_invocations remained 25 to 25 across that burst
  • build passed
  • 134 test files / 1,449 tests passed
  • 15 skill references passed lint

@wrightpt
wrightpt merged commit 62eb3a3 into main Jul 14, 2026
@wrightpt
wrightpt deleted the agent/await-observe-ack branch July 14, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant