Add bounded inference queue, cancellation, and overload fallback #17
Labels
No Label
area/backend
area/data
area/frontend
area/model
area/privacy
area/release
area/safety
blocked
human-gate
priority/P0
priority/P1
priority/P2
state:review
type/docs
type/epic
type/feature
type/ops
type/research
type/security
type/test
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: stackchain/timmy-talking-turd#17
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent epic: #2
Outcome
Keep photo logging responsive under slow or saturated inference.
Acceptance criteria
Dependencies
Required evidence
Delivery
Open a focused branch and PR with
Closes #ISSUE. Do not include real medical images in issue comments or Git history.Implementation pushed on branch
timmy/17-bounded-inference-queue(PR to follow). Evidence from a clean checkout of the branch:Unit + security suite:
npm test→ 79 tests, 79 pass, 0 fail (3 consecutive full runs; includes new suites: inference-queue, inference-queue-cancellation, agent-queue, agent-turn-timeout, inference-zero-call).Python staging-deploy suite: 20/20 OK.
Acceptance (real HTTP + real subprocesses):
npm run test:queue-acceptance— overload returns sanitized manual-fallback copy with zero provider contact, urgent text bypasses a saturated queue (safetyOverride, zero Hermes calls), abandoned client frees its queue slot, all surviving requests complete after recovery, and every spawned fixture PID is reaped (no orphans).npm run test:shutdown-acceptance— SIGTERM during an in-flight turn kills the child process; no orphan survives.Browser acceptance: test:ui / test:photo / test:sleek PASS against a live server.
Syntax gates: npm run check:syntax OK. Diff hygiene: check:diff OK. Dependency audit: npm audit --audit-level=high → 0 vulnerabilities.
Privacy/safety boundary: urgent-symptom interception still precedes any queue admission and any Hermes/vision call — proven under saturation (zero-call invariant); no credential/browser-controlled options accepted; error copy sanitized (no session ids, argv, paths).
No real medical images in commits or comments.