Repository navigation
ci(harness): add bounded live-provider regression suite - #1003
Conversation
XuPeng-SH
left a comment
There was a problem hiding this comment.
Recommendation: APPROVE. This substantive review is submitted as COMMENT because the authenticated account, XuPeng-SH, is also the PR author.
Reviewed with GPT-6 Astra / xhigh: the complete 10-file diff at head 3bd079f1518c3f5c7ced31408f1aefa51db519ff, against merge-base 8080c7548aeb45c0517b3bca18fb97e85c509435, including the workflow → selector → preflight → runner/grader → supervisor/cleanup paths. Target main is currently a59bc7637ef7f5d09fa3be843fa35cb3ef087612; this head does not yet include it. I found no blocking defects introduced by this change.
- Design and implementation ownership: the caller reuses the existing execution, grading, observation and cleanup implementations. harness-regression.yml:23–44 checks both repository names and immutable IDs before passing the explicitly accepted provider credentials, excludes Dependabot, and selects the exact PR head. Concurrency is keyed by PR number. The reusable workflow preserves explicit secret passing, read-only repository permissions, non-persisted checkout credentials and the restricted cache-save condition.
- Database I/O, concurrency, isolation and cost: there are no new database queries, schemas or persistence implementations. The lane uses disposable local MatrixOne/Memoria dependencies and a separate working checkout; cases run serially once. I traced existing owner-scoped observation and exact-session cleanup through runner/suite execution and session-identity handling. The 900-second execution budget and 120-second grace bound execution and preserve non-passing timeout/cancellation outcomes; build, dependency startup and model registration are separately accounted for. This is not a measured multi-user or load-test result.
- Clean Code and complexity: select_harness_cases.py:7–22 stages original cases without duplicating their assertions. It rejects invalid/ambiguous inventories before staging, checks resolved paths and filename collisions, and refuses an existing destination. Independent local inspection confirmed eight unique cases, eleven root/follow-up turns and byte-identical staged files.
- Unhappy paths and meaningful assertions: I traced the mixed-model case criteria into execution capture: passing requires expected child-slot identities, completed child runs, actual model identities and terminal outputs, matching result-adoption evidence, and subsequent parent finalization. Parent-generated markers alone cannot satisfy it.
--force-modelchanges parent case models while retaining required child-model preflight. Missing terminal events, invalid progress, timeout and cancellation remain non-passing. The changed tests exercise the actual trust expression, workflow shell entrypoint, selector boundaries and stale-run routing.
Validation: affected Python modules 29/29 passed; actionlint v1.7.12 passed for all workflows; git diff --check passed. The broader local CI-script suite passed 125/127. Both remaining cancellation/descendant-reaping tests fail identically on the merge-base; this execution sandbox lacks the /proc/<pid>/task/<pid>/children interface used by the supervisor. I therefore do not count those local tests as successful or as evidence of a regression introduced here.
Before submission, GitHub state, identity, SHA and existing reviews were rechecked. Complete remote evidence: 39 checks = 38 success + the explicitly queue-ready Mergify neutral check, all 15 required check names present and successful, no failed/cancelled/pending/missing checks, and no traditional commit statuses. All five workflow runs and all 37 jobs succeeded, including all 28 jobs in Test Suite 38529027174 and six jobs in Static Checks 38529027089. No existing substantive review was present.
Unverified scope: I did not invoke paid providers, run the new eight-case live suite, run database/load integration tests, or exercise actual GitHub fork-secret delivery and superseded-live-run cancellation. This review does not establish measured completion within 15 minutes or real-provider cancellation/settlement behavior. The new optional automatic lane still needs real execution evidence; existing deterministic gates remain intact.
The latest main-branch dependency updates leave the proposed merged PR diff byte-for-byte identical to the reviewed delta (binary-diff SHA-256: a1cd7fa6771095be9c282e15b0cafe530495b0ca33a4720b9a03212a8d841e23). The approval recommendation is unchanged. Fresh synchronized-head CI must cover the updated Tokio/libc/UUID combination, particularly harness/CLI process lifecycle and session identity.
Merge recommendation: synchronize the author's branch normally with the latest target branch, then require complete successful CI and renewed head/base/open-state checks before merging the exact reviewed head.
Merge matrixorigin/Astra main at a59bc76 without changing the reviewed PR delta.
XuPeng-SH
left a comment
There was a problem hiding this comment.
Final recommendation: APPROVE for 3b958ad5a6ab647975de784e6851ba23c4f13daf. Submitted as COMMENT because the authenticated account is the PR author.
GPT-6 Astra / xhigh completed the final incremental review after fresh CI succeeded. This supplements the full four-criterion review.
I independently verified the normal synchronization merge: tree 7164c85af98528e62062ef26e17beff81357046c, with original head 3bd079f1518c3f5c7ced31408f1aefa51db519ff and current main a59bc7637ef7f5d09fa3be843fa35cb3ef087612 as its parents. GitHub compare reports behind_by=0. The complete PR binary diff remains byte-for-byte identical to the reviewed 10-file, +388/-17 change (SHA-256 a1cd7fa6771095be9c282e15b0cafe530495b0ca33a4720b9a03212a8d841e23). No product edits were added during synchronization.
The conclusions on design, database/session isolation and resource cost, code complexity, and error/cancellation/recovery handling are unchanged: no newly introduced blocking defects found. The three allowed fork names and immutable repository IDs were also verified against live GitHub metadata.
Fresh evidence for this exact head: 38 checks fully retrieved: 37 success + the explicitly queue-ready Mergify neutral check; all 15 required check names are present and successful from the expected app; all five check suites and four workflow runs succeeded. All 36 jobs succeeded, including all 28 in Test Suite 38534452662 and six in Static Checks 38534452722. Traditional commit statuses are empty. There are no missing, failed, cancelled or pending applicable checks.
The previously disclosed limits remain: no paid eight-case live run or measured 15-minute completion proof, no live provider cancellation/settlement exercise, and no independent multi-user load test. The two sandbox-limited local process-supervision tests were not represented as local passes.
The PR is open, non-draft and mergeable; current identity and author are both XuPeng-SH. This review supports merging the exact SHA above under the maintainer's explicit authorization, after the immediate final state/CI recheck.
The runtime admission for a missing child model (e.g. glm-99.99) is a callable request-time validation failure, not a provider availability issue. The harness case's error_kind contract (introduced in matrixorigin#921, promoted unchanged in matrixorigin#962) has always required 'invalid_request' for missing models. After the harness switched the flash_missing_child_model_fail_closed case back to deepseek-v4.1-flash (matrixorigin#1006) and live regression runs actually exercised this path (matrixorigin#1003), the only criterion that fails is the error_kind mapping: the spawn produces 'tool_unavailable' while the contract requires 'invalid_request'. Preserve the distinction between 'the model catalog does not have an offering for this id' (user/request fault) and 'the upstream cannot reach the model' (provider availability fault). Update the mock-only runtime test to expect the aligned kind for missing offerings. This restores the case's fail-close semantics without changing anything else.
Summary
mainpushes, same-repository PRs and three explicitly trusted forks, reusing the existing manual workflow rather than adding another runner/grader.crates/astra-test-harness/ci-regression.txt: 8 cases (7 reused, 1 new), including simple reasoning/tools, delegation, recovered failures, cache observations, unavailable-model rejection and GLM-5.3 + DeepSeek-v4.1-Flash fanout.Related issue
Requested directly by the maintainer; no linked issue.
Change type
User and compatibility impact
Manual dispatch still defaults to the full suite and now offers
profile: regressionfor the same fixed subset. Automatic runs spend provider tokens. GLM-5.3 remains the parent/judge; the supplemental DeepSeek-v4.1-Flash entry uses the existing supplementary-model secret mechanism.Automatic PR execution uses a trusted-base
pull_request_targetcaller and authorizes the following full-name/immutable-ID pairs before accessing provider secrets:XuPeng-SH/Astra1355430593gouhongshen/Astra1355443432loveRhythm1990/Astra1355489820The maintainer explicitly authorized these forks after discussing the risk: every writer of an allowed fork is trusted with the model keys. Build/test code in an authorized fork can leak them; log masking is not isolation. This is not safe execution of arbitrary fork code. Other forks, recreated/lookalike repositories and Dependabot PRs are denied by the base-owned name/ID gate. An untrusted PR cannot approve itself by editing its workflow copy. PR execution uses the authorized fork's exact head SHA, not the base SHA or a moving branch. Checkout's explicit fork opt-in is reached after this gate. The GitHub token remains contents-read, checkout credentials are not persisted, and automatic PR runs cannot publish build caches. No broad secret inheritance is used.
Existing required offline checks are unchanged. Only exact automatic main pushes may save the shared harness build cache. Manual dispatch retains its explicitly trusted source selection. Allowlist changes take effect after merging to the trusted base; this PR cannot bootstrap its own privileged execution.
Architecture and complexity delta
harness-manual.ymlexecution job,manual_harness.pyobservation/summary andprocess_supervisor.pylifecycle. No new grading, process supervision, runtime state, storage or database path.pull_requestworkflows without increasing its bounds.Verification
gpt-6.1-sol,xhigh: no concrete P1/P2 source defects. Review includes all untracked additions and explicitly retains the live-run evidence gap.python3 -m unittest discover -s scripts/ci -p 'test_*.py': 127 passed.go run github.com/rhysd/actionlint/cmd/[email protected]: passed, all workflows.git diff --check: passed.Final checklist