Repository navigation
fix(ai): restore shared CLI helper contracts - #1553
Merged
lusoris merged 1 commit intoSep 24, 2026
Merged
Conversation
lusoris
merged commit Sep 24, 2026
862e1b0
into
fix/mypy-prepush-config-baseline-rc1
13 checks passed
19 of 26 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Restores the accepted ADR-0680/0681 shared bootstrap, parser, and replay-argv
contract across twelve current tiny-AI evaluation, quantization, and export
scripts without replacing their later CLI or provenance behavior. Adds an AST
red-cap plus direct-file/module probes so a future silent revert fails closed.
This is intentionally stacked on #1552: that parent repairs the fail-closed
pre-push mypy baseline/configuration gate used to validate this Python-heavy
restoration.
Type
feat— new featurefix— bug fixperf— performance improvementrefactor— no behavior changedocs— documentation onlytest— test-onlybuild/ci— tooling / infraport— cherry-pick from upstream Netflix/vmafsycl/cuda/simd— backend-specificChecklist
make format && make lint— aggregate targets not run; Black 26.5.1,Ruff 0.16.8, changed-file pre-commit,
make verify-all, and the completenormal pre-push gate are green.
meson test -C build— no native/Meson code changed;the affected Python suites are green below.
already-accepted ADRs and makes no new architectural decision.
Bug-status hygiene
docs/state.mdrecordsT-BUG048-AI-CLI-HELPERS-REVERTED-2026-09-24as closed while explicitlykeeping BUG-048 open for its remaining restoration sections.
Netflix golden-data gate
assertAlmostEqual(...)golden score was modified.Cross-backend numerical results
Not applicable; this change touches Python CLI/bootstrap behavior only.
Performance
Not applicable; no benchmark, tuning, training, or inference hot path changed.
Deep-dive deliverables
docs/research/2088-bug048-ai-cli-helper-restoration.md.whole-commit replay and globally widening the bootstrap default.
AGENTS.mdinvariant note —ai/AGENTS.mdpins the twelve-scriptbootstrap/parser/replay contract and
include_repo_root=Trueboundary.changelog.d/fixed/bug048-ai-cli-helper-restoration.mdplus its generatedUnreleased rendering.
docs/rebase-notes.mdrecords the preserved seam andsemantic regression.
Reproducer
Validation
writable AGY corrections;
python -m--help: 24/24 passed;ai/package before publication: 1,315 passed, 1 skipped;make verify-all: green, HISS 264 within the 276 baseline;findings; and
HISS, dedupe, formatting, and PR-body governance.
Known follow-ups
scope until correctness and security cleanup completes.
Breaking changes / migration
None.