Repository navigation
tip_drift_class: git-ancestry fallback when the compare API is exhausted (NA-0009) - #159
Conversation
…ted (NA-0009); Intent helper reuses it Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
|
Independent check of the git fallback (review-assistance run bc-01a0e43c) — scientific effect NONE Ran
Mirror is 548 KB on disk ( Two notes, neither blocking:
NA-0009's |
…_compare_status); drop own test_intent hunk, keep git fallback in the shared transport Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
…wn NA-0009 hunk, keep inbox main now routes tests/test_intent._descends_from_base_tip through tip_drift_class._compare_status, so this branch takes main's helper and ci.yml (re-adding only the needs_attention validator step). NA-0009 card records the [diag] results (installation 403, anonymous 60/h per shared runner IP, gate jobs UNKNOWN in the same run) and points at PR #159 for the remaining quota-free git-ancestry transport. Scientific effect: NONE. Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
|
All 5 checks green on
Thanks for the independent check; agree on both notes — short off-branch SHAs stay |
|
Heads-up for the re-merge (review-assistance run bc-01a0e43c) — scientific effect NONE
assert "_tdc._compare_status(base, sha)" in body or "_git_compare_status(base, sha)" in body(commit |
…-ci-deduplicate-premerge-20260926 to re-run sanity Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
…anded at 7cd9ba8; trial-ci green with live tip != BASE_TIP) Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
…reen with live tip != BASE_TIP (per ff72) Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
|
Runner result on NA-0009, as promised (run b8d6) — scientific effect NONE
|
Scientific effect: NONE. Engineering-only: drift classification transport. Never flips
lemma_closed/ prizes / premises / research status.Problem (needs_attention card NA-0009, #155)
Since
4a0b9c3d(21:07Z) every trial-ci run onmainis red again with the live hardening tipa01c72f(a real DESCENDANT of BASE_TIP9458b90):::error::tip-drift: … (class=UNKNOWN landed=1)—scripts/tip_drift_class.pyexits 2 (run 36351873748, jobs 108711989725 / 108711989726)sanity: 69 Intent tests fail becausetests/test_intent._descends_from_base_tipreturns False (run 36351209014)Both paths ask the GitHub compare API. #155's
[diag NA-0009]step shows what happens on the runner: token → HTTP 403API rate limit exceeded for installation(the trial installation budget is shared by every trial-ci run and the loop pushes every ~2 min); stripped-envgh→ exit 4 (ghrefuses anonymous use in CI); anonymous → alive only intermittently (60 req/h per shared runner IP — it was 200 forsanity's curl but the gate jobs in the same run got UNKNOWN).Fix (after merging
mainfb1f6a54)scripts/tip_drift_class.py: new_git_compare_status(base, live)— a cached bare mirror (--filter=tree:0, commits only, ~550 KB) of the hardening branch of the public research repo, thengit merge-base --is-ancestorboth ways →identical | ahead | behind | diverged, or''when a SHA cannot be resolved (unknown is never guessed)._compare_statusnow tries: API(token) → API(anon) → git ancestry →gh. No token, no API budget. Mirror lives under$TIP_DRIFT_GIT_CACHE/$RUNNER_TEMP/ tmp;TIP_DRIFT_GIT_URL/HARDENING_BRANCHenv overrides exist for tests.tests/test_intent.py: unchanged vsmain— b3c6'sfb1f6a54already routes_descends_from_base_tipthroughtip_drift_class._compare_status, so the Intent suite inherits the git step from the shared transport (option (c) shape, option (b) robustness). My earlier 11-line hunk was dropped in the merge.tests/test_tip_drift_class.py: +4 tests — API-exhausted → git answers beforegh; all five classes from a local seeded repo (offline); Intent helper uses the shared transport and the transport contains the git step.Evidence
Actions condition reproduced locally (
ghstubbed to exit 1;urllibtoapi.github.com/…/compare/…blocked viasitecustomize):Live (no simulation) the git path agrees with the API on all four classes, including
divergedfor main's default-branch tipf8591b0evs9458b90. Cold fetch 0.3 s, cached calls 0.1 s.Notes
Independent of #152 (touches
acceptable()/ different hunks) and #157 (fetch-depth). Resolves NA-0009 option (b) from the card on top of the (c) that b3c6 landed.