Skip to content

docs: demote abletonDevices.ts to research-only baseline (NEEDS-WIRING decision) - #159

Merged
slittycode merged 4 commits into
mainfrom
claude/asa-ableton-audit-gy9xdh
Jun 11, 2026
Merged

docs: demote abletonDevices.ts to research-only baseline (NEEDS-WIRING decision)#159
slittycode merged 4 commits into
mainfrom
claude/asa-ableton-audit-gy9xdh

Conversation

@slittycode

Copy link
Copy Markdown
Owner

What

Records the owner's resolution of the NEEDS-WIRING wire-or-demote decision from apps/backend/NEEDS.md: the deterministic recommendation engine (apps/ui/src/data/abletonDevices.ts) is formally demoted to a research-only baseline. It stays exactly where it is as the scored free source in GOAL.md sub-goal 3's three-source comparison (via the emit_deterministic_recs.ts eval bridge), but it is not to be wired into the product, and score-driven product improvements land on the Phase 2 provider path instead.

Context: the module is imported by no UI component, service, or test (the dead-code finding in NEEDS.md, also flagged by audits/full-review-2026-05-30.md). With the Claude provider now merged as a no-cost Phase 2 route, wiring a second uncited recommendation surface into the product has no case — improving it would raise a harness number for code nobody runs (PURPOSE.md decision #5).

Where the decision is recorded

  • apps/ui/src/data/abletonDevices.ts — header now states the research-only status, its sole consumer, and the keep-import-pure constraint
  • apps/backend/scripts/emit_deterministic_recs.ts — bridge header updated to match
  • apps/backend/NEEDS.md — the NEEDS-WIRING finding marked ✅ DECIDED with standing consequences; the citation-emit candidate marked moot as a product path
  • apps/backend/RECOMMENDATION_VERDICT.md — "reconcile when wiring for real" follow-up rescoped to baseline-fairness only
  • BACKLOG.md + CLAUDE.md Backport Candidates — "shipped" claim qualified so future agents don't assume it's on the product path

Verification

Comments and docs only — no executable code changed. npm run lint (tsc) green; evaluate_recommendations.py --self-test PASS (good 1.000 / bad 0.000).

https://claude.ai/code/session_01YB5QFBLL4nbqPSdtcnxrLy


Generated by Claude Code

claude added 4 commits June 10, 2026 21:50
…bleton + the rec-proof harness

The ASA -> asa-ableton boundary (and the GOAL.md fixture loop) ran on
hand-extracted interpretation JSON: the result lives embedded in the run
snapshot, the warn-and-keep validationWarnings in a different subtree
(attempt diagnostics), and provenance in a third. asa-ableton's Gate
alpha fixture and every per-fixture phase2.json in the owner plan were
produced by snapshot surgery — an unversioned, fragile handoff.

1. phase2_export.py + GET /api/analysis-runs/{run_id}/export/phase2:
   single self-contained phase2-export.v1 envelope — the stored
   producer_summary interpretation result verbatim (incl. the frozen
   recommendations.v1 projection), the authoritative Phase 1 payload its
   citations resolve against (invariant #2 verifiable offline), the full
   validationWarnings trail, and provenance. Thin lookup-and-serve,
   csv_export.py pattern; 404 RUN_NOT_FOUND / PHASE2_EXPORT_NOT_AVAILABLE.
   Derived and read-only — exports stored state, rewrites nothing.
2. recommendation_evaluation.coerce_phase2_payload: --phase2 (and a
   fixture-dir phase2.json) now accepts either a bare Phase2Result or
   the export envelope, so the downloaded file feeds the scorer as-is.
3. docs/ASA_ABLETON_BOUNDARY.md: the cross-repo contract — file-coupled
   not code-coupled, consumer guidance (prefer recommendations.v1
   entries; dedupe is a consumer concern — Gate alpha's 60.7%-vs-50%
   skip-rate accounting; flagged != invalid), and the v1 freeze policy.

Tests: +15 (10 builder incl. envelope-key freeze, 3 route, 2 unwrap).
tests.test_server 227 OK; adjacent suites 110 OK; full discover matches
the unmodified-tree baseline exactly (env-only matplotlib/torch gaps).

https://claude.ai/code/session_01YB5QFBLL4nbqPSdtcnxrLy
…chno 145 + UKG 2-step 132

Owner confirmed genre fit for house/melodic-techno/acid but swapped the other
two recommendation-corpus fixtures to genres they actually produce:

- techno_rumble_130 -> hard_techno_rumble_145: distorted sine kick (Drum Buss
  on the kick chain, Boom 45 Hz), rumble reverb return + held sub, 145 BPM.
  Stays the pilot fixture (smallest spec, 9 device entries).
- dnb_reese_174 -> ukg_2step_shuffle_132: 2-step shuffle at 132 BPM, G minor.
  Swing lives in the committed MIDI (57% 16ths), asserted via
  grooveDetail.hihatSwing / perDrumSwing.snare / bassDetail.grooveType.
  Retires the fixture whose proxy fingerprint misread BPM half-time (174->116).

Both new fixtures ship spec-only (phase1Fingerprint: null, no fingerprint
file) — the distrusted _synthetic proxy fingerprints are retired with the old
slugs, and load_fixture tolerates the missing file (citation checks SKIP until
the real Ableton render lands). truePeak intents now use dBTP per ADR 0002
(old manifests carried stale linear targets). New MIDI clips bake correct
tempo metas and were byte-verified (the retired dnb melody encoded ~116 BPM,
not 174). ukg also ships audio_drums.mid so the shuffle answer key is
reproducible without hand-programmed groove.

Docs updated: NEEDS.md (genre confirmation resolved, inventory + build queue),
plans/owner-actions-recommendation-proof-plan.md (pilot + render order),
RECOMMENDATION_VERDICT.md (corpus-composition note; old per-fixture proxy
numbers not comparable).

Verified: evaluate_recommendations.py --fixture <both> --source baseline
(catalog-valid, zero issues), --self-test PASS, 34/34
tests.test_recommendation_evaluation.

https://claude.ai/code/session_01YB5QFBLL4nbqPSdtcnxrLy
…G decision)

Owner resolved the wire-or-demote choice from NEEDS.md's dead-code finding:
the deterministic recommendation engine stays as the scored free baseline in
the GOAL.md sub-goal 3 three-source comparison but is NOT to be wired into
the product. Score-driven product improvements land on the Phase 2 provider
path instead.

Recorded in: the module header (abletonDevices.ts), the eval bridge header,
NEEDS.md (decision + the now-moot citation-emit candidate), BACKLOG.md,
RECOMMENDATION_VERDICT.md, and CLAUDE.md's Backport Candidates line.

No code changes — comments and docs only. Verified: npm run lint green,
evaluate_recommendations.py --self-test PASS.

https://claude.ai/code/session_01YB5QFBLL4nbqPSdtcnxrLy
@slittycode
slittycode merged commit c4aee9b into main Jun 11, 2026
4 of 5 checks passed
@slittycode
slittycode deleted the claude/asa-ableton-audit-gy9xdh branch June 11, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants