feat(cli): add pi-hook-ingest/inject with shared spool - #4
Open
ZeR020 wants to merge 1 commit into
Open
Conversation
ZeR020
force-pushed
the
stack/4-pi-observer-auth
branch
from
August 17, 2026 20:31
31946f8 to
93045d7
Compare
ZeR020
force-pushed
the
stack/5-cli-ingest-inject
branch
2 times, most recently
from
August 19, 2026 07:49
fefd593 to
ed06c83
Compare
ZeR020
force-pushed
the
stack/4-pi-observer-auth
branch
from
August 19, 2026 07:49
93045d7 to
a844294
Compare
HTTP-first pi ingest on /api/pi-hooks, direct path via buildRawEventEnvelopeFromPiEvent + ingestRawEvents. Drain the shared spool before a boundary flush. Inject stays fail-open.
ZeR020
force-pushed
the
stack/4-pi-observer-auth
branch
from
August 23, 2026 15:33
a844294 to
0a79cf4
Compare
ZeR020
force-pushed
the
stack/5-cli-ingest-inject
branch
from
August 23, 2026 15:33
ed06c83 to
19bd665
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fifth stacked PR for pi support (kunickiaj#1430). Depends on layer 4 (
stack/4-pi-observer-auth, #3).Opened on the fork because GitHub cannot use
kunickiaj:stack/4-pi-observer-authas a base.Why
Maintainer blocker: HTTP-success used to flush extraction before draining the spool, so compaction/shutdown could miss queued events.
What
codemem pi-hook-ingest/pi-hook-injectregistered incommand-tree.ts.hook-ingest-spool.ts(not a third lock/spool copy).buildRawEventEnvelopeFromPiEvent+ingestRawEvents. NorecordRawEvent/stripPrivateObj.Setup stays on layer 8. Boundary CLI timeout stays on layer 6.
Test plan
vitest run packages/cli/src/commands/pi-hook-ingest.test.ts packages/cli/src/commands/pi-hook-inject.test.ts packages/cli/src/command-tree.test.ts— 41/41Stacked on: #3 / #2 / #1 / kunickiaj#1473
Related: kunickiaj#1430, kunickiaj#1429