Skip to content

fix(windows): preserve pre-epoch shortcut timestamp milliseconds - #10305

Merged
kaoru0822-kitauji merged 1 commit into
mainfrom
codex/n13-0500-shortcut-time-10303
Nov 13, 2026
Merged

kaoru0822-kitauji merged 1 commit into
mainfrom
codex/n13-0500-shortcut-time-10303

Conversation

@kaoru0822-kitauji

Copy link
Copy Markdown
Collaborator

Fixes #10303.

Shell Link times just before 1970 were rounded into the following millisecond: stored FILETIME 116444735999999999 displayed 1970-01-01T00:00:00.000Z instead of 1969-12-31T23:59:59.999Z. Tracker UUID timestamps had the same error.

Convert each unsigned 100-ns clock to milliseconds before subtracting its millisecond-aligned epoch. One helper owns both projections. Exact raw ticks and zero FILETIME's unknown value remain intact. No related production cleanup remains.

Scope and contracts

Existing read-only Shell Link inspection; no maintainer scope decision is required. CLI/MCP schemas, Evidence provenance, generated metadata, installation and target authority are unchanged. Only the derived ISO value changes for pre-1970 fractional milliseconds. Rechecked main and all-state related PRs before pushing. #10280 touches separate path functions; none of that work is included.

Executed validation

macOS arm64; pinned Node 24.22.1/npm 11.16.0; base 54906fdb1.

  • Unchanged base with the regressions: parser 4 failed / 53 passed; public CLI/MCP case 1 failed / 4 passed, with the wrong ISO values above. Independent Python datetime control agrees with the expected containing millisecond.
  • npm run test:focused -- src/native/windows/WindowsShortcutParser.test.ts tests/acceptance/windowsShortcutCli.test.ts tests/boundary/mcp/windowsShortcutMcp.test.ts tests/boundary/filesystem/windowsShortcut.test.ts: 76 passed, four files; required runtime/skill build passed.
  • npm run check: passed, including typecheck, lint, formatting, Knip, metadata, architecture guards and typed lint. Existing advisory typed-lint warnings are reported by the gate.
  • Normal pre-commit hooks and pre-push check:fast passed; git diff --check passed.

Coverage: all three header clocks and all four Tracker UUIDs across negative/exact/positive millisecond boundaries, earliest nonzero FILETIME versus absent zero, plus public JSON CLI and stdio MCP delivery with source path and raw ticks retained. No resource lifecycle changes. Checks use authored Shell Link bytes; Windows APIs and a corpus of Windows-produced links were not exercised. Full CI is pending, and no human review is claimed.

Author readiness

Human owner: @kaoru0822-kitauji

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T07:58:18.441418Z 0cafbfe Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The changed code appears safe to merge.

Summary

Fixes pre-1970 fractional timestamps in Shell Link headers and Tracker UUIDs through one shared helper.

  • Shell Link timestamps stay in the right millisecond before 1970.

Reviews (4) · Last reviewed commit: "fix(windows): keep pre-epoch shortcut ti..." · Reviewed by Greptile

@kaoru0822-kitauji
kaoru0822-kitauji merged commit 617e4cb into main Nov 13, 2026
49 checks passed
@kaoru0822-kitauji
kaoru0822-kitauji deleted the codex/n13-0500-shortcut-time-10303 branch November 13, 2026 14:06
@morluto morluto added bug Something isn't working area: runtime Process capture and runtime observation labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Shell Link pre-1970 fractional timestamps round into the following millisecond

2 participants