Conversation
SESSION_NOT_FOUND from the pre-edit hook used to skip telemetry, which made health indistinguishable from a missing PreToolUse hook. Record those failures under a dedicated diagnostics session and expose the count in health so reinstall follow-ups can separate hook wiring from session binding. Constraint: COLONY_UNAVAILABLE must still avoid storage writes because persistence may be broken. Rejected: Write the telemetry under the missing session id | that would create a phantom user session and hide the binding fault. Confidence: high Scope-risk: narrow Directive: Keep SESSION_NOT_FOUND telemetry distinct from the real editor session until SessionStart binding is restored. Tested: pnpm --filter @colony/hooks test -- auto-claim.test.ts; pnpm --filter @colony/storage test -- coordination-activity.test.ts; pnpm --filter @imdeadpool/colony-cli test -- health.test.ts; pnpm --filter @colony/storage typecheck; pnpm --filter @imdeadpool/colony-cli typecheck; pnpm exec biome check apps/cli/src/commands/health.ts apps/cli/test/health.test.ts packages/hooks/src/handlers/pre-tool-use.ts packages/hooks/test/auto-claim.test.ts packages/storage/src/storage.ts packages/storage/test/coordination-activity.test.ts; git diff --check Not-tested: pnpm --filter @colony/hooks typecheck still fails on existing test/attention-budget.test.ts InboxMessage fixture drift outside this patch.
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.
Automated by gx branch finish (PR flow).