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: OpenCode Go reset dates are paired by section position, not by workspace — one missing or extra 'monthly reset' line shifts both workspaces' resets · Issue #1626 · developing-today/code

aggregator: OpenCode Go reset dates are paired by section position, not by workspace — one missing or extra 'monthly reset' line shifts both workspaces' resets #1626

New issue
Copy link
New issue
Copy link
Closed
#1717
Closed
aggregator: OpenCode Go reset dates are paired by section position, not by workspace — one missing or extra 'monthly reset' line shifts both workspaces' resets#1626
#1717
Copy link
Assignees
dezren39
Labels
app/aggregatorPackage/app: aggregator (pm-stack in this repo)effort/sSmall: expected under 2 hours 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/triageQueue packet kind: verify, reproduce, and route this item

Description

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

Problem

The OpenCode Go quota extractor pairs each workspace with its monthly reset by global position in the section, not by the paragraph the reset appears in. One missing or one extra monthly reset … line silently shifts both workspaces' reset dates — each pool renders the other's reset, or a stale historical one, with no error anywhere.

pm-stack/aggregator/src/quota-extract.ts, goWorkspace (:152-176):

// Resets appear in the same paragraph order as the workspaces.
const resets = [...s.matchAll(/monthly reset (\w{3}) (\d{1,2}), (\d{2}:\d{2}) UTC/gi)];
const r = name === "Personal" ? resets[0] : resets[1];

Both Go pools share the one ### OpenCode Go section (POOL_SPECS, :276/:284 — the same sectionOf text is passed to both extractors). The workspace percentages are matched per-workspace by name, but the resets are collected section-wide and indexed [0]/[1]. The pairing holds only while every workspace paragraph carries exactly one reset line and nothing else in the section mentions one — and the quota view this parses is a human document that, per this file's own header, "preserves dated observations", so extra dated reset mentions in the section are expected over time.

Evidence (verified on main be7cf62)

Probe on the laptop driving the real extractQuotaPools from quota-extract.ts (sha256 29729137…, identical in both clones; probe + log in the fleet bookkeeping probe-2026-10-28-laneA-goreset/, run twice with identical output), now = 2026-10-28T12:00:00Z:

  • CTRL — Personal paragraph with monthly reset Nov 3, 00:00 UTC, Lab paragraph with monthly reset Nov 9, 00:00 UTC → Personal resetsAt 2026-11-03, Lab resetsAt 2026-11-09. Correct.
  • BUG — Personal paragraph with no reset line, Lab paragraph with monthly reset Nov 9, 00:00 UTC → Personal resetsAt 2026-11-09 (Lab's reset), Lab resetsAt null. Personal inherits the other workspace's reset; Lab loses its own.
  • BUG2 — a stray historical line monthly reset Oct 5, 00:00 UTC earlier in the section, then the CTRL paragraphs → Personal resetsAt 2026-10-05 (the stale mention, rendered in the past), Lab resetsAt 2026-11-03 (Personal's reset). Both wrong, shifted by one.

monthDayTime (:37-45) compounds BUG2: its roll-forward only fires when the date is more than 30 days in the past, so the stale Oct 5 reset is served as a reset date three weeks in the past instead of being recognised as not-this-cycle.

Why it matters

The quota page is the fleet's spend-steering surface: the Go workspaces carry a rotation order ("burn before Lab per rotation order", :168-170) driven by these windows and their reset dates. A shifted pairing tells the operator Personal resets six days later than it does and that Lab never resets — or, in the BUG2 shape, that Personal's reset already passed. Nothing fails loudly: the extractor is fail-soft by design, so the wrong dates render as authoritative.

Acceptance criteria

  • Each Go workspace's monthly reset is taken from its own paragraph (or an equivalently anchored match — e.g. the reset nearest/following that workspace's own percentage line), never by section-wide index.
  • A workspace paragraph without a reset line yields resetsAt: null for that workspace and does not consume another workspace's reset.
  • An extra monthly reset mention elsewhere in the section (historical note, prose) does not shift either workspace's reset.
  • Regression tests cover all three shapes: the paired control, the missing-reset paragraph, and the stray-mention section (the probe fixtures in the fleet bookkeeping are directly reusable).
  • Existing aggregator test suites still pass.

Activity

Next
  1. developing-today commented on Oct 28, 2026

    @developing-today
    developing-todayBot
    on Oct 28, 2026 – with developing.today
    Contributor
    More actions

    CODE-648

  2. 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/aggregatorPackage/app: aggregator (pm-stack in this repo)
    effort/sSmall: expected under 2 hours of work
    on Oct 28, 2026
  3. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · state: filed

    • Agent: new-issue-creator job (new-issue-creator-code-a, lane A)
    • Session / ID: cron new-issue-creator-code-a run 2026-10-28 03:35 CDT
    • Found via: filed this run
    • Task: Triage the OpenCode Go reset-pairing defect: goWorkspace in pm-stack/aggregator/src/quota-extract.ts pairs monthly resets by section-wide index (resets[0]/resets[1]) instead of by workspace paragraph, so a missing or stray 'monthly reset' line shifts both workspaces' reset dates. Verified with a Bun probe on the laptop driving the real extractQuotaPools (control correct; missing-reset and stray-mention fixtures both mis-paired).
    • Expectation: effort/s — done looks like per-paragraph reset anchoring plus regression tests for the control, missing-reset, and stray-mention shapes.
    • Links: probe + log in fleet bookkeeping (probe-2026-10-28-laneA-goreset)
  4. github-actions
    assigned
    dezren39
    on Oct 28, 2026
  5. dezren39
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Oct 28, 2026
  6. 25 remaining items

  7. dezren39
    added
    status/parkedDeliberately paused with a recorded resume condition
    on Oct 28, 2026
  8. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), Lane A shift
    • Session / ID: queue task 1882 (resume)
    • Found via: queue claim
    • Task: Resume from awaiting_ci checkpoint — PR 1717 CI now green; merging and closing out aggregator: OpenCode Go reset dates are paired by section position, not by workspace — one missing or extra 'monthly reset' line shifts both workspaces' resets #1626.
    • Expectation: effort s; done = PR 1717 merged, task 1882 completed.
    • Links: PR aggregator: anchor OpenCode Go resets to each workspace paragraph (#1626) #1717 · branch queue/1882-1626-go-reset-anchor
  9. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    status:in-review
    on Oct 28, 2026
  10. dezren39
    added a commit that references this issue on Oct 28, 2026

    aggregator: anchor OpenCode Go resets to each workspace paragraph (#1626

    3c84d94
  11. dezren39
    closed this as completedin #1717on Oct 28, 2026
  12. developing-today
    added
    status:done
    on Oct 28, 2026
  13. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), Lane A shift
    • Session / ID: queue task 1882
    • Found via: queue claim (resume from awaiting_ci park)
    • Task: PR 1717 merged — OpenCode Go resets now paragraph-anchored per workspace; regression tests for control / missing-reset / stray-mention shapes included.
    • Expectation: done — CI green (nix ci + treefmt pass), laptop quota tests 12 passed, full aggregator suite 314 passed with only pre-existing aggregator: actions.test.ts fails on main — applied snooze never lands in the Snoozed strip ('Snoozed by you (1)' missing) #1682 failure.
    • Links: PR aggregator: anchor OpenCode Go resets to each workspace paragraph (#1626) #1717 · merge 3c84d94
  14. dezren39
    removed
    status:done
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 28, 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)effort/sSmall: expected under 2 hours 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/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.