Repository navigation
Conversation
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.
目標與問題
Closes #15
Closes #16
最新 main 上,零依賴 Shorts 範例匯入已移除的 DEFAULT_RULES 而失敗;缺少 segs 的輸入則在 QA gate 拋出 KeyError。修正後範例使用 gate_shorts(spec) 與實際平台規則,缺欄位及不合法結構回傳 (False, report),供下游穩定判斷 BLOCK。
變更範圍
由 Codex 協助實作、補測試與檢查 diff;供維護者審查。
測試證據
Windows / Python 3.10:
Release transaction 自測通過。最終 commit 的兩次本機建置 ZIP 位元組相同,SHA-256:
71a524b56e904d1d16aba182d57371719567d3e1e02c0e73edc5b652dc62e09b。
最終 commit:d2e64b324028c8c4e5f3c057ed3ad0c6a6b8df3d。
GitHub CI:同 commit 的 CI 全部 7 jobs SUCCESS:Windows/macOS/Ubuntu × Python 3.9/3.12 六組驗證,加上可重現建置。各組均通過 Shorts 回歸/自測、privacy/收據、文件/架構、quick health、來源不變性及 release transaction 自測。
已同步到原本機 repo 的獨立修正 worktree;其 HEAD/工作樹與遠端分支一致,13 組回歸與 311 檔收據驗證通過。原工作目錄的 branch、HEAD、status 與 251 個修改/未追蹤檔案雜湊完全保留。
安全、隱私與依賴
安全修正集中於 gate 輸入驗證與拒絕路徑,沒有擴充執行權限或把輸入當程式執行。未新增依賴、變更系統安全設定或憑證;不改公開同步驗證標準。
驗收與回復方式
範例可在 python -S 下執行;缺 segs 明確回傳 required: segs,合法輸入仍能 PASS,既有語意規則及 advisory 警告持續生效。回復可 revert 此修正 commit。保留 draft 待審查;本次不合併或部署。