This repository was archived by the owner on Jul 16, 2026. It is now read-only.
Repository navigation
Conversation
Fills the gap noted in the phase-5.1 review: _shouldFallthrough was exported for unit testing but had no test file. Covers the allowlisted prefixes (task-, voice-, proactive-) and the per-channel pull-namespace filename shape that must be blocked. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4 tasks done
bassilkhilo-ag2
suggested changes
Jun 4, 2026
bassilkhilo-ag2
left a comment
There was a problem hiding this comment.
Tests look good for the current implementation, but the allowlist in PR #70 needs to be extended before these tests are complete.
PR #70's _shouldFallthrough is missing 4 prefixes that the voice path relies on: question-, briefing-, insight-, friction- (see my change-request review on #70). Once Josh adds those to the allowlist, this test file will need matching test cases:
it('allows question- prefix', () => {
assert.equal(_shouldFallthrough('question-1748800000000.txt'), true);
});
it('allows briefing- prefix', () => {
assert.equal(_shouldFallthrough('briefing-1748800000000.txt'), true);
});
it('allows insight- prefix', () => {
assert.equal(_shouldFallthrough('insight-1748800000000.txt'), true);
});
it('allows friction- prefix', () => {
assert.equal(_shouldFallthrough('friction-1748800000000.txt'), true);
});Please update alongside the PR #70 fix so both land together.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
_shouldFallthroughintroduced in PR harden(task-bridge): PR #982 field-ordering + #1035 fallthrough guard #70task-/voice-/proactive-; blocksdvoice-/result-/ empty stringDependencies
josh/phase-5.1-task-bridge-hardening— merge harden(task-bridge): PR #982 field-ordering + #1035 fallthrough guard #70 first, then merge thisTest plan
npm test— all 6 new cases pass🤖 Generated with Claude Code