beadboard/tests/lib
zenchantlive ce4700849b Fix: Security, reliability, and code quality improvements from PR review
Critical Security Fixes:
- Fix command injection vulnerability in Windows shims (beadboard.cmd, bb.cmd)
  - Added path validation to block traversal (.. and root-relative paths)
  - Added quotes around env var to prevent command injection

Reliability Fixes:
- Fix agent cache null safety bug
  - Fixed callBdAgentShow() to check for cache misses (null check, expiration)
  - Fixed getCachedAgent to properly return entry.data or null
- Fix null body crashes in mail ack route
  - Added null check before casting body to object
  - Returns 400 error instead of 500 for invalid requests

BD Compliance Fixes:
- Fix read-issues to use BD audit record path
  - Ensures all writes go through bd audit record
  - Maintains watcher/SSE parity and Dolt commit tracking

Code Quality Fixes:
- Fix path canonicalization violations
  - Use canonicalizeWindowsPath() and windowsPathKey() from pathing module
  - Prevents Windows edge cases and ensures machine-reproducible paths
- Fix typo: mobile-fronted → mobile-frontend
- Pin GitHub Actions tags
  - softprops/action-gh-release@v1 → specific commit hash
- Register pr14 test in package.json (already registered)

Testing:
- Refactor broad exception handlers in Python scripts
  - Replace except Exception: with specific exceptions
  - Allows KeyboardInterrupt and SystemExit to propagate correctly
  - All tests passing
2026-03-05 16:33:10 -08:00
..
activity.test.ts feat(logic): establish derived-activity engine and agent-session protocols 2026-02-14 00:19:59 -08:00
agent-liveness.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
agent-mail.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
agent-protocol.test.ts feat(protocol): wire session aggregation and API with liveness 2026-02-14 10:43:02 -08:00
agent-registry-bd.test.ts feat(agents): complete bb-1y7 - Consolidate Agent Identity to bd Beads 2026-02-15 21:18:48 -08:00
agent-registry.test.ts test(coord): expand registry/api/reservation coverage 2026-03-03 18:48:13 -08:00
agent-reservations.test.ts test(coord): expand registry/api/reservation coverage 2026-03-03 18:48:13 -08:00
agent-sessions-liveness.test.ts feat(telemetry): complete bb-buff.1.3 - Backend Liveness Refactor 2026-02-15 21:14:05 -08:00
agent-sessions-state.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
agent-sessions.test.ts test: update all test files with templateId field 2026-02-26 10:23:07 -08:00
agent-takeover.test.ts feat(protocol): wire session aggregation and API with liveness 2026-02-14 10:43:02 -08:00
aggregate-read.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
bridge.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
coalescer.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
coord-events.test.ts feat(ux): consolidate Launch Swarm + telemetry UX with minimized strip 2026-03-01 18:17:58 -08:00
coord-projections-inbox.test.ts feat(ux): consolidate Launch Swarm + telemetry UX with minimized strip 2026-03-01 18:17:58 -08:00
coord-projections-reservations.test.ts feat(ux): consolidate Launch Swarm + telemetry UX with minimized strip 2026-03-01 18:17:58 -08:00
coord-schema.test.ts feat(ux): consolidate Launch Swarm + telemetry UX with minimized strip 2026-03-01 18:17:58 -08:00
epic-graph.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
graph-view.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
graph.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
identity-isolation.test.ts fix(protocol): implement Identity Isolation to prevent task pollution 2026-02-14 13:29:28 -08:00
install-manifest.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
issue-editor.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
kanban.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
mission-pathing.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
mutations.test.ts Cleanup: Runtime artifacts, hard-coded paths, PR 14 bug fixes 2026-03-05 15:57:33 -08:00
parser.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
path-overlap.test.ts feat(protocol): implement core backend engine for Operative Protocol 2026-02-14 10:38:10 -08:00
pathing.test.ts Cleanup: Runtime artifacts, hard-coded paths, PR 14 bug fixes 2026-03-05 15:57:33 -08:00
project-context.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
project-scope.test.ts Cleanup: Runtime artifacts, hard-coded paths, PR 14 bug fixes 2026-03-05 15:57:33 -08:00
read-interactions.test.ts Cleanup: Runtime artifacts, hard-coded paths, PR 14 bug fixes 2026-03-05 15:57:33 -08:00
read-issues.test.ts Fix: Security, reliability, and code quality improvements from PR review 2026-03-05 16:33:10 -08:00
read-text-retry.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
realtime-activity-sse.test.ts chore: checkpoint before DAG views UX overhaul 2026-02-22 20:43:59 -08:00
realtime-history.test.ts feat(observability): chronological timeline and agent productivity APIs 2026-02-14 00:21:02 -08:00
realtime.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
registry.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
runtime-manager.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
scanner.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
snapshot-differ-stress.test.ts test: update all test files with templateId field 2026-02-26 10:23:07 -08:00
snapshot-differ.test.ts test: update all test files with templateId field 2026-02-26 10:23:07 -08:00
social-cards.test.ts test: update all test files with templateId field 2026-02-26 10:23:07 -08:00
swarm-cards.test.ts test: update all test files with templateId field 2026-02-26 10:23:07 -08:00
swarm-molecules-simple.test.ts feat(data): complete bb-ui2.15 - Swarm Cards Data Builder 2026-02-15 21:18:13 -08:00
swarm-molecules.test.ts feat(data): complete bb-ui2.15 - Swarm Cards Data Builder 2026-02-15 21:18:13 -08:00
watcher.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00
writeback.test.ts checkpoint: pre-split branch cleanup 2026-03-03 16:43:42 -08:00