Repository navigation
feat(skills)!: improve Codex onboarding and task recovery - #1613
Merged
Merged
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
This was referenced Oct 10, 2026
N0zoM1z0
added a commit
that referenced
this pull request
Oct 10, 2026
…1618) Interrupt optional CDP domain shutdown on caller cancellation while preserving an independent bounded detach attempt. Retain original overflow and cleanup failures, verify workspace recovery, preserve user skill files, and reject another unverified firmware worker. Validation: 149 integrated tests; repeated 64 affected boundary tests; full local check. Standalone CI includes real Chrome CLI/stdio MCP and real Web runtime checks. Refs #1613
Guide recovery from observed client, registration, PATH and provider blockers, then resume the selected investigation through an authorized workflow. Add summary-first JavaScript module recipes and require target clarification before searching for an unnamed app. Install the recovery reference through the managed skill transaction. Exercise fresh public setup in isolated Codex accounts, remove temporary authentication, and cover module views, Chinese ASAR requests and missing-target routing. Count actual text-only and SDK input failures without treating lifecycle status verification as repeated analysis. Refs: #1587 BREAKING CHANGE: The optional verify:agent diagnostic report now uses schema version 4. Consumers must accept expectedFirstTool: null and the separate targetClarificationPassed outcome for missing-target scenarios.
N0zoM1z0
force-pushed
the
feat/codex-skill-onboarding
branch
from
October 10, 2026 18:57
47e72a0 to
bec5968
Compare
2 tasks done
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
Fresh Codex sessions could confuse client approval failures with REA setup/provider failures, invent invalid module-view inputs, or select an unnamed app from an unrelated saved report. Skill version 37 gives a task-centered recovery path, concrete JavaScript view recipes, and target clarification before artifact searching.
Refs #1587. The issue remains open for other clients, models, platforms and real analysis providers.
Problem and expected behavior
An advertised MCP tool can fail with
MCP tool call requires approval, but approval policy is neverbefore REA executes it. Repeating setup or installing an engine does not resolve that decision. The agent should identify the actual blocker and continue through an authorized supported workflow.A module path can identify several graph roles. The agent should request a module page and select its returned
node_id, rather than inventingview.kind = "module"or assuming path uniqueness. A request for “my app” without a selected target must ask for an app name/path instead of choosing a nearby fixture.Change and scope
Contract and boundary impact
verify:agentdiagnostic report moves from schema 3 to 4.open_binary/close_binaryoperations. No global toolchain installs or target execution. Copied authentication is removed infinally.Evidence and regression coverage
provider_unavailableremained an unavailable outcome. The missing-target result is a validatedneeds_targetclarification with zero REA calls.For evidence-bearing changes:
Validation performed
CI follow-up: the inherited cleanup/uninstall regressions were isolated in PR #1618, whose 21 checks passed before squash merge
16d9c5ad. This PR is rebased onto that main. The prerequisite changes are not part of this diff.npm run test:focused -- tests/boundary/filesystem/setupSkill.test.ts tests/evaluation/model-evals/codexAgentEval.test.ts tests/evaluation/model-evals/agentEvaluationReport.test.ts tests/evaluation/model-evals/knownAnswerEvaluation.test.ts— 65 tests passed.npm run check— passed, including typecheck/lint/format/metadata/module boundaries/architecture guards.npm run docs:check— passed.npm run verify:package— passed repository-root Skills discovery, exact installed files, package installation, setup planning/backups/idempotence and public CLI/MCP checks.npm pack --dry-run— passed; includes the recovery reference.Skill frontmatter validator — passed.
Initial implementation, real Codex CLI 0.162.1 /
gpt-6.1-sol— 13 representative final workflow outcomes: native provider unavailability, Chinese ASAR factual rubric, large module views, fresh and polluted-workspace target clarification, ZIP/HAR client-block recovery, skill-only CLI, ordinary-source routing, older-runtime schemas and normal client mode. Earlier failing attempts remain recorded in [Feature] Improve task-centered REA onboarding and recovery in Codex skills #1587. Runs were sequential with one CPU core and a 3 GiB process-tree ceiling; final model-run sampled peak was about 930 MiB.Final PR head
47e72a0: repeated the real fresh-profile Codex verifier after rebasing onto latest main. All four selected scenarios (native,asar-zh,javascript-module-view,missing-target) passed their limited gates with zero repeated calls or input-validation failures. The ASAR four-claim factual rubric passed; missing-target made zero REA calls and validated its clarification. Runs remained sequential under one core / 3 GiB, with sampled peak about 859 MiB; copied authentication was removed.Integration revision
82e01131: a fresh four-scenario rerun preserved routing and the ASAR factual rubric, but the ASAR case recovered from one omittedsource.kindand therefore failed its strict zero-invalid-input gate. Two additional independent ASAR profiles passed their four-claim rubrics with zero invalid/repeated calls. The failed run is retained in [Feature] Improve task-centered REA onboarding and recovery in Codex skills #1587; the evaluator gate was not relaxed and no speculative repair was added. Authentication copies were removed.Final branch head
bec59688: 65 focused tests, fullnpm run check, andnpm run docs:checkpassed after rebasing. Authored skills, setup addition, evaluator and verifier files are byte-identical to the integration revision used for the documented model retests. CI is refreshed on this head.Final head
bec59688: repeated all four fresh Codex scenarios after the final rebase. All strict scenario gates passed: zero invalid/repeated calls, successful ASAR four-claim rubric, and validated missing-target clarification with zero REA calls. Selected module-view claims were manually reviewed against the item projection and explicit limits. Runs took about 158 seconds, sampled peak about 835 MiB, and authentication copies were removed. Earlier failed runs remain recorded in [Feature] Improve task-centered REA onboarding and recovery in Codex skills #1587.Compatibility, safety, and release
expectedFirstToolmust acceptnullandtargetClarificationPassedfor missing-target scenarios. Existing analysis cases still expect named tools. Requiring a fabricated tool name would misrepresent the required absence of REA calls, so the report version is explicit; production CLI/MCP contracts are unchanged.Review checklist