altimate-code
altimate-code copied to clipboard
dbt-tools: pin the stale-manifest fixes, describe the stale shape, let Fusion skip the Python check
Follow-ups from the review of AltimateAI/altimate-code#1704 (dbt-tools stale-manifest notes and @altimateai/dbt-integration 0.3.19). None of them blocked that PR.
What's missing
- No test pins the 0.3.19 stale-manifest fix. Answered from the last successful parse,
childrenandparentsno longer mark every nodeisExternalProject: true. That was verified by hand, but nothing in dbt-tools' tests would catch a later bump that regresses it. - The skill references don't describe the stale shape.
USAGEsayschildrenandparentsanswer{ stale_manifest, models }when the project check fails. The sixaltimate-dbt-commands.mdreferences under.opencode/skills/*/references/still describe a plain list, and those are the files agents read for impact analysis. - dbt Fusion without Python stops at
altimate-dbt's prerequisite check. The library runs Fusion without a Python interpreter, butaltimate-dbtruns its prerequisite check (check.ts) before every command butdoctor. That check fails when there is no Python path, or no dbt-core in it, whateverdbtIntegrationis. So a Fusion-only setup still gets "Prerequisites not met". - Small gaps in the schema-verify stale note:
- an empty
written_atrenders as(written «»); - its tests have no case for a non-string
written_at; - its tests have no mixed run where only one model's answer is stale;
- the current-manifest control doesn't assert that the message equals the one before the change.
- an empty
Proposed
- A dbt-tools test that drives the stale path (
readManifestLeftOnDisk, asstale-manifest.test.tssets it up) and assertsisExternalProject: false. - One line in each of the six references: when the project check fails, the answer is
{ stale_manifest, models }and may predate the current files. - Skip the Python and dbt-core checks when
dbtIntegrationisfusion, and check that a dbt 2.x binary resolves instead. - Trim
written_atbefore quoting it, and add the three test cases.
Follow-ups left after AltimateAI/altimate-code#1757, from its review. None blocks it.
- The library's PATH lookup: a
dbton PATH that isn't executable hides a working Fusion later on PATH.resolveOnPathtakes the first regular file nameddbt, and doesn't try the next one when running it fails. The fix belongs in@altimateai/dbt-integration. doctor's USAGE text still says "Check prerequisites (Python, dbt, project)". In Fusion modedoctorchecksfusionandproject.- "next to
" in the not-found message also appears for a bare name such aspython3, which the lookup doesn't search next to. - The end-to-end stale test covers
childrenonly. Addparents. - No test pins the adapter's
pythonPath ?? "". - The dbt-cli fallbacks aren't Fusion-aware (pre-existing). In Fusion mode
execDbtLs,execDbtCompileandexecDbtShowresolvedbtwithout checking that it is Fusion. - The stale note follows the reason line (from the review of AltimateAI/altimate-code#1704). The agent reads the mismatch before learning that the spec came from a stale manifest.