Repository navigation
Conversation
Signed-off-by: San Dang <[email protected]>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueComment |
Contributor
Signed-off-by: San Dang <[email protected]>
Signed-off-by: San Dang <[email protected]>
Signed-off-by: San Dang <[email protected]>
Signed-off-by: San Dang <[email protected]>
Signed-off-by: San Dang <[email protected]>
Contributor
|
PR Review Advisor finished for commit |
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.
Outcome
The investigation remains unresolved. Candidate
7d0e990f1d1c9bbda1055c7ee4b1e11ae5e47193ends the OpenShell create-client handoff when Ready appears before the nonce-owned durable ID, but a required managed-image run then reached Ready, reported creation complete, and observed the sandbox inDeletingbefore first exec. The candidate is not accepted as a fix.Reason
The original Telegram failure on
3076188279c0ea657ec77aeeabebf1f82061eaafreached Ready before its create-attempt selector returned an ID, then observed Error. Later and latest targets passed. Deterministic tests proved the candidate's intended Ready-before-ID ordering, but the current managed failure shows that ending the client at Ready can still precede a stable usable sandbox. Because that artifact did not retain the settlement record, the evidence cannot distinguish a still-pending durable ID from another OpenShell transition; current-code causality and a safe minimal fix remain unproven.Related issues
Refs #10976
Candidate changes
Verification
npx vitest run --project cli src/lib/onboard/sandbox-gpu-create-identity-gate.test.ts --coverage.enabled=false— before the product patch, 1 failed and 28 passed because the Ready check returnedfalse; after the patch, 29 passed.invalidevidence.invalid.missingevidence, malformed or unusable input emitsinvalid, the workflow summary renders both recovery directions, and the unconsumed Ready-observation event and its deduplication state are removed.absentafter the sandbox phase fromnot_attemptedbefore it, and the generic workflow summary renders both without making the CPU-only cloud-onboard path depend on the GPU create-attempt producer. Direct sanitizer tests now live only in the dedicated sanitizer suite.invalidevidence with conditional recovery guidance.npx vitest run --project cli --project e2e-support src/lib/adapters/openshell/sandbox-identity.test.ts src/lib/onboard/experimental/hermes-portable-onboarding-created-identity.test.ts src/lib/onboard/sandbox-gpu-create-identity-gate.test.ts src/lib/sandbox/create-stream.test.ts src/lib/trace.test.ts test/e2e/support/sanitize-trace-timing.test.ts test/e2e/support/e2e-workflow-trace.test.ts test/e2e/support/hermes-workflow-boundary.test.ts test/e2e/support/e2e-scorecard.test.ts --coverage.enabled=false— 9 files and 205 tests passed on candidate784ac844a1d297a72c5bb2c25806598727c9facebefore the behavior-neutral unused-variable cleanup.npx vitest run --project cli src/lib/onboard/sandbox-gpu-create-identity-gate.test.ts --coverage.enabled=false— 30 tests passed after removing the stale local on final candidate7d0e990f1d1c9bbda1055c7ee4b1e11ae5e47193.npm run test:changed— passed after the final review repair with 45 growth-guardrail tests and 114 selected tests across 7 files; the prior full candidate run passed 508 selected tests across 27 files.npm run typecheck:cli— passed on the final candidate.npm run checks:repository— passed.npm run validate:pr— passed pre-commit, commit-message, and pre-push checks on the final candidate.git diff --check origin/main...HEAD— passed.7d0e990f1d1c9bbda1055c7ee4b1e11ae5e47193. MCP discovery pass 1 reached Ready, completed the create handoff, then observed the sandbox inDeletingbefore first exec; its seven cleanup operations passed. The independent pass 2 and all-agent activation passed. This is an unresolved lifecycle failure, not passing acceptance evidence.GitHub API request failed after 1 attemptsjust before the assertion expectedtime budget. The PR changes neither the implementation nor test; this inherited timing failure was classified without changing e2e(telegram): sandbox creation can reach Ready before returning a durable ID #10976 scope or rerunning the workflow.channels-add-removethree times on candidate784ac844a1d297a72c5bb2c25806598727c9face, base30271df8d6b810be4bc10a42a78194e805f9589e, and trusted workflowd7ad11fc64e0066057b958cbc5206b34727ea980, with identical selectors and mock-inference policy. These runs do not count as final exact-SHA evidence after the unused-variable cleanup:8fce447b-c234-42ed-8485-02b5a40ee143— passed on attempt 1.02717c4d-3b3b-46ad-a635-c9d90e3f2b05— passed on attempt 1.5c634d84-ea13-4ea2-9091-f946df114e44— passed on attempt 1.784ac844E2E artifact binds the exact candidate and trusted workflow SHAs, reports one passed target with zero failed, skipped, pending, or unhandled results, and records every lifecycle phase as passed. Each cleanup record confirms sandbox destroy, OpenShell sandbox deletion, gateway removal, and fixture closure with no failures; the artifacts contain no symbolic links.channels-add-removethree times on candidate06f0370aca24f1eeb24d0e20715647ba4f04c1de, base30271df8d6b810be4bc10a42a78194e805f9589e, and trusted workflow5b14e5c299c3779c77895a6c092e874770551a18. These runs validate the lifecycle and final-settlement changes but do not count as final exact-SHA evidence after the trace-artifact repair:54e37b00-e083-4c46-8034-2bb8f4ecf3d1— passed on attempt 1.3e606bb5-a1d5-471c-9e4c-6d1aa127753d— passed on attempt 1.55b49e30-a9fe-498d-8eb3-9d2e3b297b20— passed on attempt 1.channels-add-removethree times on candidate530ae0fc8836b9e654982ff6614e55ea06e1e637, base30271df8d6b810be4bc10a42a78194e805f9589e, and trusted workflow5b14e5c299c3779c77895a6c092e874770551a18. These runs validate the primary lifecycle change but do not count as final exact-SHA evidence after the diagnostic repair:529eb037-c76a-4d5c-a550-3a6d20ea001b— passed on attempt 1.a67bb42f-41c8-42fc-af2b-a4722c6c8ef9— passed on attempt 1.1ad36971-4318-4a99-a36d-6cffbd8f2546— passed on attempt 1.Review notes
Sensitive-path self-review confirmed that the create-attempt nonce remains the ownership authority, identity settlement and publication verification remain mandatory before effects, ambiguous or missing identity remains fail-closed with retained recovery, and trace output contains only a 16-hex SHA-256 correlation prefix. The full fingerprint remains limited to retained recovery. The change adds no sleep, workflow retry, Telegram-specific branch, cleanup bypass, or weakened assertion. The duplicate CodeQL review-thread finding for the unused
observedSandboxIdlocal is addressed by the behavior-neutral two-line deletion in7d0e990f.The Advisor's identity-replacement diagnostic finding is addressed by
06f0370; its trace-sanitizer finding is addressed byebf24b69; its retained-E2E-evidence finding is addressed by9ca198fe; its final-event selection and workflow-boundary findings are addressed byec03a0bf; its end-to-end evidence, duplicate parsing, and null-correlation guidance findings are addressed bydf33a13a; its selected-trace ownership, malformed-final-evidence, and Ready-timeout diagnostic findings are addressed bydd1d301b; its final-operation provenance and post-client-exit evidence findings are addressed byc5fe34f2; its invalid-evidence visibility and post-Ready mismatch evidence findings are addressed by6abfc4d0; its workflow-visible invalid-state finding is addressed by6a005bdc; its conditional recovery wording, valid-summary consumer proof, and test-owner consolidation findings are addressed by9482eb2e; its trace-binding, equal-time ambiguity, and bounded-file-completion findings are addressed by7eb67f7f; its cloud-onboard trace-boundary proof finding is addressed by30a24384; its partial-source evidence finding is addressed by6fb4472a; its missing-evidence visibility and redundant-event findings are addressed by51fa7121; its absent-event classification and sanitizer-owner consolidation findings are addressed by5f2b492a; and its producer/consumer scoping finding is addressed by784ac844. The earlier multi-scenario consolidation attempt failed the enforced 1,500-line test-owner budget at 1,538 lines; after reducing to one representative boundary case, the final consolidated owner is 1,452 lines. Its original changelog suggestion is not applicable:docs/changelog/2026-09-01.mdxis historical release evidence for v0.0.118 and accurately describes the ordering shipped in that release; rewriting it for this later fix would misstate release history.Signed-off-by: San Dang [email protected]