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: Cost Explorer inline-script computations from PR #1390 (recommendations, Pareto, projection) ship with no committed tests · Issue #1405 · developing-today/code

aggregator: Cost Explorer inline-script computations from PR #1390 (recommendations, Pareto, projection) ship with no committed tests #1405

New issue
Copy link
New issue
Copy link
Closed
Closed
aggregator: Cost Explorer inline-script computations from PR #1390 (recommendations, Pareto, projection) ship with no committed tests#1405
Copy link
Assignees
dezren39
Labels
app/aggregatorPackage/app: aggregator (pm-stack in this repo)app/pm-stackpm-stack (Pad/Grist) in developing-today/codekind/testTest coverage, test infrastructure, or test-only fixespriority/normalOrdinary priority (the default)source/pr-diff-reviewFiled by the pr-diff-review jobtask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

Finding

PR #1390 (merged, merge commit 37418e56339c315cf0ddf3e61c9c55c1e9d0c0a2) added roughly a thousand lines of new computation to the Cost Explorer's inline browser script in pm-stack/aggregator/src/render.ts — the recommendations engine, the Pareto frontier tables, the Pareto-gap inequality filters, and the task-assumptions projection — with no committed tests for any of that logic. The PR's test changes cover only the data layer (aaCaiPoints, caiFamily, catalog rate windows) plus HTML toContain assertions that the new sections' element ids exist. The PR body says the script was "runtime-smoke-tested against the fixture data" — a one-off manual check that is not in the repo and cannot regress.

Evidence

  • PR: feat(pm): Cost Explorer — ChatGPT-site parity (CAI perspective, Pareto tables, recommendations, bands, projection) #1390 (MERGED 2026-10-27)
  • New untested logic on current main, all inside the AA_EXPLORER_SCRIPT template string in pm-stack/aggregator/src/render.ts:
    • render.ts:2092 pctRank — percentile ranks shown in every Pareto table cell
    • render.ts:2105 paretoSet — non-dominated set behind all four frontier tables
    • render.ts:2170 gapMetrics — score gap / price premium / speed gap behind the inequality filters
    • render.ts:2814 computeRecs — banding, near-top floors, relative price/speed ceilings, dominance removal, tradeoff ranking (relative time)^w × (relative price)^(1−w), lab-diversity passes
    • render.ts:3191 project (+ pjBand band/window selection) — projected $/task and time/task; the PR body hand-verifies one fixture case (~$0.106/task, ~5m 53s) that is not encoded as a test
  • pm-stack/aggregator/test/aa.test.ts on current main contains zero references to computeRecs, project/pjBand, gapMetrics, or pctRank (grep-verified); the new render assertions are expect(html).toContain('id="xpl-pf-score"')-style presence checks.

Why it matters

These functions produce numbers a reader acts on (shortlists, projected costs). Because they live in a template string, neither tsc nor the existing test suite exercises them at all — a sign flip in pctRank, a band-selection off-by-one in pjBand, or a dominance error in computeRecs ships silently. The one hand-verified projection example in the PR body is exactly the kind of case that should have become a fixture test.

Acceptance criteria

  • The explorer script's pure computations (at minimum project/pjBand, paretoSet, pctRank, gapMetrics, and computeRecs banding/ranking) are covered by committed tests that run in the aggregator's normal bun test — e.g. by extracting them into an importable module the template string also uses, or by evaluating the script against the fixture data in a test harness.
  • The PR body's hand-verified projection case (Luna fixture rate: 3 turns × (10k uncached @ $0.75 + 10k cache reads @ $0.075 + 6k output @ $4.50) ≈ $0.106/task; time ≈ 5m 53s) is encoded as a test expectation.
  • Existing suite stays green (bun test in pm-stack/aggregator, bunx tsc --noEmit clean).

Found by pr-diff-review-b reviewing PR #1390's diff against current main. Remainder items for the same PR are already tracked in #1400; this test-coverage gap is not among them.

Activity

Next
  1. dezren39
    added
    kind/testTest coverage, test infrastructure, or test-only fixes
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Oct 27, 2026
  2. developing-today commented on Oct 27, 2026

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

    CODE-496

  3. dezren39
    added
    status/needs-triageNot yet triaged; needs a first look
    source/pr-diff-reviewFiled by the pr-diff-review job
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    app/aggregatorPackage/app: aggregator (pm-stack in this repo)
    on Oct 27, 2026
  4. github-actions
    assigned
    dezren39
    on Oct 27, 2026
  5. dezren39 commented on Oct 27, 2026

    @dezren39
    dezren39
    on Oct 27, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: pr-diff-review-b
    • Session / ID: pr-diff-review-b cron run 2026-10-27 06:18 CDT (lane B first run; B-state initialized this run)
    • Found via: filed this run
    • Task: PR feat(pm): Cost Explorer — ChatGPT-site parity (CAI perspective, Pareto tables, recommendations, bands, projection) #1390 (merged, 37418e5) added the Cost Explorer's recommendations engine, Pareto tables, Pareto-gap filters, and task projection as inline-script functions in pm-stack/aggregator/src/render.ts (pctRank :2092, paretoSet :2105, gapMetrics :2170, computeRecs :2814, project :3191) with no committed tests — grep of pm-stack/aggregator/test/aa.test.ts on current main finds zero references to them; the PR's new tests cover only the data layer plus HTML presence checks, and its hand-verified projection example (~$0.106/task) was never encoded as a test. Enqueued as a triage packet to repo-health-code-pilot.
    • Expectation: triage confirms the coverage gap; done when those computations run under committed bun test coverage including the hand-verified projection case, per the issue's acceptance criteria.
    • Links: PR feat(pm): Cost Explorer — ChatGPT-site parity (CAI perspective, Pareto tables, recommendations, bands, projection) #1390 · issue aggregator: Cost Explorer inline-script computations from PR #1390 (recommendations, Pareto, projection) ship with no committed tests #1405 · remainders tracked separately in Cost Explorer ChatGPT-parity follow-ups: lane charts, chart extras, evidence cards, projection routes #1400
  6. 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 Oct 31, 2026
  7. 17 remaining items

  8. dezren39
    added
    user/reviewNeeds a user-look: Muse reviews first and handles what it can
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 1, 2026
  9. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: repo-worker-code (OpenChamber scheduled lane)
    • Session / ID: ses_e5e6872698dffenlSu4gUQFG5T · queue task 4669
    • Outcome: Queue task completed as pr_opened; issue remains open pending PR test(aggregator): cover Cost Explorer client computations #3737.
    • Verification: Targeted tests pass. CodeRabbit returned neutral/skipping and there are no CI checks; I did not merge.
    • Next: Review and merge PR test(aggregator): cover Cost Explorer client computations #3737 when accepted; sandbox backlog/sweep bookkeeping is deferred to fleet reconciliation.
    • Links: test(aggregator): cover Cost Explorer client computations #3737
  10. dezren39
    added
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    queue/queuedHas a queued queue task
    status/needs-triageNot yet triaged; needs a first look
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 1, 2026
  11. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: triaged (coverage pass)
    Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
    Found via: coverage pass 2026-11-03

  12. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-i
    • Session / ID: task 7707
    • Found via: queue claim
    • Task: triage of issue aggregator: Cost Explorer inline-script computations from PR #1390 (recommendations, Pareto, projection) ship with no committed tests #1405 — verified at current main e7510b90a658c532d680ffc88c8336c1080f645b, verdict: STILL VALID, not handled or superseded.
    • Expectation: triage complete. Evidence: PR feat(pm): Cost Explorer — ChatGPT-site parity (CAI perspective, Pareto tables, recommendations, bands, projection) #1390 verified MERGED (2026-10-27T11:13:38Z). On current main, pm-stack/aggregator/src/render.ts still holds the computations inside the inline explorer script — pctRank at line 4054, paretoSet at line 4067, gapMetrics at line 4132, computeRecs at line 4963, pjBand at line 5396, project at line 5418. Grep of current main test files: pm-stack/aggregator/test/aa.test.ts and pm-stack/aggregator/test/render.test.ts contain zero references to any of them; the only projection-related assertion remains an HTML toContain('data-pj="inputTokens"') presence check. Implementation follow-up enqueued as task 8097 with issue aggregator: Cost Explorer inline-script computations from PR #1390 (recommendations, Pareto, projection) ship with no committed tests #1405's acceptance criteria intact (packet: hidden_files/lane-i-task7707-fix-packet-1405.json in the keep-the-four-repos-healthy goal workspace). Issue aggregator: Cost Explorer inline-script computations from PR #1390 (recommendations, Pareto, projection) ship with no committed tests #1405 stays open, labelled queue/queued for task 8097; the user/review intake is discharged — the review was done here and the verdict is proceed as scoped.
    • Links: PR feat(pm): Cost Explorer — ChatGPT-site parity (CAI perspective, Pareto tables, recommendations, bands, projection) #1390 · task 7707 · task 8097
  13. dezren39
    removed
    status/needs-triageNot yet triaged; needs a first look
    user/reviewNeeds a user-look: Muse reviews first and handles what it can
    on Nov 3, 2026
  14. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), openchamber scheduled lane 1a180ae5
    • Session / ID: ses_e5e5e25ab90ffeG62x8lmVrID2 · queue task 8097
    • Found via: queue claim
    • Task: aggregator: Cost Explorer inline-script computations from PR #1390 (recommendations, Pareto, projection) ship with no committed tests #1405's acceptance is met by PR test(aggregator): cover Cost Explorer client computations #3737 (test(aggregator): cover Cost Explorer client computations), merged 2026-11-03T14:47:30Z as adfa050a8. The pure computations (pctRank, paretoSet, gapMetrics, computeRecs, pjBand, project) moved from the AA_EXPLORER_SCRIPT template string into src/assets/aa-explorer-computations.js, served as a module and imported by the tests, so browser and tests run the same code.
    • Expectation: verified on the laptop at the merge head 60ed6a997 (main merged in, one comment-level conflict in render.ts resolved in main's favour): bun test test/aa-explorer-computations.test.ts test/aa.test.ts 49 pass / 0 fail; test/a11y-1215.test.ts 14 pass / 0 fail. The PR feat(pm): Cost Explorer — ChatGPT-site parity (CAI perspective, Pareto tables, recommendations, bands, projection) #1390 hand-verified Luna projection (~$0.10575/task, 5m53s) is encoded as a test expectation. No merge-gating CI ran on the head (repo-wide jules-daily-* startup failure, fix(ci): restore daily dispatch workflows (startup failure) + push-trigger audit #4595 track); CodeRabbit neutral.
    • Links: PR test(aggregator): cover Cost Explorer client computations #3737, PR feat(pm): Cost Explorer — ChatGPT-site parity (CAI perspective, Pareto tables, recommendations, bands, projection) #1390, queue task 4669 (original PR author), task 8097 (merge shepherd)
  15. dezren39
    closed this as completedon Nov 3, 2026
  16. dezren39
    removed
    queue/queuedHas a queued queue task
    on Nov 3, 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/codekind/testTest coverage, test infrastructure, or test-only fixespriority/normalOrdinary priority (the default)source/pr-diff-reviewFiled by the pr-diff-review 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.