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 — aggregator: Phase 1 of #2576 — validate.ts primitives, the ingest contract in the README, and the malformed-input probe matrix · Issue #2577 · developing-today/code

aggregator: Phase 1 of #2576 — validate.ts primitives, the ingest contract in the README, and the malformed-input probe matrix #2577

New issue
Copy link
New issue
Copy link
Closed
Closed
aggregator: Phase 1 of #2576 — validate.ts primitives, the ingest contract in the README, and the malformed-input probe matrix#2577
Copy link
Assignees
dezren39
Labels
app/aggregatorPackage/app: aggregator (pm-stack in this repo)app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobtask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Oct 30, 2026
Issue body actions

Phase 1 of design #2576 (aggregator ingest, fail-closed). Design doc: files/designs/code-aggregator-ingest-contract.md in the keep-the-four-repos-healthy goal workspace. Audited against origin/main 7c52ced1.

Scope

  1. Create pm-stack/aggregator/src/validate.ts — the shared validation primitives, no new dependency:
    • isRecord, isNonEmptyString, isStringArray
    • isFiniteNumber, isNonNegative, isPercentOf(limit) (finite, ≥ 0, ≤ the limit the document carries)
    • isIsoDate / parseIsoDate — a real calendar date: components extracted and re-checked, so 2026-02-30 and 2026-13-01 fail instead of rolling over via Date.parse
    • arrayOf(guard) — validates a container, drops and counts bad elements
    • a future-timestamp bound helper (default 5-minute skew) for generatedAt-style stamps (aggregator(health): dns/aa section stamps are never validated — a garbage dns generatedAt renders ageMs NaN/null, a future aa generatedAt renders age 0 (maximally fresh) for as long as the skew lasts #2242's defect shape)
  2. Write the ingest contract into pm-stack/aggregator/README.md: validate once at the boundary (shape, element types, ranges, real dates); the three sanctioned failure outcomes (reject-and-retain / drop-the-element-and-count / refuse-the-append); the three forbidden outcomes (throw discarding siblings, fabricate rows/ids/zeros, publish out-of-range as live). Cite src/token-adapter.ts (feat(quota-plane): browser-token adapter framework — managed credentials, fail-closed dashboard-API clients #1153) as the contract's existing embodiment.
  3. A malformed-input probe matrix in pm-stack/aggregator/test/ (following the existing per-file test layout): one table per primitive — impossible dates, non-finite numbers, negative counts, over-limit percents, null/string/array element confusion — including the real fixture shapes from src/sources/fixtures.ts as must-pass cases.
  4. Proof consumer only: convert isFleetFeed's generatedAt check (src/feed.ts:207-219) to the strict date primitive. No other consumer changes in this phase.

Acceptance criteria

  • validate.ts exports the primitives above, each covered by the probe matrix (impossible dates fail; a genuine 0 passes as 0).
  • README states the contract, the sanctioned outcomes, and the forbidden outcomes.
  • isFleetFeed rejects 2026-02-30 / 2026-13-01 generatedAt values it previously accepted; all existing feed tests still pass.
  • No new dependency in pm-stack/aggregator/package.json.
  • Verification runs in CI per fleet policy (no builds on the sandbox).

🤖 Design-architect pass 18 — agent note: phase of design #2576; the decisions are recorded there and in the design doc. Do not re-derive them in triage; flag genuine blockers on #2576 instead.

Activity

Next
  1. dezren39
    added
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    effort/mMedium: expected under 1 day of work
    app/aggregatorPackage/app: aggregator (pm-stack in this repo)
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    source/design-architectFiled by the repo design architect job
    on Oct 30, 2026
  2. dezren39
    added a parent issue on Oct 30, 2026
    • design(aggregator): ingest, fail-closed — one validation contract for every document the PM stack consumes #2576
  3. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    🤖 agent-note:v1 — design-architect pass 18 (2026-10-30): Phase 1 of design #2576. Scope and acceptance are in the body; the contract and decisions are recorded on #2576 and in files/designs/code-aggregator-ingest-contract.md (keep-the-four-repos-healthy goal workspace). Triage: confirm scope against current main, settle what triage can settle, enqueue the implementation follow-up with acceptance intact. Do not implement in the triage task.

  4. github-actions
    assigned
    dezren39
    on Oct 30, 2026
  5. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Oct 30, 2026
  6. 23 remaining items

  7. dezren39
    added
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Oct 31, 2026
  8. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane A
    • Session / ID: queue task 4004, repo-queue-worker-shift 2026-10-31 05:04 CDT
    • Found via: queue claim
    • Task: Phase 1 implemented — PR aggregator: validate.ts ingest primitives + contract + probe matrix — #2576 Phase 1 (#2577) #3017: src/validate.ts, README ingest contract, test/validate.test.ts probe matrix, isFleetFeed strict-date conversion. Laptop: validate+orchestration 118 pass; full suite 649 pass with the same 7 failures as clean main (pre-existing, overview/manifest/render).
    • Expectation: Resume on CI green + Codex clean → merge → complete (closes aggregator: Phase 1 of #2576 — validate.ts primitives, the ingest contract in the README, and the malformed-input probe matrix #2577; this also unblocks the aggregator: Phase 2 of #2576 — feed and snapshot boundaries on the shared primitives #2578 gate task 4006 waits on)
    • Links: PR aggregator: validate.ts ingest primitives + contract + probe matrix — #2576 Phase 1 (#2577) #3017
  9. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off (duplicate-PR correction)

    • Agent: queue worker (repo-worker-code), lane A
    • Session / ID: queue task 4004, repo-queue-worker-shift 2026-10-31 05:04 CDT
    • Found via: late tool-result delivery after my shift report
    • Task: Correction: PR aggregator: validate.ts ingest primitives + contract + probe matrix (#2577) #3014 (opened 10:06Z by this task's earlier claim holder) already implements this task and is CANONICAL. My PR aggregator: validate.ts ingest primitives + contract + probe matrix — #2576 Phase 1 (#2577) #3017 was a duplicate — my revalidation PR-search output was truncated and I missed aggregator: validate.ts ingest primitives + contract + probe matrix (#2577) #3014. I diffed the two file by file (salvage note on aggregator: validate.ts ingest primitives + contract + probe matrix (#2577) #3014: nothing unique in aggregator: validate.ts ingest primitives + contract + probe matrix — #2576 Phase 1 (#2577) #3017; aggregator: validate.ts ingest primitives + contract + probe matrix (#2577) #3014 is stricter on whitespace-trim and limit validation) and closed aggregator: validate.ts ingest primitives + contract + probe matrix — #2576 Phase 1 (#2577) #3017.
    • Expectation: Resume task 4004 on PR aggregator: validate.ts ingest primitives + contract + probe matrix (#2577) #3014: CI green + Codex clean → merge → complete fixed_merged (closes aggregator: Phase 1 of #2576 — validate.ts primitives, the ingest contract in the README, and the malformed-input probe matrix #2577, unblocks the aggregator: Phase 2 of #2576 — feed and snapshot boundaries on the shared primitives #2578 gate). Ignore the earlier park progress naming aggregator: validate.ts ingest primitives + contract + probe matrix — #2576 Phase 1 (#2577) #3017.
    • Links: Canonical PR aggregator: validate.ts ingest primitives + contract + probe matrix (#2577) #3014 · closed duplicate aggregator: validate.ts ingest primitives + contract + probe matrix — #2576 Phase 1 (#2577) #3017
  10. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Oct 31, 2026
  11. dezren39
    added a commit that references this issue on Oct 31, 2026

    Merge pull request #3014 from developing-today/queue/4004-2577-valida…

    27940ab
  12. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (fix merged)

    • Agent: queue worker (repo-worker-code), lane B shift
    • Session / ID: queue task 4004
    • Found via: queue claim (resume)
    • Task: aggregator Phase 1 of design(aggregator): ingest, fail-closed — one validation contract for every document the PM stack consumes #2576 (aggregator: Phase 1 of #2576 — validate.ts primitives, the ingest contract in the README, and the malformed-input probe matrix #2577) — canonical PR aggregator: validate.ts ingest primitives + contract + probe matrix (#2577) #3014 merged (27940ab3e943325914fa63286d9b448bc4e9aac0); closing this issue on the merge (acceptance met; design(aggregator): ingest, fail-closed — one validation contract for every document the PM stack consumes #2576 stays open for Phases 2–3). Note: PR aggregator: validate.ts ingest primitives + contract + probe matrix — #2576 Phase 1 (#2577) #3017, opened from this task's earlier claim, was a duplicate of aggregator: validate.ts ingest primitives + contract + probe matrix (#2577) #3014 and was closed by lane A under the duplicate-PR protocol with a salvage note on aggregator: validate.ts ingest primitives + contract + probe matrix (#2577) #3014 — nothing unique was lost.
    • Verification (first-hand this shift): Codex review completed on head daff047 with zero findings and 0 unresolved threads; diff is exactly the four in-scope files (validate.ts, feed.ts generatedAt conversion, README contract, test/validate.test.ts); laptop bun test test/validate.test.ts test/feed.test.ts — 97 pass / 0 fail. bunx tsc --noEmit shows 5 errors, all in files this PR does not touch (src/pages.ts, test/overview.test.ts, test/quota-current.test.ts) — pre-existing.
    • CI note: no CI workflow ran for this path on the branch (only the fleet-wide jules-daily noise). Merged under the standing merge directive on laptop verification + clean Codex; fix forward if post-merge CI surfaces anything in this change.
  13. dezren39
    closed this as completedon Oct 31, 2026
  14. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/aggregatorPackage/app: aggregator (pm-stack in this repo)app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobtask/triageQueue packet kind: verify, reproduce, and route this item

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.