Files
TORCH/docs/agent-handoffs/incidents/2026-02-20-codex-test-failures-platform-and-telemetry.md
T
2026-02-19 22:22:45 -05:00

1.7 KiB

Codex environment test failures: scheduler platform assertion and memory telemetry capture

Context

  • Date: 2026-02-20
  • Agent: docs-code-investigator
  • Validation stage for documentation-only updates (src/services/memory/index.js).

Observation

  • npm test fails in test/scheduler-preflight-lock.e2e.test.mjs.
  • Failure detail: first e2e assertion expects frontmatter platform to be unknown, but scheduler log in this environment reports platform: codex.
  • Targeted memory test bundle (node --test test/memory-*.test.mjs test/memory.test.js) fails in test/memory-telemetry.test.mjs.
  • Direct run (node test/memory-telemetry.test.mjs) shows fixture child process exits with code 0 but both stdout and stderr are empty, failing assertions that expect [PASS] and TORCH-MEMORY output.

Action taken

  • Confirmed failures are reproducible and unrelated to documentation edits.
  • Captured reproductions with direct command runs to reveal assertion details.
  • Updated KNOWN_ISSUES.md with active issue entries for both failures.

Validation performed

  • npm run lint (pass)
  • npm test (fails in test/scheduler-preflight-lock.e2e.test.mjs)
  • node --test test/scheduler-preflight-lock.e2e.test.mjs
  • node test/scheduler-preflight-lock.e2e.test.mjs
  • node --test test/memory-*.test.mjs test/memory.test.js
  • node test/memory-telemetry.test.mjs

Recommendation for next agents

  • Treat these as environment-sensitive test failures until assertions are aligned with Codex platform semantics and child-process output behavior.
  • If updating tests, follow spec-correction protocol and preserve strict behavioral intent.
  • Keep KNOWN_ISSUES.md dates/status current after remediation.