okf-kit 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,83 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.14.0] - 2026-09-20
11
+
12
+ ### Changed
13
+
14
+ - `sources-fresh`'s re-stamp direction check (`compareRestampDirection`,
15
+ D-013) is now judged by `parseTimestampInstantMs` (D-016) instead of a
16
+ bare `Date.parse` fallback for a designator-less value; see the Fixed
17
+ entry below. This can turn an existing `--strict` run red: a
18
+ designator-less backwards re-stamp that previously passed silently is
19
+ now reported (`re-stamp moved backwards`).
20
+
21
+ ### Fixed
22
+
23
+ - `sources-fresh` treats a frontmatter `timestamp` string with no UTC
24
+ designator (`Z`) or numeric offset (e.g. `2026-09-17T07:36:36`)
25
+ consistently and timezone-invariantly across BOTH of its comparisons
26
+ (D-016). Previously the two comparisons disagreed: the re-stamp
27
+ direction check (`compareRestampDirection`) fell back to an
28
+ any-textual-change escape hatch for such a value (a genuine backwards
29
+ re-stamp between two designator-less timestamps silently passed as an
30
+ ordinary re-stamp), while the day-wide staleness comparison
31
+ (`getTimestampEpoch`) parsed it with `Date.parse` in the machine's
32
+ local timezone (the same repository content could read STALE on one
33
+ runner and clean on another, hours apart). Both now go through one
34
+ UTC-forcing parse (`parseTimestampInstantMs` in `src/util.ts`, shared
35
+ by `getTimestampEpoch` and `getTimestampEpochMs`): a designator-less
36
+ value is treated as UTC everywhere `sources-fresh` reads a `timestamp`
37
+ (Treatment A of the two considered, see the measurement below), so a
38
+ backwards designator-less re-stamp is now reported (`re-stamp moved
39
+ backwards`) exactly like a `Z`-suffixed one, and the day-wide
40
+ comparison no longer depends on `TZ`. D-016 supersedes D-013 for
41
+ `sources-fresh`'s direction check (a native YAML date still takes the
42
+ `Date#getTime()` branch and is unaffected); `sources-fresh-future`'s
43
+ designator-less skip notice (D-013) is untouched, since its clock-skew
44
+ allowance is minutes wide, too narrow to safely absorb an hours-wide
45
+ timezone shift, so it keeps skipping a designator-less timestamp with a
46
+ notice rather than forcing UTC on it (see the README's "Designator-less
47
+ timestamps" section for why the two rules differ). `parseTimestampInstantMs`
48
+ also trims the raw `timestamp` string before parsing (needed so the `Z`
49
+ it appends for a designator-less value lands at the end, not after
50
+ trailing whitespace); as a side effect, a whitespace-padded value that
51
+ previously read as `staleness not assessable: no valid timestamp` is
52
+ now assessed by both `sources-fresh` and `sources-fresh-future` the
53
+ same as its untrimmed form. A native YAML date (`!!timestamp`, no raw
54
+ string, already resolved to a fixed UTC instant by the YAML parser) was
55
+ already timezone-invariant and is unaffected. New tests pin timezone
56
+ invariance under both `TZ=UTC` and `TZ=Asia/Tokyo` for the direction
57
+ check and, separately, for the day-wide comparison
58
+ (`test/cli-staleness.test.ts`, subprocess-based, following the existing
59
+ D-013 pattern), plus a committed-path unit pin (`test/sources-fresh.test.ts`),
60
+ unit-level UTC-forcing and trim pins for `getTimestampEpoch`/
61
+ `getTimestampEpochMs` (`test/util.test.ts`), and a padded-value pin for
62
+ `sources-fresh-future` (`test/sources-fresh-future.test.ts`).
63
+
64
+ Measured by running the built CLI (`dist/cli.js check`) over every real
65
+ `docs/okf` bundle in this repository (test fixtures under
66
+ `packages/okf-kit/test/fixtures/` excluded as synthetic) -- the only
67
+ one is `packages/orchestrator-workflow/docs/okf`, whose six docs'
68
+ frontmatter timestamps are all `Z`-suffixed already. Ran both plain
69
+ `check --json` and `check --json --require-anchors`, each under
70
+ `TZ=UTC` and `TZ=Asia/Tokyo`:
71
+
72
+ | Config | Treatment A (parse as UTC, chosen) | Treatment B (designator required) |
73
+ |---|---|---|
74
+ | `check`, `TZ=UTC` | 0 errors, 0 warnings, 0 notices | 0 errors, 0 warnings, 0 notices |
75
+ | `check`, `TZ=Asia/Tokyo` | 0 errors, 0 warnings, 0 notices | 0 errors, 0 warnings, 0 notices |
76
+ | `check --require-anchors`, `TZ=UTC` | 0 errors, 0 warnings, 0 notices | 0 errors, 0 warnings, 0 notices |
77
+ | `check --require-anchors`, `TZ=Asia/Tokyo` | 0 errors, 0 warnings, 0 notices | 0 errors, 0 warnings, 0 notices |
78
+
79
+ Identical under both treatments and both timezones: the only real
80
+ bundle in this repository has no designator-less stamp to treat
81
+ differently, so no existing bundle verdict flips either way; Treatment
82
+ A is adopted because it keeps `sources-fresh` a single rule answering
83
+ the same "did this move forward" question for every `timestamp` shape
84
+ it accepts, closing the backwards-move gap without a second finding
85
+ class for the same value.
86
+
10
87
  ## [0.13.0] - 2026-09-17
11
88
 
12
89
  ### Changed
package/README.md CHANGED
@@ -91,14 +91,14 @@ Pass `--repo-root` explicitly to pin a specific root (useful in CI when the bund
91
91
 
92
92
  ## Staleness (sources-fresh)
93
93
 
94
- `sources-fresh` compares each frontmatter `sources` entry's last git commit time against the doc's `timestamp`, and additionally against the doc file's own last commit time: a source committed at or before the doc file's last commit is treated as fresh even when the frontmatter `timestamp` is older, PROVIDED that same commit actually re-stamped the doc. "Re-stamped" is decided by VALUE, not by diff text: okf-kit reads the doc's frontmatter at that commit and in the commit's first parent, parses both, and compares the `timestamp` VALUES as parsed instants, read at millisecond resolution -- the doc did not exist in the parent at all (it was created there), or the commit's value is strictly LATER than the parent's, and it counts as re-stamped. A value that moves to an EARLIER instant is not a re-stamp, and is additionally reported as its own warning (`re-stamp moved backwards`) naming the previous and new instants. A value that is actually REWRITTEN to the SAME instant in a different raw spelling (adding milliseconds that round to nothing, or switching between a quoted string and a native YAML date) is likewise not a re-stamp, and is additionally reported as its own notice naming both raw spellings; an unchanged value (the frontmatter timestamp is byte-identical across the commit, the common case for a co-committed body edit or formatter run) gets neither the warning nor the notice, since it was never a re-stamp attempt at all. Direction is judged only where BOTH sides name the same instant on every machine; a side that does not takes a raw-identity fallback instead of a verdict that depends on `TZ` (see **Designator gate**). The lookup follows a rename, so `git mv`ing a doc is not a creation, and it reads trees rather than a patch, so a merge commit (including the `refs/pull/N/merge` ref CI checks out) is assessed like any other commit. That keeps squash-merge PRs honest: when a doc re-stamp lands in the same commit as its changed sources, the merge gives every source a commit time later than any pre-merge `timestamp`, which used to make such docs stale-on-arrival. It does NOT extend to a commit that merely happens to also touch the doc file -- a typo fix, a co-committed prose edit, a repo-wide formatter run -- without moving the stamp strictly forward: that commit carries no verification claim, so staleness stands. "Created" is trusted only in a genuinely unshallow repository: in a shallow clone (`git clone --depth`), a commit with an empty parent list can simply be the boundary history was grafted onto, not the doc's real first commit, so this case gets the same not-assessable notice as any other unanswerable re-stamp question rather than an assumed pass (see "CI usage" below for the `fetch-depth: 0` remedy). The rule never blocks a doc that has no `sources`, and it never invents an error where git can't give a real answer:
94
+ `sources-fresh` compares each frontmatter `sources` entry's last git commit time against the doc's `timestamp`, and additionally against the doc file's own last commit time: a source committed at or before the doc file's last commit is treated as fresh even when the frontmatter `timestamp` is older, PROVIDED that same commit actually re-stamped the doc. "Re-stamped" is decided by VALUE, not by diff text: okf-kit reads the doc's frontmatter at that commit and in the commit's first parent, parses both, and compares the `timestamp` VALUES as parsed instants, read at millisecond resolution -- the doc did not exist in the parent at all (it was created there), or the commit's value is strictly LATER than the parent's, and it counts as re-stamped. A value that moves to an EARLIER instant is not a re-stamp, and is additionally reported as its own warning (`re-stamp moved backwards`) naming the previous and new instants. A value that is actually REWRITTEN to the SAME instant in a different raw spelling (adding milliseconds that round to nothing, or switching between a quoted string and a native YAML date) is likewise not a re-stamp, and is additionally reported as its own notice naming both raw spellings; an unchanged value (the frontmatter timestamp is byte-identical across the commit, the common case for a co-committed body edit or formatter run) gets neither the warning nor the notice, since it was never a re-stamp attempt at all. Direction is judged whenever BOTH sides resolve to an instant at all, including a `timestamp` string with no UTC designator or numeric offset -- see **Designator-less timestamps** for how that value is made timezone-invariant; only a side that cannot be parsed to an instant at all takes a raw-identity fallback instead. The lookup follows a rename, so `git mv`ing a doc is not a creation, and it reads trees rather than a patch, so a merge commit (including the `refs/pull/N/merge` ref CI checks out) is assessed like any other commit. That keeps squash-merge PRs honest: when a doc re-stamp lands in the same commit as its changed sources, the merge gives every source a commit time later than any pre-merge `timestamp`, which used to make such docs stale-on-arrival. It does NOT extend to a commit that merely happens to also touch the doc file -- a typo fix, a co-committed prose edit, a repo-wide formatter run -- without moving the stamp strictly forward: that commit carries no verification claim, so staleness stands. "Created" is trusted only in a genuinely unshallow repository: in a shallow clone (`git clone --depth`), a commit with an empty parent list can simply be the boundary history was grafted onto, not the doc's real first commit, so this case gets the same not-assessable notice as any other unanswerable re-stamp question rather than an assumed pass (see "CI usage" below for the `fetch-depth: 0` remedy). The rule never blocks a doc that has no `sources`, and it never invents an error where git can't give a real answer:
95
95
 
96
96
  | Situation | Severity | Message |
97
97
  |-----------|----------|---------|
98
98
  | A source path's last commit is newer than the doc's `timestamp` and the doc file's last commit | warning | `STALE: <path> changed <iso> after doc timestamp <iso>` |
99
99
  | A source path's last commit is newer than the doc's `timestamp`, at/before the doc file's last commit, AND that commit re-stamped the doc | (nothing) | fresh: doc and source landed together with a real re-stamp (or the doc was committed later, or created there) |
100
100
  | A source path's last commit is newer than the doc's `timestamp`, at/before the doc file's last commit, but that commit did NOT re-stamp the doc | warning | `STALE: <path> changed <iso> after doc timestamp <iso>` (co-commit with no re-stamp is not an exception) |
101
- | Same, but that commit (or, under `--dirty-as-now`, the working tree) moved the `timestamp` value BACKWARDS to an EARLIER instant (when both values are direction-comparable; see **Designator gate**) | warning (STALE) + warning (extra) | the same `STALE: ...` warning above, PLUS one `re-stamp moved backwards: timestamp <prev-iso> -> <new-iso> <where> is not a re-verification` warning per doc |
101
+ | Same, but that commit (or, under `--dirty-as-now`, the working tree) moved the `timestamp` value BACKWARDS to an EARLIER instant (when both values resolve to an instant at all; see **Designator-less timestamps**) | warning (STALE) + warning (extra) | the same `STALE: ...` warning above, PLUS one `re-stamp moved backwards: timestamp <prev-iso> -> <new-iso> <where> is not a re-verification` warning per doc |
102
102
  | Same, but that commit (or, under `--dirty-as-now`, the working tree) rewrote the `timestamp` value to the SAME instant in a different raw spelling | warning (STALE) + notice (extra) | the same `STALE: ...` warning above, PLUS one `re-stamp did not move the timestamp forward: <prev-raw> was rewritten as <new-raw> <where>, but both name the same instant (<iso>), so this is not a re-verification` notice per doc |
103
103
  | A source path's last commit is newer than the doc's `timestamp`, at/before the doc file's last commit, and git could not be asked whether that commit re-stamped the doc | notice | `staleness not assessable: git could not read the doc's own last commit to decide whether it re-stamped the doc` (once per doc, never a STALE warning and never a silent pass) |
104
104
  | Same, but the repository is a shallow clone and the doc's last commit is the grafted history boundary (an empty parent list that is not really a root commit) | notice | `staleness not assessable: this is a shallow clone ... use fetch-depth: 0 ... to assess it` (once per doc) |
@@ -113,7 +113,7 @@ Known limitation: a `git log` call that fails for a reason other than "no histor
113
113
 
114
114
  Known limitation: the doc-commit comparison suppresses staleness for every source older than the doc file's last re-stamping commit, not only for sources from the same commit -- provided that commit is the one that moved the stamp strictly forward. For a multi-source doc that means a re-stamp silences drift on every source changed before it, even ones that specific re-stamp did not itself verify. The frontmatter `timestamp` still governs sources changed after the doc's last commit. Also note: the check only looks at WHETHER the `timestamp` value moved to a strictly LATER instant, never at whether the new value is itself plausible -- a hand-typed FORWARD-dated stamp still counts as a re-stamp (`sources-fresh-future` is the rule that catches an implausible future value), while a stamp moved BACKWARDS never does (it stays STALE and gets its own `re-stamp moved backwards` warning, see the table above), however the value was written. "Moved forward" means the parsed frontmatter VALUE, read as an instant at MILLISECOND resolution, is strictly greater: a rewrite to the same instant in another spelling (`...00Z` to `...00.000Z`) is neither forward nor backward, so it does NOT count as a re-stamp even though the raw string differs -- that case gets its own notice (see the table above), while an unchanged value gets neither. Adding or removing quotes around an otherwise-unchanged value likewise counts as neither, and never triggers the notice, since YAML parsing already normalizes those away before the comparison ever sees them. And the comparison is against the FIRST parent only: a merge that takes the doc wholesale from its second parent is judged against the first-parent baseline, which is the baseline the pull request under review is measured against anyway.
115
115
 
116
- **Designator gate** (the one description of this gate; everything else in this README points here). Direction is judged only when BOTH sides name the same instant on every machine. Two cases fall short of that, and both fall back to the pre-direction-rule behavior of asking only whether the raw value CHANGED -- any textual change counts as a re-stamp, and neither the backwards warning nor the same-instant notice can fire. First, a side that cannot be parsed to an instant at all (missing, blank, or a string `Date.parse` rejects). Second, a side spelled without a UTC designator (`2026-01-01T13:00:00`: no `Z`, no numeric offset), which `Date.parse` resolves in the MACHINE'S own timezone -- judged directly, one repository would read as re-stamped on a UTC runner and as moved backwards on a UTC+9 laptop, so the fallback is what keeps the direction verdict a property of the repository rather than of `TZ`. The gate applies to whichever side carries the ambiguity, the new value or the one it replaced. A numeric offset (`+02:00`) is unambiguous and IS judged normally, and so is a native YAML date (`!!timestamp`), which carries no designator because it needs none: the parser already resolved it to a fixed instant. The same test gates `sources-fresh-future`'s clock-skew check, whose allowance is minutes wide, narrower than the hours a timezone shifts; what stays UNGATED is `sources-fresh`'s own day-wide staleness comparison, where a few hours are immaterial and gating them would turn a harmless ambiguity into a skipped check. See `compareRestampDirection`'s doc comment in `src/rules/sources-fresh.ts` for the fallback's exact behavior.
116
+ **Designator-less timestamps** (the one description of this handling; everything else in this README points here). A `timestamp` string spelled without a UTC designator (`Z`) or a numeric offset (`2026-01-01T13:00:00`) is, read raw, ambiguous: `Date.parse` resolves it in the MACHINE'S own timezone, so the identical repository content would read as one instant on a UTC runner and a different one on a UTC+9 laptop. `sources-fresh` closes that ambiguity by treating such a value as UTC EVERYWHERE it looks at a `timestamp`: in its own day-wide staleness comparison above (the plain `commitEpoch > timestampEpoch` check) just as much as in the re-stamp direction comparison this section is about. This applies to whichever side carries the ambiguity, the new value or the one it replaced, and it means a designator-less value is now judged for direction like any other value -- a backwards move is reported (`re-stamp moved backwards`) exactly as it would be for a `Z`-suffixed pair, it no longer passes silently. A numeric offset (`+02:00`) is unambiguous and parsed as itself, and so is a native YAML date (`!!timestamp`), which carries no designator because it needs none: the parser already resolved it to a fixed instant (YAML 1.1: a zone-less `!!timestamp` is UTC, not local time). Only a value that cannot be parsed to an instant AT ALL (missing, blank, or a string `Date.parse` rejects even when trimmed of surrounding whitespace and with a `Z` appended; the raw value is trimmed before either rule reads it, so a whitespace-padded stamp is assessed exactly like its unpadded form) falls back to the pre-direction-rule behavior of asking only whether the raw value CHANGED -- any textual change counts as a re-stamp, and neither the backwards warning nor the same-instant notice can fire. `sources-fresh-future`'s clock-skew check makes a different call for the SAME ambiguity: its allowance is minutes wide, too narrow to safely absorb an hours-wide timezone shift, so it SKIPS a designator-less timestamp with a notice instead of forcing UTC on it (see that rule's table below) -- `sources-fresh`'s own thresholds are day-wide, wide enough that forcing UTC is both consistent and safe. See `parseTimestampInstantMs`'s doc comment in `src/util.ts` and `compareRestampDirection`'s in `src/rules/sources-fresh.ts` for the exact behavior.
117
117
 
118
118
  **Two-branch squash interaction:** the rule follows one decision procedure, never a catalog of merge shapes, and the procedure is what to read a squash-merge scenario against, not a list of named cases:
119
119
 
@@ -158,7 +158,7 @@ If it reports a doc STALE, re-verify that doc against its current `sources` and
158
158
  | Source edited, doc left alone (not re-stamped) | exit 1, `sources-fresh` STALE |
159
159
  | Source edit and doc re-stamp committed TOGETHER, flag OFF | exit 0, clean (the committed-history co-commit rescue, unaffected by this flag) |
160
160
  | Doc dirty for an unrelated reason (a body edit, `timestamp` value unchanged), source edited | exit 1, `sources-fresh` STALE -- not rescued |
161
- | Doc re-stamped on disk to a value BEFORE the one committed at `HEAD` (a backwards move), source edited (when both values are direction-comparable; see **Designator gate** under "Staleness (sources-fresh)") | exit 1, `sources-fresh` STALE, PLUS one `re-stamp moved backwards: timestamp <prev-iso> -> <new-iso> in the working tree is not a re-verification` warning -- a backwards move is NOT a re-verification (see above) |
161
+ | Doc re-stamped on disk to a value BEFORE the one committed at `HEAD` (a backwards move), source edited (when both values resolve to an instant at all; see **Designator-less timestamps** under "Staleness (sources-fresh)") | exit 1, `sources-fresh` STALE, PLUS one `re-stamp moved backwards: timestamp <prev-iso> -> <new-iso> in the working tree is not a re-verification` warning -- a backwards move is NOT a re-verification (see above) |
162
162
  | Doc re-stamped on disk to the SAME instant as the one committed at `HEAD`, just in a different raw spelling, source edited | exit 1, `sources-fresh` STALE, PLUS one `re-stamp did not move the timestamp forward: ...` notice -- a rewrite that never moves the instant is NOT a re-verification either (see above) |
163
163
  | Source edit committed ALONE, the doc's re-stamp left uncommitted in the working tree | exit 0, clean locally -- but CI is RED (`sources-fresh` STALE) until that re-stamp is committed too |
164
164
 
@@ -187,7 +187,7 @@ The skew allowance defaults to 10 minutes (600 seconds), absorbing the ordinary
187
187
 
188
188
  **The measure-after-commit discipline both rules enforce:** re-verify the doc against its sources, THEN bump `timestamp` to the real instant of that verification (`new Date().toISOString()` or equivalent, never a hand-written value), THEN commit -- committing without re-stamping is what `sources-fresh` catches, and hand-writing a local time with a `Z` suffix it doesn't have is what `sources-fresh-future` catches.
189
189
 
190
- **Why a bare datetime is skipped here:** it is the same gate `sources-fresh` applies to its re-stamp direction comparison; of the comparisons in either rule, only `sources-fresh`'s day-wide staleness comparison stays ungated. See **Designator gate** under "Staleness (sources-fresh)" for what the gate tests, which values pass it, and why.
190
+ **Why a bare datetime is skipped here:** this rule's clock-skew allowance is minutes wide, too narrow to safely absorb the hours a timezone can shift a designator-less value by, so it skips such a value with a notice rather than guess. `sources-fresh` faces the identical ambiguity in its own comparisons and makes the opposite call: its thresholds are day-wide, so it forces UTC on a designator-less value instead of skipping it. See **Designator-less timestamps** under "Staleness (sources-fresh)" for the full rationale and why the two rules land on different responses to the same edge case.
191
191
 
192
192
  **What these two rules catch, precisely, and what they don't:** a source path committed after the doc's `timestamp` (`sources-fresh`'s base case); a source and the doc co-committed together where that commit did NOT re-stamp the doc (`sources-fresh`'s narrowed co-commit exception, see "Staleness (sources-fresh)" above); and a local wall-clock time hand-written with a `Z`/UTC suffix it doesn't actually have (`sources-fresh-future`). What they do NOT catch: a doc-only prose edit that leaves `sources` untouched and the `timestamp` stale -- neither rule has a source-side signal to compare against in that case, so it is not mechanically assessable and stays a reviewer judgment call, the same as before this pair of rules existed.
193
193
 
@@ -325,7 +325,7 @@ This is advisory: don't fail the build on warnings unless you pass `--strict`. U
325
325
  with:
326
326
  fetch-depth: 0
327
327
  - name: OKF bundle check
328
- run: npx okf-kit@0.13.0 check path/to/bundle
328
+ run: npx okf-kit@0.14.0 check path/to/bundle
329
329
  ```
330
330
 
331
331
  Pin the version: an unpinned `npx okf-kit` picks up new rules on their release day, which turns an unrelated PR red.
@@ -719,28 +719,6 @@ function isShallowRepoShared(ctx, git, repoRoot) {
719
719
  shallowRepoCache.set(ctx, isShallow);
720
720
  return isShallow;
721
721
  }
722
- /**
723
- * Whether one side of the direction comparison resolves to an instant that
724
- * is the SAME on every machine, which is what `compareRestampDirection` has
725
- * to have before it may call one value earlier or later than another
726
- * (D-013). BOTH sides go through it, not just the newer one.
727
- *
728
- * A native `Date` (`getRawTimestampString` returns undefined for it) is
729
- * comparable: the YAML parser already resolved it to a fixed instant (a
730
- * `!!timestamp` scalar without a zone is UTC by the YAML 1.1 spec, not
731
- * local time), and `Date#getTime()` is that instant on every machine.
732
- * Undefined for any OTHER reason (missing, blank, non-scalar) cannot reach
733
- * here: this is only consulted for a side `getTimestampEpochMs` already
734
- * resolved, and those cases resolve to undefined there.
735
- *
736
- * What `hasUtcDesignator` tests, which comparisons this gate covers, and
737
- * why, is written down once: see the README's "Designator gate" paragraph
738
- * under "Staleness (sources-fresh)".
739
- */
740
- function isDirectionComparable(parsed) {
741
- const raw = getRawTimestampString(parsed);
742
- return raw === undefined || hasUtcDesignator(raw);
743
- }
744
722
  /**
745
723
  * How the same-instant notice names ONE side's frontmatter value: its raw
746
724
  * spelling, quoted, so the reader sees the two different strings that
@@ -791,23 +769,25 @@ function describeTimestampValue(parsed, epochMs) {
791
769
  * re-stamp ATTEMPT, so it gets neither `backwards` nor `sameInstant` --
792
770
  * there is nothing to notice.
793
771
  *
794
- * When EITHER side's `timestamp` cannot be parsed to an instant at all
795
- * (missing, blank, or a string `Date.parse` rejects), OR either side is a
796
- * string the designator gate rejects (D-013, see `isDirectionComparable`),
797
- * direction cannot be judged: this falls back to today's pre-D-004
798
- * behaviour of comparing the two values' raw IDENTITY
772
+ * When EITHER side's `timestamp` cannot be parsed to an instant AT ALL
773
+ * (missing, blank, or a string `Date.parse` rejects even with a `Z`
774
+ * appended), direction cannot be judged: this falls back to today's
775
+ * pre-D-004 behaviour of comparing the two values' raw IDENTITY
799
776
  * (`getTimestampIdentity`) instead of guessing a direction -- any textual
800
777
  * change still counts as `restamped`, exactly as before this decision
801
778
  * existed, and never triggers `backwards` or `sameInstant` (there is no
802
- * direction to report either way).
779
+ * direction to report either way). A side spelled without a UTC designator
780
+ * (`2026-01-01T13:00:00`: no `Z`, no numeric offset) is NOT such a case:
781
+ * `getTimestampEpochMs` (via `parseTimestampInstantMs` in `src/util.ts`)
782
+ * forces UTC for it, so it resolves to the SAME instant on every machine
783
+ * and IS judged for direction like any other comparable value (D-016). See
784
+ * the README's "Staleness (sources-fresh)" section, "Designator-less
785
+ * timestamps", for the full rationale.
803
786
  */
804
787
  function compareRestampDirection(currentParsed, beforeParsed, location) {
805
788
  const currentEpochMs = getTimestampEpochMs(currentParsed);
806
789
  const beforeEpochMs = getTimestampEpochMs(beforeParsed);
807
- if (currentEpochMs === undefined ||
808
- beforeEpochMs === undefined ||
809
- !isDirectionComparable(currentParsed) ||
810
- !isDirectionComparable(beforeParsed)) {
790
+ if (currentEpochMs === undefined || beforeEpochMs === undefined) {
811
791
  const currentStamp = getTimestampIdentity(currentParsed);
812
792
  const beforeStamp = getTimestampIdentity(beforeParsed);
813
793
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"sources-fresh.js","sourceRoot":"","sources":["../../src/rules/sources-fresh.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,M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AAC,IAAI,CAAC,CAAC;YACP,IAAI,OAAO,KAAK,eAAe,EAAE,CAAC;gBAChC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;YAC5C,CAAC;YACD,SAAS;QACX,CAAC;QACD,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACxB,CAAC,IAAI,CAAC,CAAC;QACP,IAAI,CAAC,KAAK,eAAe;YAAE,SAAS;QACpC,IAAI,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC;YAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACvD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;IACjD,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;AACjD,CAAC"}
package/dist/util.d.ts CHANGED
@@ -18,7 +18,9 @@ export declare function getValidSources(parsed: unknown): string[] | undefined;
18
18
  * (core) schema resolves timestamp scalars to strings, but a YAML 1.1
19
19
  * `!!timestamp` tag (or a caller constructing frontmatter programmatically)
20
20
  * can hand back a native `Date`, and that should be assessed rather than
21
- * degrade to the no-valid-timestamp notice.
21
+ * degrade to the no-valid-timestamp notice. A designator-less STRING is
22
+ * parsed via `parseTimestampInstantMs`, i.e. as UTC, so this epoch never
23
+ * depends on the machine's local timezone (D-016).
22
24
  */
23
25
  export declare function getTimestampEpoch(parsed: unknown): number | undefined;
24
26
  /**
@@ -33,7 +35,8 @@ export declare function getTimestampEpoch(parsed: unknown): number | undefined;
33
35
  * thresholds (days, not milliseconds) make the distinction this function
34
36
  * exists for immaterial there, so there was no reason to touch them. Read
35
37
  * as an instant at millisecond resolution, exactly like `getTimestampEpoch`
36
- * otherwise -- same `Date` vs. string handling, same undefined cases.
38
+ * otherwise -- same `Date` vs. string handling, same undefined cases, same
39
+ * UTC-forcing treatment of a designator-less string (D-016).
37
40
  */
38
41
  export declare function getTimestampEpochMs(parsed: unknown): number | undefined;
39
42
  /**
@@ -42,9 +45,10 @@ export declare function getTimestampEpochMs(parsed: unknown): number | undefined
42
45
  * `getTimestampEpoch`'s doc comment) returns undefined here too, since a
43
46
  * `Date`'s `getTime()` already names one instant on every machine, so
44
47
  * there is no raw spelling left for a caller to inspect. Callers:
45
- * `hasUtcDesignator`'s two gates (`sources-fresh-future`'s clock-skew
46
- * check and `isDirectionComparable`, D-013), and `describeTimestampValue`,
47
- * which names each side's raw spelling in the same-instant notice.
48
+ * `hasUtcDesignator` (`sources-fresh-future`'s clock-skew check, and
49
+ * `parseTimestampInstantMs`'s UTC-forcing decision, D-016), and
50
+ * `describeTimestampValue`, which names each side's raw spelling in the
51
+ * same-instant notice.
48
52
  */
49
53
  export declare function getRawTimestampString(parsed: unknown): string | undefined;
50
54
  /**
@@ -55,11 +59,17 @@ export declare function getRawTimestampString(parsed: unknown): string | undefin
55
59
  * already names a real UTC instant, so nothing beyond recognizing it is
56
60
  * needed here.
57
61
  *
58
- * Two callers gate on this predicate: `sources-fresh-future`'s clock-skew
59
- * check, and `compareRestampDirection`'s re-stamp direction comparison
60
- * (through `isDirectionComparable`, D-013). Which comparisons the gate
61
- * covers, which one stays ungated, and why, is written down once: see the
62
- * README's "Designator gate" paragraph under "Staleness (sources-fresh)".
62
+ * Two callers consult this predicate, and they respond to the same
63
+ * ambiguity in two different ways (D-016): `sources-fresh-future`'s
64
+ * clock-skew check SKIPS a designator-less timestamp entirely (a notice,
65
+ * not a warning) rather than compare it -- that allowance is minutes wide,
66
+ * too narrow to safely absorb a multi-hour timezone shift. `sources-fresh`
67
+ * instead FORCES UTC for it (`parseTimestampInstantMs`), for both its
68
+ * day-wide staleness comparison and its re-stamp direction comparison
69
+ * (`compareRestampDirection`) -- its thresholds are day-wide, so treating
70
+ * the value as UTC everywhere is both consistent and safe. Which rule takes
71
+ * which approach, and why, is written down once: see the README's
72
+ * "Designator-less timestamps" paragraph under "Staleness (sources-fresh)".
63
73
  */
64
74
  export declare function hasUtcDesignator(raw: string): boolean;
65
75
  /**
@@ -72,13 +82,12 @@ export declare function hasUtcDesignator(raw: string): boolean;
72
82
  * places, both of them comparing identities rather than instants:
73
83
  *
74
84
  * - as its FALLBACK, when direction cannot be judged at all: either side
75
- * unparseable to an instant (`getTimestampEpochMs` returns undefined),
76
- * or either side a string the designator gate rejects
77
- * (`isDirectionComparable`, D-013). With nothing comparable to order,
78
- * the question becomes "did the raw value change", and any textual
79
- * change counts as `restamped` -- see that function's doc comment for
80
- * the full three-way split.
81
- * - when both sides ARE direction-comparable and name the SAME instant,
85
+ * unparseable to an instant even after `getTimestampEpochMs` forces UTC
86
+ * for a designator-less string (D-016). With nothing comparable to
87
+ * order, the question becomes "did the raw value change", and any
88
+ * textual change counts as `restamped` -- see that function's doc
89
+ * comment for the full three-way split.
90
+ * - when both sides DO resolve to an instant and name the SAME one,
82
91
  * to tell a rewrite (a different spelling of that one instant, e.g.
83
92
  * `2026-01-01T00:00:00Z` to `2026-01-01T00:00:00+00:00`, which gets
84
93
  * the D-009 notice) from a byte-identical value (never a re-stamp
package/dist/util.js CHANGED
@@ -22,6 +22,34 @@ export function getValidSources(parsed) {
22
22
  sources.every((s) => typeof s === "string" && s.trim() !== "");
23
23
  return isValidShape ? sources : undefined;
24
24
  }
25
+ /**
26
+ * Parses a frontmatter `timestamp` STRING to milliseconds since the epoch,
27
+ * forcing UTC interpretation whenever the string carries no UTC designator
28
+ * (`Z`) or numeric offset (`hasUtcDesignator`, D-016). `Date.parse` resolves
29
+ * a designator-less string ("2026-01-01T13:00:00") in the machine's LOCAL
30
+ * timezone by default, which would make every caller that reads a
31
+ * `timestamp` through this function -- `sources-fresh`'s own day-wide
32
+ * staleness comparison AND its re-stamp direction comparison
33
+ * (`compareRestampDirection` in `src/rules/sources-fresh.ts`) -- read the
34
+ * IDENTICAL frontmatter differently depending on where `okf-kit check`
35
+ * happens to run. Appending `Z` before parsing makes the resolved instant a
36
+ * property of the STRING, not of `TZ`, for every comparison in this
37
+ * package, not just some of them. A string that already carries a
38
+ * designator is parsed unchanged: `Date.parse` already resolves it
39
+ * correctly on every machine. See the README's "Staleness (sources-fresh)"
40
+ * section, "Designator-less timestamps", for the full rationale and the one
41
+ * case this does NOT cover (a value that is not parseable to an instant at
42
+ * all). The raw string is trimmed before either check: the `Z` this
43
+ * function appends for a designator-less value must land at the very end,
44
+ * not after trailing whitespace, so a whitespace-padded value is parsed
45
+ * the same as its untrimmed form (both `hasUtcDesignator` and `Date.parse`
46
+ * would otherwise treat the padding as part of the value).
47
+ */
48
+ function parseTimestampInstantMs(raw) {
49
+ const trimmed = raw.trim();
50
+ const ms = Date.parse(hasUtcDesignator(trimmed) ? trimmed : `${trimmed}Z`);
51
+ return Number.isNaN(ms) ? undefined : ms;
52
+ }
25
53
  /**
26
54
  * Returns the frontmatter `timestamp` as a Unix epoch (seconds), or
27
55
  * undefined when absent, not a Date/string, or not parseable as a date.
@@ -30,7 +58,9 @@ export function getValidSources(parsed) {
30
58
  * (core) schema resolves timestamp scalars to strings, but a YAML 1.1
31
59
  * `!!timestamp` tag (or a caller constructing frontmatter programmatically)
32
60
  * can hand back a native `Date`, and that should be assessed rather than
33
- * degrade to the no-valid-timestamp notice.
61
+ * degrade to the no-valid-timestamp notice. A designator-less STRING is
62
+ * parsed via `parseTimestampInstantMs`, i.e. as UTC, so this epoch never
63
+ * depends on the machine's local timezone (D-016).
34
64
  */
35
65
  export function getTimestampEpoch(parsed) {
36
66
  if (!isRecord(parsed))
@@ -42,10 +72,8 @@ export function getTimestampEpoch(parsed) {
42
72
  }
43
73
  if (typeof timestamp !== "string" || timestamp.trim() === "")
44
74
  return undefined;
45
- const ms = Date.parse(timestamp);
46
- if (Number.isNaN(ms))
47
- return undefined;
48
- return Math.floor(ms / 1000);
75
+ const ms = parseTimestampInstantMs(timestamp);
76
+ return ms === undefined ? undefined : Math.floor(ms / 1000);
49
77
  }
50
78
  /**
51
79
  * Like `getTimestampEpoch`, but at MILLISECOND resolution instead of
@@ -59,7 +87,8 @@ export function getTimestampEpoch(parsed) {
59
87
  * thresholds (days, not milliseconds) make the distinction this function
60
88
  * exists for immaterial there, so there was no reason to touch them. Read
61
89
  * as an instant at millisecond resolution, exactly like `getTimestampEpoch`
62
- * otherwise -- same `Date` vs. string handling, same undefined cases.
90
+ * otherwise -- same `Date` vs. string handling, same undefined cases, same
91
+ * UTC-forcing treatment of a designator-less string (D-016).
63
92
  */
64
93
  export function getTimestampEpochMs(parsed) {
65
94
  if (!isRecord(parsed))
@@ -71,8 +100,7 @@ export function getTimestampEpochMs(parsed) {
71
100
  }
72
101
  if (typeof timestamp !== "string" || timestamp.trim() === "")
73
102
  return undefined;
74
- const ms = Date.parse(timestamp);
75
- return Number.isNaN(ms) ? undefined : ms;
103
+ return parseTimestampInstantMs(timestamp);
76
104
  }
77
105
  /**
78
106
  * The frontmatter `timestamp`'s raw string form, or undefined when it is
@@ -80,9 +108,10 @@ export function getTimestampEpochMs(parsed) {
80
108
  * `getTimestampEpoch`'s doc comment) returns undefined here too, since a
81
109
  * `Date`'s `getTime()` already names one instant on every machine, so
82
110
  * there is no raw spelling left for a caller to inspect. Callers:
83
- * `hasUtcDesignator`'s two gates (`sources-fresh-future`'s clock-skew
84
- * check and `isDirectionComparable`, D-013), and `describeTimestampValue`,
85
- * which names each side's raw spelling in the same-instant notice.
111
+ * `hasUtcDesignator` (`sources-fresh-future`'s clock-skew check, and
112
+ * `parseTimestampInstantMs`'s UTC-forcing decision, D-016), and
113
+ * `describeTimestampValue`, which names each side's raw spelling in the
114
+ * same-instant notice.
86
115
  */
87
116
  export function getRawTimestampString(parsed) {
88
117
  if (!isRecord(parsed))
@@ -100,11 +129,17 @@ export function getRawTimestampString(parsed) {
100
129
  * already names a real UTC instant, so nothing beyond recognizing it is
101
130
  * needed here.
102
131
  *
103
- * Two callers gate on this predicate: `sources-fresh-future`'s clock-skew
104
- * check, and `compareRestampDirection`'s re-stamp direction comparison
105
- * (through `isDirectionComparable`, D-013). Which comparisons the gate
106
- * covers, which one stays ungated, and why, is written down once: see the
107
- * README's "Designator gate" paragraph under "Staleness (sources-fresh)".
132
+ * Two callers consult this predicate, and they respond to the same
133
+ * ambiguity in two different ways (D-016): `sources-fresh-future`'s
134
+ * clock-skew check SKIPS a designator-less timestamp entirely (a notice,
135
+ * not a warning) rather than compare it -- that allowance is minutes wide,
136
+ * too narrow to safely absorb a multi-hour timezone shift. `sources-fresh`
137
+ * instead FORCES UTC for it (`parseTimestampInstantMs`), for both its
138
+ * day-wide staleness comparison and its re-stamp direction comparison
139
+ * (`compareRestampDirection`) -- its thresholds are day-wide, so treating
140
+ * the value as UTC everywhere is both consistent and safe. Which rule takes
141
+ * which approach, and why, is written down once: see the README's
142
+ * "Designator-less timestamps" paragraph under "Staleness (sources-fresh)".
108
143
  */
109
144
  export function hasUtcDesignator(raw) {
110
145
  return /(?:Z|[+-]\d{2}:?\d{2})$/i.test(raw.trim());
@@ -119,13 +154,12 @@ export function hasUtcDesignator(raw) {
119
154
  * places, both of them comparing identities rather than instants:
120
155
  *
121
156
  * - as its FALLBACK, when direction cannot be judged at all: either side
122
- * unparseable to an instant (`getTimestampEpochMs` returns undefined),
123
- * or either side a string the designator gate rejects
124
- * (`isDirectionComparable`, D-013). With nothing comparable to order,
125
- * the question becomes "did the raw value change", and any textual
126
- * change counts as `restamped` -- see that function's doc comment for
127
- * the full three-way split.
128
- * - when both sides ARE direction-comparable and name the SAME instant,
157
+ * unparseable to an instant even after `getTimestampEpochMs` forces UTC
158
+ * for a designator-less string (D-016). With nothing comparable to
159
+ * order, the question becomes "did the raw value change", and any
160
+ * textual change counts as `restamped` -- see that function's doc
161
+ * comment for the full three-way split.
162
+ * - when both sides DO resolve to an instant and name the SAME one,
129
163
  * to tell a rewrite (a different spelling of that one instant, e.g.
130
164
  * `2026-01-01T00:00:00Z` to `2026-01-01T00:00:00+00:00`, which gets
131
165
  * the D-009 notice) from a byte-identical value (never a re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E,KAAK,EAAE;QAC1D,OAAO,SAAS,CAAC;IACnB,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,gBAAgB,CAAC,GAAW;IAC1C,OAAO,0BAA0B,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;AACrD,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,UAAU,oBAAoB,CAAC,MAAe;IAClD,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;QAAE,OAAO,SAAS,CAAC;IACxC,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;IACnC,IAAI,SAAS,YAAY,IAAI,EAAE,CAAC;QAC9B,MAAM,EAAE,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC;QAC/B,OAAO,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC;IACrD,CAAC;IACD,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE;QAC1D,OAAO,SAAS,CAAC;IACnB,OAAO,UAAU,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC;AACtC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "okf-kit",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "CLI that validates OKF v0.1 knowledge bundles for structural correctness",
5
5
  "type": "module",
6
6
  "bin": {