Repository navigation
Open
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/lLarge: multi-day or open-ended; expect staged check-insepic/pm-stackReprioritization program epic (2026-11-12)kind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus/triagedTriaged and routed (see agent note)task/triageQueue packet kind: verify, reproduce, and route this item
Description
What
Replace the Drive-workbook → Postgres import for model/benchmark data with a workbook-free, append-only event log in the muse-dev Supabase (alongside the existing ainventory schema), plus an agent interpretation pass whenever new data lands.
Full design: ~/workspace/goals/supabase-muse-dev-platform-backups/files/aa-event-log-design-2026-10-26.md (Drew's brief, 2026-10-26).
Core requirements
- Append-only: measurement and price data are INSERT-only event rows with full provenance (source kind: aa / modelsdev / firstparty / thirdparty / probe / provider-doc; source URL; source date; ingest timestamp). Never edit an existing measurement. "Current" is a view: newest per (model × effort × benchmark × benchmark version), so a model's history across weeks and benchmark versions stays comparable.
- Notes as data: dated notes/anecdotes attach to models and ingest batches, attributed by kind — first-party claims (e.g. vendor launch claims), third-party reports, agent observations. Multiple per model; never collapsed into a single summary.
- Dimensional pricing: price rows carry a context band (min/max tokens — Luna/Haiku charge differently ≤100k vs >100k) and a time window (flat / peak / off-peak with hours). Cost per task is computed per band and per window.
- Provider pricing policy: a versioned table recording, per provider (and model/family scope), whether that provider passes windowed pricing (DeepSeek peak/off-peak) through or charges flat — seat valuation depends on it.
- Gather + interpret loop: a scheduled gatherer pulls AA + models.dev + provider catalogs, diffs against the current views, inserts only new observations, and dispatches an agent to interpret each non-empty batch (batch note + follow-up research). New-model detection is part of the diff.
Migration path
- New tables/views land beside
ainventory(archive stays readable). - Backfill current values from
ainventoryas first events (source kindworkbook-import, dates preserved). - Explorer collector (fleet feed
aasection) switches to the new views at parity. - Retire the workbook leg of
coding-plan-watch-dailyafter a clean week.
Open questions (from the design doc)
- AA structured access vs page scraping for the gatherer.
- DeepSeek peak/off-peak exact windows/multipliers (verify from the official pricing page — do not encode from memory), and which of our DeepSeek doors pass the window through vs charge flat.
- Context-band edges per provider stay in data, not code.
Acceptance criteria
- Measurement and price data are INSERT-only event rows in muse-dev Supabase with full provenance (source kind, source URL, source date, ingest timestamp); no code path updates or deletes an existing measurement.
- A 'current' view returns the newest row per (model × effort × benchmark × benchmark version), and a model's history across weeks/benchmark versions remains queryable.
- Price rows carry a context band (min/max tokens) and a time window (flat / peak / off-peak with hours), and cost-per-task is computed per band and per window.
- A versioned provider-pricing-policy table records per provider (and model/family scope) whether windowed pricing is passed through or charged flat.
- The scheduled gatherer (AA + models.dev + provider catalogs) inserts only new observations, detects new models, and dispatches an agent interpretation pass for each non-empty batch (batch note + follow-up research filed).
Metadata
Metadata
Assignees
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/lLarge: multi-day or open-ended; expect staged check-insepic/pm-stackReprioritization program epic (2026-11-12)kind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus/triagedTriaged and routed (see agent note)task/triageQueue packet kind: verify, reproduce, and route this item
Activity
developing-today commentedon Oct 27, 2026
CODE-373
dezren39 commentedon Oct 27, 2026
Intake review
Related: #1249 (Terra follow-up data hunt — its findings are an early consumer of this pipeline), design:
~/workspace/goals/supabase-muse-dev-platform-backups/files/aa-event-log-design-2026-10-26.md.Notes: This replaces the Drive-workbook → Postgres import. The design doc is the spec; the body already enumerates the core requirements, which this pass restated as testable acceptance criteria.
Risks: Schema work in muse-dev touches the same project as the repo queue (
agentschema) — keep the new schema separate (alongsideainventory) and additive-only, per the queue pilot's migration discipline. Benchmark-version comparability is the subtle part: never let a 'current' view silently mix benchmark versions.Suggested approach: Build in slices: event tables + current view first (import one AA snapshot by hand), then notes, pricing dimensions, policy table, and the gather+interpret loop last.
dezren39 commentedon Oct 27, 2026
Phase 1 complete — event log live beside the workbook era, parity proven, gatherer dry-run working
1. Schema (migration
0013_aa_event_log.sql, applied toainventory)New tables, all additive beside the untouched workbook-era tables, RLS on with no policies (same posture as existing tables):
measurement_events— INSERT-only: model (+ variant key, run key), effort, benchmark + benchmark_version split out, metric, value, intelligence index, TTFT s, output t/s, output tokens/task, cost/task, task time, source kind/ref, source_date (the source's own date), ingested_at, ingest_batch_id, raw jsonb.price_events— INSERT-only, dimensional: $/1M in/out/cached/cache-write × context band (context_min/max_tokens) × time window (flat|peak|offpeak+ hours/TZ), provider (null = list price).provider_policies— versioned by new rows: per provider/scope, window behaviorpass_through|flat|unknown.notes— kind-checked (first_party_claim|third_party_report|agent_note|anecdote), attachable to a model and/or an ingest batch.ingest_batches— one row per gather run.v_current_measurements/v_current_prices— DISTINCT ON the natural key, newest source date → newest ingest → highest id.Append-only is enforced, not just conventional: BEFORE UPDATE/DELETE triggers raise on the three event/policy tables (proven live: an UPDATE fails with
ainventory.measurement_events is append-only (issue #1248)), and UPDATE/DELETE grants are revoked from all API roles.2. Backfill (
ainventory-import/backfill_event_log.sql, counts read back from the DB)benchmark_results+ 137 from the latest batch's Rankings rows. The 10ingest_batchesrows reuse the original workbookimport_batchuuids;ingested_atis each row's original import time;source_datepreserves AA snapshot dates (2026-09-28 / 2026-10-16 in Rankings keys, per-row raw dates in benchmark_results).model_idresolved for 656/779 (84%).unknown: the design's instruction was to verify pass-through vs flat from sources, not encode a guess.#VALUE!/ blank score — no AA measurement existed, so no event was fabricated. Accounted for in a batchagent_note.3. Parity vs
v_rankings— PASS (report:goals/supabase-muse-dev-platform-backups/files/aa-event-log-parity-2026-10-27.md)For every (variant key × effort), the current view was compared against v_rankings' newest-snapshot row: 107 distinct keys both sides, 0 missing, intelligence 107/107 exact, cost 107/107 within the workbook's own 2-dp rounding, speed 106/107 within rounding. Spot-checked field-by-field: GPT-6 Luna max (38 / $0.07 / 122.1), GPT-6.1 Sol max (52 / $0.72 / 57.1), Claude Haiku 5.5 max (43 / $0.21 / 238.4), DeepSeek V4.1 Flash max (39 / $0.27 / 217), DeepSeek V4 Pro 0813 max (36 / $0.674 / 89.03).
The single divergence is instructive: V4 Pro speed — the workbook carries 93 t/s, AA's own page says 89.03, and the view prefers the AA-direct event. The old pipeline hid exactly this class of discrepancy by overwriting. Two Phase-2 data-quality notes from the report: variant keys were renamed between snapshots (
reasoning→yessegment), creating parallel series for a few models; and TTFT exists nowhere in the backfill (it lived only in Test_Runs) — it starts with the live gatherer.4. Gatherer dry-run (
ainventory-import/gather_events.py, diff atainventory-import/dry_runs/gather_diff_2026-10-27.json)AA has no open structured endpoint (the v1 API 404s without a key), but the /models page embeds a full per-variant JSON payload — the gatherer parses that, plus models.dev/api.json, and diffs against the current views. Zero writes (event counts verified unchanged after the run). Would-insert diff for 2026-10-27:
…-previewkey; models.dev'sdeepseek-v4-flashvs AA'sv4.1checkpoint naming).Phase 2 (remaining — this issue stays open)
gather_events.pyfrom dry-run to insert mode (oneingest_batchesrow per run; events only for the diff), on the schedule that replaces the workbook leg ofcoding-plan-watch-daily.v_current_measurements/v_current_prices(parity above is the gate — it passes).provider_policiesseeds and windowedprice_events.coding-plan-watch-daily(archive tables stay readable).dezren39 commentedon Oct 27, 2026
Pointer (2026-10-27): a permanent findings event store now exists at
files/findings-event-store.mdin the keep-the-four-repos-healthy goal workspace — append-only, structured entries (subject, finding, evidence, significance, action), written by pool-intelligence, pool-composition-review, and the steward for all pool/model findings, qualitative and quantitative. When this issue's workbook-free event-log pipeline lands, it should consume/subsum the findings store rather than start a parallel one; the store's entry format is documented in its header.feat(web): Cost Explorer data layer: CAI rows + token prices
33 remaining items
dezren39 commentedon Nov 17, 2026
Phase 2 slice 2 (#10040) implementation is in PR #11439: #11439. It adds append-only interpretation-run/findings tables and the gatherer-only awaiting view, plus a CLI for recording batch notes/follow-ups/findings and importing structured findings exports. Migration 0026 was applied to muse-dev2 during execution. Live verification: six batch interpretation runs and six findings; the awaiting queue is empty. The canonical Markdown findings-store file/design doc named in the issue was not available on this host, so the importer accepts JSON exports rather than assuming a Markdown grammar.
dezren39 commentedon Nov 21, 2026
agent-note:v1
#1248 Phase 2 slice 4 (Explorer switch, task 16924) is implemented in PR #12221: #12221. Latest
configs/caipayloads use the current-measurements projection; historical batches preserve workbook-import AS-OF scope. Focused tests pass (3 SQL, 24 batches/cache), and live collector/fingerprint query results match exactly (133 configs, 27 CAI rows). Latest-snapshot parity: 109 common keys of 110, scores 109/109 exact, costs 109/109 within rounding, speeds 108/109 within rounding; one absent key and the known DeepSeek speed divergence are noted in the PR. Typecheck could not run because the worktree lacks Bun type definitions. CI pending.dezren39 commentedon Nov 22, 2026
Phase 2 slice 3 (identity resolution, #10041) is implemented in PR #12271: #12271. AA measurements and AA/models.dev price rows now resolve to unambiguous canonical
ainventory.modelsrows (name + model_id); ambiguous and unknown spellings are not merged. Focused gatherer tests pass (12), with no schema or live DB writes. Awaiting PR CI/review.dezren39 commentedon Nov 22, 2026
Slice 3 (#10041) merged in PR #12271 (merge commit
b55741493708d0968b0e4f08d7296a5beb8a1949). The identity-resolution change landed with the focused 12-test suite passing. #10041 is closed; downstream #10042 can proceed against the canonical AA/model identity behavior.dezren39 commentedon Nov 24, 2026
Second-pass verdict (openchamber lane oc-code-03, queue task 21738, 2026-11-24)
Fresh state: #1248 OPEN, task/triage, effort/l, epic/pm-stack. Slice 3 landed (PR #12271) and the identity-resolution change is recorded above. The remaining slices carry their own follow-on, so no new packet is routed from this pass.
dezren39 commentedon Nov 26, 2026
Triage (queue task 24959, lane 11, 2026-11-26): keep open. Every Phase 2 slice but one has landed, and the last one waits on its calendar gate.
No new packet. The remaining slice already has its own issue and gate, and this parent can close when #10044 does.
Generated by Claude Code
dezren39 commentedon Nov 27, 2026
Triage confirmation (queue task 25453, xaltha, 2026-11-26): keep #1248 open — confirms lane 11's task-24959 verdict from earlier today, re-verified independently.
developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (lane CEN-C01) — body + all 22 comments re-read; concurs with the 2026-11-26 triages (tasks 24959, 25453):
priority/normalconfirmed.developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (Felix): full re-read (body, labels, all comments, edges) in the CODE-6 recovery pass, concurring with the parallel census note (lane CEN) already on this thread, whose claims I verified against live state in this pass. STRENGTHS: phase-2 accounting is exact — slices #9999/#10040/#10041/#10042/#10043 all CLOSED. PRIORITY VALIDATION: priority/normal, single, correct. FIXES I APPLIED: none needed. REMAINS: sole remainder is #10044 (workbook retirement), parked on its calendar gate — one clean week of the live gatherer (#9999) plus the recorded Excel-retirement checks; no Drewry decision needed.
developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Gaps found: No
status/*or lifecycle label and noapp/*/area/*label. Addedstatus/triagedandapp/pm-stack(the pipeline feeds the PM stack's model/route data). An## Acceptance criteriasection is present.Strengths: The design choice is stated up front (workbook-free, append-only event log + agent interpretation) — the anti-pattern it replaces is named in the title, so the rationale survives.
Note: lane CEN-C01 also posted a census comment on this issue earlier today (analysis only, no edits). This pass re-verified the live state and applied the metadata fixes below, so the two comments complement rather than duplicate each other.
Actions taken by this census: Labels added:
status/triaged,app/pm-stack.developing-today-fleet commentedon Nov 29, 2026
Phase 2 slice 6 update — 2026-11-29 (task 16926, lane code-h)
Slice 6 (#10044, workbook retirement) was rechecked after its clean-week date. #9999 is CLOSED (2026-11-25); #10040 is CLOSED (2026-11-23); #10042 is closed/in-review and Explorer PR #12221 merged 2026-11-22T18:02:11Z. Calendar time has elapsed, but no available run logs prove one clean live week for both slices 1 and 4, or that the event-log path covered every daily run without a gap. The laptop cron workspace/design/run logs were not readable from this seat. No retirement performed; #10044 is parked until that evidence is available.