Skip to content

ci(harness): add bounded live-provider regression suite - #1003

Merged
XuPeng-SH merged 3 commits into
matrixorigin:mainfrom
XuPeng-SH:ci/live-harness-regression
Oct 14, 2026
Merged

XuPeng-SH merged 3 commits into
matrixorigin:mainfrom
XuPeng-SH:ci/live-harness-regression

Conversation

@XuPeng-SH

@XuPeng-SH XuPeng-SH commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add a small, paid live-provider regression on relevant main pushes, same-repository PRs and three explicitly trusted forks, reusing the existing manual workflow rather than adding another runner/grader.
  • Keep the reviewed selection in 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.
  • Enforce a 15-minute aggregate execution budget plus bounded settlement; retain existing safe live per-case progress, partial summaries, artifact projection and owned-process cleanup. Build/setup time is separate.

Related issue

Requested directly by the maintainer; no linked issue.

Change type

  • Feature
  • Test
  • Build, CI, or maintenance
  • Documentation

User and compatibility impact

Manual dispatch still defaults to the full suite and now offers profile: regression for 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_target caller and authorizes the following full-name/immutable-ID pairs before accessing provider secrets:

Explicitly trusted fork GitHub repository ID
XuPeng-SH/Astra 1355430593
gouhongshen/Astra 1355443432
loveRhythm1990/Astra 1355489820

The 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

  • Canonical owner extended: existing harness-manual.yml execution job, manual_harness.py observation/summary and process_supervisor.py lifecycle. No new grading, process supervision, runtime state, storage or database path.
  • Existing cases are staged byte-for-byte from one manifest; the selector rejects empty/duplicate lists, missing files, path/symlink escapes, filename collisions and stale destination directories.
  • New heterogeneous case verifies actual physical child model identities, slot-bound results and parent adoption, not merely a successful spawn or matching parent text.
  • The optional live lane owns cancellation by PR-number concurrency; the existing stale-run controller continues to handle the three low-privilege pull_request workflows without increasing its bounds.

Verification

  • Independent full-diff review with configured/reported gpt-6.1-sol, xhigh: no concrete P1/P2 source defects. Review includes all untracked additions and explicitly retains the live-run evidence gap.
  • Follow-up trust-boundary review with the same model/effort: no blocking P1/P2 defects under the explicitly authorized fork trust model, after adding both event-actor and PR-author Dependabot checks and targeted regression coverage.
  • 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.
  • Existing harness strict YAML/capability audit: passed; 26 capability contracts unchanged. This was a schema-only check using an existing binary, not a fresh live candidate run.
  • Real DeepSeek-v4.1-Flash API connectivity probe: HTTP 200, with the explicitly authorized shared endpoint/key. Configuration remains in GitHub secrets, not the diff.
  • Public CI entrypoint exercised locally: actual workflow run shell blocks, including manifest staging and supervised command arguments, with a controlled harness stub. No terminal event remains a failure.
  • Unhappy paths: actual workflow trust expression accepts all three configured name/ID pairs and rejects wrong IDs, name spoofing, unknown/deleted heads, wrong destination, and Dependabot PRs; selector boundary/stale state cases, literal filter handling, safe secret/model configuration failures, safe diagnostic projection, supervisor and partial-progress regressions in the existing test suite.
  • Database verification: not applicable; no database code or schema changes.
  • Not yet verified: complete real-provider 8-case run, measured execution/job wall time, and actual GitHub authorized-fork secret delivery/unlisted-fork and Dependabot skips/superseded-run cancellation. The base-owned allowlist cannot be exercised by this PR before it is merged. Fifteen minutes is an execution budget, not a measured result. Optional cache-ratio diagnostics are not a hard cache-hit guarantee.

Final checklist

  • Added/updated tests at the workflow and selector boundary.
  • Updated public harness documentation, selection and trust/budget behavior.
  • Checked the diff for credentials, private URLs and raw/provider artifacts.
  • Conventional Commit PR title.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-model changes 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 XuPeng-SH left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@XuPeng-SH
XuPeng-SH merged commit b8fe32b into matrixorigin:main Oct 14, 2026
@XuPeng-SH
XuPeng-SH deleted the ci/live-harness-regression branch October 14, 2026 09:10
gouhongshen pushed a commit to gouhongshen/Astra that referenced this pull request Oct 15, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant