Repository navigation
Conversation
added 9 commits
October 2, 2026 08:49
Consolidate execution ownership and retire dormant frameworks and product workflows. Preserve authorization, observation, prompt-cache evidence and private harness child streams through existing owners.
Classify agent control output using trusted tool identity so accepted fanout starts do not create false incomplete outcomes. Keep real child failures and unknown execution fail-closed. Bound scripted synthesis candidates by child count and verify the accepted final request. Skip shared runner cleanup only with at least 30 GiB workspace free space; retain all test and cache coverage. Validated with 20 real-DB fanout runs, eight adapter tests, 44 CI contracts, formatting, metadata checks and warnings-denied Clippy. Reviewed with gpt-6-astra xhigh.
XuPeng-SH
marked this pull request as ready for review
October 2, 2026 12:39
7 tasks done
1 task done
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.
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
Unify model-aware subagent collaboration around the existing agent/run backbone:
candidate-aware authorized model selection, parent/child messaging, completion
adoption, execution evidence, and bounded private harness event archives.
Retire unused product and tool paths rather than retain compatibility adapters.
This remains a draft. The latest milestone repairs the observed CI failures and
consolidates CLI test execution without dropping test identities. It does not
certify that all product issues, scale targets, or cleanup goals are complete.
User-visible behavior and ownership
unavailable where the current entrypoint cannot support it; no silent fallback.
and observation owners, not a second agent lifecycle.
retain normal skills, runtime evidence, usage facts, and the real test harness.
configuration, introspection, and reflection remain.
requires the semantic LSP path.
before determining whether cached content exists.
reports. No credentials, populated environment files, or private traces are
included in this PR.
or deletion/reset of existing user databases.
Latest CI repair and efficiency milestone
Three confirmed causes from the failing Test Suite run were addressed:
shared subrun execution future for both direct and trait callers. No larger
CI stack, timeout increase, or changed execution/authorization semantics.
through a shared loopback HTTP/SSE fixture, and test actual asynchronous
completion rather than treating a start receipt as a complete result.
Assertions check the parent's captured synthesis input, exact launched-child
identities, complete results/failures, cross-user/session isolation,
settlement, cancellation, and durable lineage.
respecting the independent output-byte budget. Production limits unchanged.
CLI CI now builds the normal mock MCP server and runs the entire unfiltered
CLI library/binary test inventory once. Five existing protected labels gate
that same execution; they no longer repeat setup or download/extract a test
archive. Failure, cancellation, or an unexpected required skip fails closed.
Cache trust, test profile, feature coverage, concurrency and timeout bounds
remain unchanged. JUnit evidence is retained on success and failure.
Rerunning this job repeats its combined build/test work; there is no archived
execution fallback. Other test jobs retain independent parallel execution.
This removes archive creation/transfers/extraction and redundant consumer
setup. It does not yet prove a reduction in total workflow elapsed time or
billed runner resources: the previous critical path was online integration,
not the CLI consumers. Compare the next remote run before claiming those gains.
Verification
Follow-up: fanout acceptance and disk cleanup
Commit:
cc4b582390f432dff9353b7c6b9df285b14abeee.The remote run at
9722a717bpassed Runtime, CLI, and static checks, but onlineintegration still failed one concurrent fanout case. Its total elapsed time was
21m54s versus 19m54s previously; overall CI acceleration was not established.
Real MatrixOne reproduction exposed the cause: the shared output adapter used
group_idplusresultsto guess a fanout response. A successfulstartcarriesagents, so it was incorrectly classified asagent_incomplete. A latersuccessful wait supplied assessment evidence for this false failure, opening an
unnecessary completion-action window and leaving the parent paused.
The adapter now receives the canonical tool identity from its callers. Valid
accepted start receipts remain neutral control acknowledgements, while actual
partial failures, rejection, unknown execution, and child-settlement obligations
remain enforced. Its oracle now also checks the root
run_finishedstatus beforechecking durable state. Repeated testing exposed a separate fixture exhaustion:
terminal child batches can legitimately supersede an in-flight response. The
same tool prefix now has at most
target_count + 1text-only candidates, andcapture assertions select the actual accepted final round. No repeated tools,
sleeps, larger timeout, or weaker child/context/durability assertions were added.
The shared Rust setup now skips its existing cleanup when the workspace
filesystem has at least 30 GiB free. Low, invalid, or failed measurements retain
cleanup. The previous cleanup took 166.5 seconds while reclaiming only 1.863 GB
and leaving approximately 105 GB free. Cache paths, build/test inventory,
parallelism, timeouts, and runner allocation are unchanged. Actual remote
wall-time and runner-resource improvements still require a new run.
Focused adapter and real-database regression checks passed (9/9), as did 44 CI
configuration contracts, including mocked above/equal/below/invalid/failed disk
measurements. All four online scenarios (concurrent owner/session isolation,
failed children, parent cancellation, and normal synthesis) passed five
consecutive iterations: 20/20. These use a real MatrixOne database and
scripted provider responses, not paid live-model calls.
Final formatting, repository metadata checks, and affected runtime/integration
Clippy with warnings denied passed. Independent
gpt-6-astra/xhighreviewaccepted the final eight-file candidate. Remote CI for this commit is pending;
no elapsed-time or resource reduction is claimed yet.
Previous milestone evidence
Latest CI milestone:
9722a717ba11d1d0736fd52f40542dc6ddba19ff.Latest candidate validation:
test execution 79.730 seconds. The unfiltered test identity set exactly equals
the union of the previous five partitions: zero omitted or repeated.
isolated MatrixOne database, using the strict online CI profile: 16.997 seconds.
31.344 seconds. These use normal production entrypoints and deterministic
loopback provider responses, not paid live model calls.
RUST_MIN_STACKunset/default; 30 focused grep contracts also passed.with the default stack, preserving coverage of the result-reading owner.
formatting, and diff hygiene passed.
warnings denied.
gpt-6-astra/xhighaccepted the frozen 13-file diff after the captured-input decoder repair;
hidden backend identity is not independently attested.
These local execution times are validation evidence, not remote workflow
benchmarks. A new remote CI result is still required.
Prior clean live-model evidence at
0df82c9f7: real DeepSeek Flash to authorizedGLM 5.2 delegation passed the minimal arithmetic, natural model-alias, and
missing-model cases (11.765, 11.276, and 8.823 seconds respectively). Reported
primary-request cache-read ratios were 94.6%, 93.9%, and 95.7%. Parent/child
identity and Explain evidence were checked. These single samples do not certify
whole-tree monetary cost, p95 latency, or thousand-session capacity.
Reproduction: see
crates/astra-test-harness/cases/subagent_model_selection/README.md.Use normal model registration and matching clean CLI/Server/harness builds;
keep diagnostic artifacts private. The CI changes do not add database
operations to the production path.
Remaining readiness work
measured rather than inferred from removing jobs or lines.
workspace-edit/lifecycle unhappy paths, SQL mutation classification, and
bounded read/query work remain follow-ups. File-edit cleanup is paused while
this CI milestone is delivered.
the large cleanup target are not certified complete.
sample does not erase the historical failure.
Checklist