From 04c416d2ec3f8f27141dac10fdf9725347f64e67 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 24 Aug 2026 19:52:30 +0000 Subject: [PATCH] fix: regenerate the stale API audit baseline; make wiki-currency diagnosable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wiki-currency has been red on main independently of any PR. Reproduced the run locally against the stack the workflow builds and identified the failure: of the five sub-checks, exactly one fails. --check-version FAIL API DRIFT vs baseline (generated 2026-07-23) --scope all pass 31/31 cited symbols resolve, 0 missing --lint-idioms pass 51 files, no defunct idioms --check-provenance pass 8 pages, 0 errors --check-citations pass 29 citations, 0 missing paths The job log never named it because each check is redirected into drift-report.md. WHY IT IS BASELINE STALENESS, NOT A DOC DIVERGENCE Diffed the public surface at the baseline's own commits (PyAutoFit daa4e39, PyAutoArray 85c57eb, both 2026-07-23) against today's main: autoarray 120 -> 121 added InterpolatorDelaunayNN, validate removed TransformerNUFFTPyNUFFT autofit 149 -> 159 added AbstractClipper, AbstractScaler, ApproxUpdater, ClipperNone, ClipperPriorBox, DynamicUpdater, FactorUpdater, NSS, ScalerNone, ScalerPriorWidth, SimplerUpdater removed database Two symbols were removed, so this is not blindly additive — but neither is cited anywhere in wiki/, skills/ or modes/ (the `database` matches in the docs are prose about the workspace's advanced/database/ script directory, not the autofit.database symbol). The symbol audit agrees: all 31 cited symbols resolve cleanly. And autonerves, autocti and autocti.plot — the surfaces this assistant actually documents — are byte-identical to the baseline. So the wiki makes no stale claim; the whole-surface hash simply aged. Baseline regenerated against the stack the workflow builds (autonerves/autoarray/autofit 2026.8.17.1 from source main, autocti 2024.11.13.2, arcticpy 2.6). All five checks then pass. THE REPORT WAS MISLABELLED The drift report printed `stack_version: latest released` whenever the input was empty. That is false on the native PR/dispatch path: the install step builds the stack from the sources/ `main` clones, and the workflow's own comment explains why (the CTI release train is not wired, so PyPI would grade the modern docs against a pre-resurrection wheel). The label sent the diagnosis of this very failure looking for a release that had moved the API, when the actual clock is the libraries' main branches — much faster. Both input descriptions and the report header now say what is really installed. The report also named no source refs at all, so a red run could not be diagnosed after the fact. The clone step now records each source tree's short SHA into the report header. Refs PyAutoMind draft/bug/autocti/wiki_currency_baseline_drift.md Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_018nDAxBEavkzb6Zkz1cYHef --- .github/workflows/wiki-currency.yml | 23 ++++++++++++++++++++--- wiki/core/api_audit_baseline.json | 16 ++++++++-------- 2 files changed, 28 insertions(+), 11 deletions(-) diff --git a/.github/workflows/wiki-currency.yml b/.github/workflows/wiki-currency.yml index ede93ef..1b28917 100644 --- a/.github/workflows/wiki-currency.yml +++ b/.github/workflows/wiki-currency.yml @@ -18,7 +18,7 @@ on: workflow_call: inputs: stack_version: - description: "PyAutoCTI version to install and check against (empty = latest released)." + description: "PyAutoCTI version to install and check against (empty = the CTI stack built from the libraries' `main` source clones, NOT a PyPI release)." required: false type: string default: "" @@ -30,7 +30,7 @@ on: workflow_dispatch: inputs: stack_version: - description: "PyAutoCTI version to install and check against (empty = latest released)." + description: "PyAutoCTI version to install and check against (empty = the CTI stack built from the libraries' `main` source clones, NOT a PyPI release)." required: false type: string default: "" @@ -85,6 +85,15 @@ jobs: # workspace_index.json) are always included automatically. git -C sources/autocti_workspace sparse-checkout set scripts + # Record exactly which commits were graded against. Without this the + # drift report names no ref at all, so a red run cannot be diagnosed + # after the fact — you cannot tell a genuine doc/API divergence from + # the baseline simply having aged against a moving `main`. + for d in sources/*/; do + printf -- '- %s: `%s`\n' "$(basename "$d")" "$(git -C "$d" rev-parse --short HEAD)" + done > source-refs.md + cat source-refs.md + # Paired-PR support (same trade-off as the Brain-ref hatch, PyAutoBrain#186): # on PR events, any cited source repo with a branch matching this PR's head # branch is checked out at that branch, so an assistant PR citing a paired @@ -145,9 +154,17 @@ jobs: { echo "# Wiki-currency drift report" echo - echo "- stack_version: \`${{ inputs.stack_version || 'latest released' }}\`" + # Say what was ACTUALLY installed. An empty stack_version does NOT + # mean "latest released" — the install step below builds the stack + # from the sources/ `main` clones. Reporting "latest released" here + # sent a diagnosis of a red run looking for a release that had moved + # the API, when the real clock is the libraries' main branches. + echo "- stack_version: \`${{ inputs.stack_version || 'source @ main (not a release)' }}\`" echo "- assistant_ref: \`${{ inputs.assistant_ref || github.ref }}\`" echo + echo "Cited/installed source trees:" + cat source-refs.md + echo } > "$REPORT" fail=0 diff --git a/wiki/core/api_audit_baseline.json b/wiki/core/api_audit_baseline.json index 3bfe27a..cfc27eb 100644 --- a/wiki/core/api_audit_baseline.json +++ b/wiki/core/api_audit_baseline.json @@ -1,10 +1,10 @@ { "_comment": "API baseline for autocti_assistant - see autoassistant/audit_skill_apis.py and skills/ac_audit_skill_apis.md. Regenerate with --write-baseline.", - "generated": "2026-07-23", + "generated": "2026-08-24", "versions": { - "autonerves": "2026.7.9.1", - "autoarray": "2026.7.9.1", - "autofit": "2026.7.9.1", + "autonerves": "2026.8.17.1", + "autoarray": "2026.8.17.1", + "autofit": "2026.8.17.1", "autocti": "2024.11.13.2" }, "api_surface": { @@ -13,12 +13,12 @@ "n_symbols": 32 }, "autoarray": { - "hash": "c5ff43af7c8505687f9bcb0b45aff32f05996f777b19321c8b14bc382e379ba5", - "n_symbols": 121 + "hash": "5dfcc5e6825c4d7e53d454efd08e830ec107183c6cc93c06f73358721b7c97f7", + "n_symbols": 122 }, "autofit": { - "hash": "55e75550fb2bad3c365c7456fe81e1fffe4cbcad2c4f5d564679014348b36019", - "n_symbols": 149 + "hash": "d540d084d0aaa0510332f41e1155217e4ac0e18ef1aad00606283eea187db342", + "n_symbols": 160 }, "autocti": { "hash": "32d9b246f2472e3a479cb2e5728e91e877c2cf472a9888cfd6632fc9947f8b7d",