Skip to content

fix: correct module_map comment imprecision and test date formatting#241

Merged
fazxes merged 1 commit intomainfrom
feat/0240-fix-module-map-comment-and-date-format
Apr 9, 2026
Merged

fix: correct module_map comment imprecision and test date formatting#241
fazxes merged 1 commit intomainfrom
feat/0240-fix-module-map-comment-and-date-format

Conversation

@fazxes
Copy link
Copy Markdown
Member

@fazxes fazxes commented Apr 9, 2026

Summary

  • Fix inline comment in nightshift/infra/module_map.py (line ~364): previous comment said "second column is CIRCUIT-BREAK" but cols[2] is the third split element (cols[0]=empty, cols[1]=timestamp, cols[2]=session-id). Reworded to accurately describe the split indexing.
  • Fix _make_session_index helper in nightshift/tests/test_module_map.py: timestamps were generated with f"2026-04-0{i+1}" which produces malformed strings like "2026-04-010" for row index >= 9. Changed to f"2026-04-{i+1:02d}" for correct zero-padding.

Closes task #240 (source: pr-239-review).

Test plan

  • make check passes (1142 tests, ruff, mypy, dry-runs, ASCII check all green)
  • No logic changes -- comment and formatting fix only
  • Test helper now safe for row counts up to 31 (full month)

Fix inline comment in module_map.py that incorrectly said "second column
is CIRCUIT-BREAK" when cols[2] is the third split element (session-id).
Fix test helper _make_session_index to use zero-padded date formatting
(i+1:02d) to prevent malformed timestamps like "2026-04-010" for rows
beyond 9.
fazxes added a commit that referenced this pull request Apr 9, 2026
…y report

Tasks created from analysis of sessions #107-#122 and 7 human-filed issues:
- #241 (urgent): fix worktree cleanup -- .claude/worktrees/agent-* leaking
- #242 (urgent): add sessions_since_eval signal + brain eval cadence rule
- #243 (normal): run nightshift against Phractal immediately (eval #17)

Root causes identified: eval loop broken (14 sessions stale), worktree leak
confirmed live, Phractal E2E never runs in daemon cadence.
@fazxes fazxes merged commit eb7a5fb into main Apr 9, 2026
7 checks passed
fazxes added a commit that referenced this pull request Apr 9, 2026
Add the missing strategy report for session #123 that tasks #241,
#242, and #243 reference. Mark task #223 (worktree cleanup) as done
since it is superseded by the more detailed #241 spec.
@fazxes fazxes deleted the feat/0240-fix-module-map-comment-and-date-format branch April 9, 2026 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant