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 — Time-of-day aware routing: peak/off-peak pool, model, and effort selection · Issue #9378 · developing-today/code

Time-of-day aware routing: peak/off-peak pool, model, and effort selection #9378

New issue
Copy link
New issue
Copy link
Done
#14523
Done
Time-of-day aware routing: peak/off-peak pool, model, and effort selection#9378
#14523
Copy link

Description

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

Ask (Drew, 2026-11-13): routing should make time-of-day decisions — pick pools, models, and efforts with peak vs off-peak pricing and quota pressure in mind, instead of running one static chain around the clock.

Why now: the quota Analytics & projection section (live 2026-11-13, /quota#analytics + /api/quota-analytics.json) now measures hour-of-day and day-of-week burn patterns per pool/model/effort, week-over-week deltas, and projected time-to-wall per reset window. The data to drive time-aware routing exists; the policy layer doesn't.

Scope:

  • A time-aware routing policy: per pool, the cheap/expensive windows (provider peak pricing where it exists, quota-window pressure where it doesn't — e.g. a weekly pool at 90% on Monday is "expensive" until its reset; the same pool Sunday night pre-reset is "use it or lose it").
  • Decision inputs: time of day, day of week, holidays (the analytics section already labels US federal holidays), current pool % + projected wall, reset proximity.
  • Actions the policy may take: prefer flat/free tiers during peak, shift deferrable batch work (triage sweeps, hygiene, design-register scans) into off-peak windows, raise/lower effort by window for the workhorse class, and pre-burn a pool that would otherwise expire unused.
  • Represent the policy as data in the route config (like the rest of the routing rules), not hard-coded branches; every time-based switch must be visible in the route_attempt record so its effect is measurable against the analytics.
  • Guardrails: never starve interactive/priority-10 work for a pricing window; quota routing rules (100% = leg not attempted, sticky working leg, no probes on scarce quota) still apply — time-of-day chooses among HEALTHY legs, it never resurrects a walled one.

Acceptance: policy spec + config representation merged; one live pool demonstrably switching preference by window with route_attempt evidence; analytics shows the before/after burn-by-hour for that pool.

Refs: /quota#analytics-patterns (hour/day patterns), code#9363/#9364 (analytics build), the Luna effort round-robin trial (PR #9018) as the measurement pattern to reuse.

Activity

Next
  1. dezren39
    added
    queue/queuedHas a queued queue task
    on Nov 13, 2026
  2. developing-today commented on Nov 13, 2026

    @developing-today
    developing-todayBot
    on Nov 13, 2026 – with developing.today
    Contributor
    More actions

    CODE-3037

  3. github-actions
    assigned
    dezren39
    on Nov 13, 2026
  4. dezren39 commented on Nov 13, 2026

    @dezren39
    dezren39
    on Nov 13, 2026
    MemberAuthor
    More actions

    Picked up by repo-worker-code-a — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-code-a posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  5. dezren39
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Nov 13, 2026
  6. dezren39 commented on Nov 13, 2026

    @dezren39
    dezren39
    on Nov 13, 2026
    MemberAuthor
    More actions

    Progress from repo-worker-code-a: triaged: Drew-specified design program (sibling #9399); laptop exec route down this shift so implementation cannot start/verify; releasing free with first step + acceptance recorded

  7. dezren39 commented on Nov 13, 2026

    @dezren39
    dezren39
    on Nov 13, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: triaged (released free — design program, not a one-shift fix)
    worker: repo-worker-code-a (fallback mode, queue backend down)

    Triage assessment (fresh read of the issue, 2026-11-13):

    • Kind: design + implementation program (sibling of the pool & effort system program on Program: pool & effort system — effort tiers per pool, OpenChamber category pools, granular stats store (design mill) #9399). Drew's ask is already well-specified: scope, decision inputs, guardrails, and acceptance are all stated in the body, so no further specification is needed before work starts.
    • First concrete step for whoever takes it: draft the policy spec + config representation (policy as data in the route config, every time-based switch visible in route_attempt), reusing the Luna effort round-robin measurement pattern (PR opencode config: workhorse Luna seat round-robins medium/high via luna-effort-rr (Drew 2026-11-12) #9018) and the live quota analytics inputs (/quota#analytics, feat(pm-aggregator): quota analytics & projection section #9363/fix(pm-aggregator): read skill names from state.input.id #9364). Acceptance requires one live pool demonstrably switching preference by window with route_attempt evidence plus before/after burn-by-hour analytics — that live-evidence stage cannot be faked or shortcut.
    • Why this lane is not implementing it in this shift: implementation and live verification must run on the laptop (route config + pool evidence), and the laptop-agent exec route failed repeatedly this shift ("proxy closed during CONNECT" on every exec attempt after an initial health success), so no repo worktree work could be started or verified. The queue backend is also down (fallback mode), which is why this note carries the state instead of a broker checkpoint.
    • Released free with the full remaining scope intact: policy spec, config representation, one-pool live switch with route_attempt evidence, analytics before/after. Nothing about the issue is blocked by a decision — it is ready to claim.
  8. dezren39 commented on Nov 13, 2026

    @dezren39
    dezren39
    on Nov 13, 2026
    MemberAuthor
    More actions

    Released by repo-worker-code-a (outcome: free). triaged only, NOT done: Drew-specified time-of-day routing design program (sibling #9399); remains: policy spec + route-config representation, one live pool switching by window with route_attempt evidence, analytics before/after. Released free because laptop-agent exec route failed all shift (proxy closed during CONNECT), so laptop implementation/verification could not start; triage note with first concrete step posted on #9378

  9. dezren39
    added
    queue/queuedHas a queued queue task
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 13, 2026
  10. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    Triage verdict for #9378 (queue task 18944, detached route opencode-route/workhorse). Not resolved; route a spec packet, no implementation.

    Fresh evidence, read 2026-11-17T05:13Z:

    • Time-of-day aware routing: peak/off-peak pool, model, and effort selection #9378 is OPEN with queue/queued. The body is unchanged from Drew's 2026-11-13 ask. No linked PR, and no commit on main adds a time-of-day policy. Searching open and merged PRs for time-of-day, time-aware and peak returned only the existing DeepSeek window PRs feat(config): gate background on DeepSeek peak windows, order spark-plan, bump opencode pin #1818 and docs(config): document DeepSeek holiday gap in peak windows (opencode#821) #2105, which are the mechanism this policy would extend.
    • Existing pieces: the DeepSeek peak windows in .opencode/opencode.jsonc (experimental.model_route_windows, deepseek-peak-early/late, chain comment around lines 3931-3960). The pool/effort brief doc/2026-11-13T09-26-00Z_design_pool_effort_system/brief.md:149 ticketed Time-of-day aware routing: peak/off-peak pool, model, and effort selection #9378 as a sibling of Program: pool & effort system — effort tiers per pool, OpenChamber category pools, granular stats store (design mill) #9399 and noted that windows have no calendar/holiday support (opencode#821).
    • Sibling Program: pool & effort system — effort tiers per pool, OpenChamber category pools, granular stats store (design mill) #9399 is OPEN, status/parked and queue/parked, last note 2026-11-16T18:02Z. Dependency decision: Time-of-day aware routing: peak/off-peak pool, model, and effort selection #9378 does not depend on Program: pool & effort system — effort tiers per pool, OpenChamber category pools, granular stats store (design mill) #9399's effort tiers. The spec below does not need them, so I did not block on it. The later live-switch packet should be sequenced after the spec.
    • Kaneo item CODE-3037 (linked 2026-11-13) is the tracker for this item.

    Action taken:

    • Follow-on packet queue task 20400 on repo-health-code-pilot (kind small_fix, dedupe repo-health:v1:fix:developing-today/code:issue:9378). Scope: a docs-only policy spec and config representation (per-pool windows, decision inputs, guardrails, route_attempt fields for measurability, open questions with defaults). Excluded: any live pool switch, any config change, the before/after analytics, and holiday implementation (opencode#821).
    • Task 18944 (this triage) is completed with that routing.

    Open questions, each with the default I chose:

    1. Should calendar and holiday exclusion land in the spec now? Default: name it as a dependency on opencode#821, do not implement.
    2. Is Program: pool & effort system — effort tiers per pool, OpenChamber category pools, granular stats store (design mill) #9399 a blocker for the live switch? Default: no for the spec; the live switch is sequenced after the spec packet.
    3. Which pool is the first live switch? Default: left to the spec packet to propose, with DeepSeek peak windows as the candidate because they already exist in config.
  11. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    Dispatch binding record for queue task 18944: session ses_e5e18119063ffeHQWB7nd5Wovj was launched on opencode-route/workhorse in /home/user/git/fleet/queue-18944-9378-time-aware-routing (branch queue/18944-9378-time-aware-routing) and verified by assistant-message content engaging the triage. The session completed triage and routed the remaining spec scope to follow-on task 20400; see the triage note above. Queue-side bind did not succeed (no lane ledger row at attempt time); the later lane row is direct with no session id. Queue task 18944 remains claimed and must be terminalized by its authorized claim owner; this comment records the session/task/issue relationship, not a queue completion.

  12. 3 remaining items

  13. dezren39
    added
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/queuedHas a queued queue task
    on Nov 18, 2026
  14. developing-today
    added
    status:in-review
    on Nov 18, 2026
  15. dezren39
    added a commit that references this issue on Nov 18, 2026

    Merge pull request #11797 from developing-today/queue/20400-9378-time…

    c87db55
  16. dezren39 commented on Nov 18, 2026

    @dezren39
    dezren39
    on Nov 18, 2026
    MemberAuthor
    More actions

    agent-note:v1
    lane: openchamber-scheduled-lane (code-j) · worker repo-worker-code · queue task 20400 · dedupe repo-health:v1:fix:developing-today/code:issue:9378
    state: triaged → spec merged
    Stage-1 policy spec merged as PR #11797 (merge commit c87db55): doc/2026-11-18T12-00-00Z_design_time_of_day_routing_policy/spec.md. Docs only; no config or code changed. Covers the policy (window classes, A1-A4), config representation extending model_route_windows, guardrails G1-G4, route_attempt fields with before/after metrics, and open questions with defaults. Holiday exclusion is delegated to opencode#821. Prior art: #8838 design (ranking schedules). The live switch packet can start from this spec.

  17. dezren39
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 18, 2026
  18. dezren39
    removed their assignment
    on Nov 20, 2026
  19. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026 – with Claude
    MemberAuthor
    More actions

    Merged work, still open. Every pull request that references this issue has merged (#11797) and none is open, but the issue kept status:in-review. Tasks that name it as a blocker have been waiting on it.

    status:in-review is removed. Whoever takes this next: run the issue's done check against main. Close the issue if it passes; if not, list what is left here and carry on with it (AGENTS.md, "Finishing work").

    By: Claude, 2026-11-22 flow review.


    Generated by Claude Code

  20. dezren39
    removed
    status:in-review
    on Nov 22, 2026
  21. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    🤖 Second-pass verdict (task 21972, lane code-f): NOT resolved — stage-2 follow-on routed.

    Fresh revalidation 2026-11-24:

    • Time-of-day aware routing: peak/off-peak pool, model, and effort selection #9378 OPEN, no labels, no assignees. Referencing PRs docs: time-of-day routing policy spec (#9378 stage 1) #11797, Limited pool: rebuild small on per-member plan limits, delete small-100k #9384, Design time-based route priority schedules #11293 are all MERGED; none open.
    • Stage 1 DONE: policy spec merged as PR docs: time-of-day routing policy spec (#9378 stage 1) #11797 (spec on main at doc/2026-11-18T12-00-00Z_design_time_of_day_routing_policy/spec.md); spec task 20400 terminal done.
    • Remaining: the live half of the acceptance — one live pool demonstrably switching preference by window with route_attempt evidence + analytics before/after burn-by-hour. No live-switch work exists on main; model_route_windows present in config with DeepSeek peak windows as the candidate first pool.
    • Action: enqueued follow-on queue task 22925 (repo-health:v1:fix:developing-today/code:issue:9378:dispatch:9f3a2c1e, repo-health-code-pilot, priority 70) scoped to stage 2 per the merged spec, excluding holidays (opencode#821) and effort tiers (Program: pool & effort system — effort tiers per pool, OpenChamber category pools, granular stats store (design mill) #9399). Live evidence spans time windows by nature; packet permits landing config/code + parking on window observation if one run cannot span two windows.
  22. dezren39
    added a commit that references this issue on Nov 24, 2026

    feat(9378-stage2): record time-of-day window context on route_attempt

    979a47a
  23. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    agent-note:v1
    Agent: felix (Muse lane, 2026-11-25)
    State: label correction — #14863 hygiene audit slice 10

    This issue carries no labels at all — no kind/, no priority/, no status/* — so it is invisible to the label-driven queue and triage views every sibling routes through. Recorded per the audit's comment-only correction practice; the fix is a normal triage pass assigning kind/priority/status. Refs #14863

  24. dezren39
    closed this as completedin #14523on Nov 26, 2026
  25. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    MemberAuthor
    More actions

    PR #14523 merged on 2026-11-26T20:22:09Z as 40b771f99dce799f08c30c1761244eec89f97713. Focused proxy/checker tests and the route-rule guard passed on current main. The remaining two-week after-measure is tracked in #14524 and is now date-gated to 2026-12-10T20:22:09Z.

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

    No labels
    No labels

    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.