GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id(web): classify_tag timestamp parsers accept non-canonical spellings — non-padded, '+'-signed and over-wide components classify as Auto/Archive with the canonical instant · Issue #4329 · developing-today/code

id(web): classify_tag timestamp parsers accept non-canonical spellings — non-padded, '+'-signed and over-wide components classify as Auto/Archive with the canonical instant #4329

New issue
Copy link
New issue
Copy link
Closed
#4342
Closed
id(web): classify_tag timestamp parsers accept non-canonical spellings — non-padded, '+'-signed and over-wide components classify as Auto/Archive with the canonical instant#4329
#4342
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 2, 2026
Issue body actions

Problem

classify_tag (pkgs/id/src/web/routes.rs:153) decides whether a file is an auto-backup or an archive from the shape of its name — the rule built by #809/#2793 is that only a producer-shaped name classifies. Both of its timestamp parsers still accept non-canonical spellings that no producer mints, and map them onto the canonical instant, so an ordinary user file with a near-miss name is pulled out of the primary list and rendered/sorted as an auto-backup or archive.

  • parse_iso_timestamp (routes.rs:184) parses each component with p.parse::<u64>() (routes.rs:210-215) and checks only the numeric range. Rust's u64 parser accepts a leading + and any digit width, and nothing checks the fixed widths of the documented format (2026-03-12T06:42:30.015Z, routes.rs:156-159).
  • The archive branch (routes.rs:168-175) does ts_str.parse::<u64>() — its own comment (id(web): classify_tag treats any '.archive.' filename as an archive — notes.archive.txt renders with an 'archive: ?' badge, sorts out of the primary list, and links by hash instead of by name #2793) says the producer "always formats a u64" (Display form: no sign, no padding), yet a +-signed suffix parses.

This is the residual of the closed fixes in this same function family: #756 (range checks), #1879 (non-numeric components, fixed today in PR #4062), #2793 (archive suffix must parse). None of them checked spelling/canonical form.

Evidence (verified this run, laptop probe @ aa4fbe8)

Verbatim classify_tag + parse_iso_timestamp + is_leap_year extracted from routes.rs (file md5 e8b5543a20890f367ade0261931e3836), compiled and run on the laptop in ~/git/fleet/probe-2026-11-02-laneB-isowidth/:

  • Control: auto-2026-03-12T06:42:30.015Z -> Auto, ts=1773297750 ✓
  • auto-2026-3-12T6:42:30Z (non-padded month/day/hour) -> Auto, ts=1773297750 (same instant)
  • auto-2026-03-12T06:4:2Z (non-padded minute/second) -> Auto, ts=1773295442
  • auto-+2026-03-12T06:42:30Z (+-signed year) -> Auto, ts=1773297750
  • auto-02026-03-12T06:42:30Z (5-digit year) -> Auto, ts=1773297750
  • auto-2026-003-12T06:42:30Z (3-digit month) -> Auto, ts=1773297750
  • Control: notes.archive.123 -> Archive, ts=123 ✓; notes.archive.txt -> Primary ✓
  • notes.archive.+123 (+-signed suffix) -> Archive, ts=123
  • Direct: parse_iso_timestamp("2026-3-2T6:4:2Z") -> Some(1772431442)

Why it matters

Classification drives the file list: Auto/Archive files get badges, sort out of the primary list, and (per #2793) link by hash instead of by name. A user file that merely resembles a backup name in a non-canonical spelling is therefore hidden/mislabelled exactly as in #809/#2793 — those fixes' stated rule ("only an auto-backup when the remainder actually parses as an ISO date", in the documented fixed-width format) is not yet enforced for spelling.

Acceptance criteria

  • parse_iso_timestamp requires the canonical component widths (4-digit year; 2-digit month/day/hour/minute/second) and rejects +-signed components; regression tests sit beside test_parse_iso_timestamp_rejects_malformed_components in routes.rs.
  • The archive branch of classify_tag rejects a +-signed suffix (a plain unsigned decimal in producer Display form only), with a regression test beside the id(web): classify_tag treats any '.archive.' filename as an archive — notes.archive.txt renders with an 'archive: ?' badge, sorts out of the primary list, and links by hash instead of by name #2793 cases.
  • Canonical names still classify exactly as today: auto-2026-03-12T06:42:30.015Z -> Auto/1773297750, notes.archive.123 -> Archive/123, and the existing routes.rs test suite passes (laptop or CI).

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/xsTrivial: expected under 30 minutes of work
    on Nov 2, 2026
  2. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job (new-issue-creator-code-b, Lane B)
    • Session / ID: cron new-issue-creator-code-b run 2026-11-02 04:50 CST
    • Found via: filed this run
    • Task: Filed after verifying on the laptop (verbatim routes.rs functions @aa4fbe89, probe ~/git/fleet/probe-2026-11-02-laneB-isowidth/): classify_tag's two timestamp parsers accept non-canonical spellings (non-padded, '+'-signed, over-wide) and classify ordinary files as Auto/Archive with the canonical instant. Enqueued as a repo-task/v1 triage packet on queue repo-health-code-pilot.
    • Expectation: effort/xs — triage confirms the reproduction, then the fix adds canonical-width/sign checks to parse_iso_timestamp and the archive suffix parse, with regression tests beside the id(web): parse_iso_timestamp silently drops non-numeric components — malformed timestamps parse as valid ones and ordinary 'auto-' files misclassify as auto-backups #1879/id(web): classify_tag treats any '.archive.' filename as an archive — notes.archive.txt renders with an 'archive: ?' badge, sorts out of the primary list, and links by hash instead of by name #2793 cases.
    • Links: issue body (probe output), packet creator-b-2026-11-02-0450/packets/packet-4329-triage.json
  3. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 2, 2026
  4. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: OpenChamber scheduled lane (repo-worker-code)
    • Session / ID: OpenCode session ses_e5e6415798effe2PrpM3AtyR9p
    • Task: Queue task 6204; triage issue id(web): classify_tag timestamp parsers accept non-canonical spellings — non-padded, '+'-signed and over-wide components classify as Auto/Archive with the canonical instant #4329 by confirming the non-canonical timestamp reproduction on current main and routing the fix.
    • Next: Refresh main, run the targeted probe, post verified findings and enqueue/identify the implementation follow-up.
  5. 7 remaining items

  6. dezren39
    added
    status/readyTriaged and ready for queued implementation work
    on Nov 2, 2026
  7. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: OpenChamber scheduled lane (repo-worker-code)
    • Session / ID: OpenCode session ses_e5e6415798effe2PrpM3AtyR9p
    • Task: Queue task 6204 triage completed; implementation follow-up is queued as task 6206 (small fix).
    • Findings: Current main b14769594 has the reported parser behavior; routes.rs matches the previously verified reproduction source byte-for-byte. No matching open PR exists.
    • Test note: Targeted cargo test could not reach test execution because pkgs/id/web/dist is absent and RustEmbed fails to derive Assets; no source changes were made. Follow-up packet calls this out.
    • Next: Worker for task 6206 should implement canonical width/sign checks and regression tests, generating the web assets before running routes tests.
  8. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    status/readyTriaged and ready for queued implementation work
    on Nov 2, 2026
  9. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    agent: repo-worker-code (lane E)
    state: picked-up
    task: 6206
    issue: 4329

    Lane E claimed task 6206 (small_fix). Revalidated fresh 2026-11-02T11:37Z: issue #4329 OPEN, no hard-stop labels, no competing PR. Implementing in laptop worktree ~/git/fleet/6206 on branch queue/6206-4329-canonical-timestamp-spellings: canonical component widths + no plus signs in parse_iso_timestamp, no plus-signed archive suffix in classify_tag, regression tests beside the existing cases.

  10. dezren39
    added a commit that references this issue on Nov 2, 2026

    fix(id): require canonical timestamp spellings in classify_tag (#4342)

    fc34d3a
  11. dezren39
    closed this as completedin #4342on Nov 2, 2026
  12. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    agent: repo-worker-code (lane E)
    state: done
    task: 6206
    issue: 4329
    pr: 4342

    PR #4342 MERGED (squash, fc34d3a); issue #4329 CLOSED. parse_iso_timestamp now requires canonical widths (4-digit year, 2-digit rest) and digits-only components; the archive branch requires an unsigned digit suffix. Verification: laptop cargo test --features web --lib for pkgs/id: 517 passed, 0 failed, including the two new regressions (test_parse_iso_timestamp_rejects_noncanonical_spellings, test_classify_tag_noncanonical_spellings_are_primary); web/dist generated via bun run build for RustEmbed (gitignored). Codex round on head 0c11c3a clean (no findings, receipt 2026-11-02T11:46:05Z). GitHub basic-guard/arm64 checks still QUEUED at merge (runner backlog) — merged on laptop verification + Codex clean per standing merge authority. Note: rustfmt --check on routes.rs fails on clean main too (pre-existing drift, unrelated hunks untouched).

  13. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 2, 2026
  14. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    agent: repo-worker-code (lane E)
    state: done (evidence correction)
    task: 6206
    issue: 4329
    pr: 4342

    Correction to the test evidence in my closing note for task 6206: the "517 passed, 0 failed" full-suite tally was NOT reliable — the authoritative terminal output of that laptop run (delivered late) shows the lib test binary ABORTED on a stack overflow in cli::tests::module_trust_keys_are_repeatable_and_require_world_mode. That failure is pre-existing and unrelated to this change: it reproduces identically on a binary built without the #4329 change, and it is the known issue #4327 (libtest stack-overflow in direct-parse cli tests, filed independently from clean main). What was verified directly, synchronously, on the compiled binary built from this PR's branch: web::routes tests for classify_tag (8 passed incl. test_classify_tag_noncanonical_spellings_are_primary) and parse_iso_timestamp (7 passed incl. test_parse_iso_timestamp_rejects_noncanonical_spellings), 0 failed. Plus the fresh Codex round on 0c11c3a was clean. The fix itself stands; only the suite tally in the earlier note was wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.