Skip to content

perf(skill): load target guidance through a concise entry point - #9352

Merged
kaoru0822-kitauji merged 7 commits into
codex/context-skill-entryfrom
codex/context-skill-progressive
Nov 12, 2026
Merged

kaoru0822-kitauji merged 7 commits into
codex/context-skill-entryfrom
codex/context-skill-progressive

Conversation

@kaoru0822-kitauji

@kaoru0822-kitauji kaoru0822-kitauji commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked on #9350; review against codex/context-skill-entry. Completes progressive disclosure for #8084. Lane A only: no MCP catalog, default, schema or handler changes.

The original baseline loaded 552 lines before the target was known (562 at pinned current main). The entry is now 123 lines, preserving target selection, authority, connection stopping rules, Evidence identity/uncertainty, summary selection and cleanup. Its routing table directs each target to its owning guide. All seven original reference paths and external links remain available.

Capture instructions move to recorded-captures.md; provider, recovery and Evidence details move to their existing owners. Long guides have contents lists. Unique format facts are consolidated rather than duplicated. Stale capture-decoder settings and optional static IL2CPP linking guidance now agree with their current contracts. The generator pins package commands at the shared file boundary, including references; managed packaging adds the new page and advances skill metadata to 62.

Qualification also fixed three documentation boundaries: recovery links to its actual CLI section; explicit native anchors preserve the original title and a renderer-independent Managed PE/CLI destination; CLI summary exports are documented as {summary, evidence_bundle}, with the parent ID under summary.normalized_result. The managed anchor sits inside its owning section so rendered navigation and guidance retrieval agree.

Context estimates: pinned main 72d5e72e6 → current stack, tokenx 1.3.0. Each row sums the authored entry and all named complete guides:

Read path Before After Reduction
Entry only 9,982 2,618 73.8%
Raw / ESP 23,844 3,918 83.6%
Native 23,844 10,952 54.1%
Archive 23,844 4,552 80.9%
Offline format 23,844 8,207 65.6%
JavaScript 13,813 6,643 51.9%
Android 11,036 3,672 66.7%
Recovery 14,081 7,191 48.9%
JavaScript + Evidence 16,680 10,821 35.1%

Method: git show for baseline bytes; current authored bytes; sum estimateTokenCount per file without truncation. These are estimates, not model token counts. Unchanged MCP definitions, arguments/replies, reading wrappers, reasoning, retries and additional references are excluded. Agents may read fewer sections or more guides; no whole-task efficiency claim follows.

At 4672d261e, the bounded nine-path counter took 38.73 ms wall / 49.40 ms CPU / 67.61 MiB peak RSS on its first pass and 17.35 ms / 17.54 ms CPU / 69.19 MiB cumulative peak warm. It had no children, so process/family peaks coincide; OS caches were not flushed. These profile the counter, not analysis. Native, JavaScript and combined-guide estimates above were recounted after their final documentation corrections.

Executed validation, macOS arm64, Node 24.22.1 / npm 11.16.0:

  • Latest 08f9275da: 35/35 focused tests across generated packaging, installed skill bytes/idempotence/backups/links and guidance retrieval; check:fast, docs:check (9 README cases), formatting and diff checks passed. Added first-result retrieval for the summary export receipt.
  • Public CLI recipe at 9ade202db: 7 fresh processes, covering real JavaScript summary/export, exact page/item recipes after deleting the owned source fixture, repeated identical views, filtered bundle discovery, missing-reference rejection and tamper rejection. Canonical Evidence, summary/view and bundle validation passed; the selected asset retained its independently computed SHA-256; process-owner cleanup passed. Initial private-harness assumptions about progress output, delivery wrapping and module role were corrected; no repository oracle changed.
  • Combined stack at bed464b7b: 69/69 tests in nine files, including setup/uninstall acceptance, cleanup/publication retry, profile provenance and public guidance CLI malformed-input/cursor cases. Final anchor placement then passed the nine affected rendering/retrieval cases and docs checks again.
  • Render audit: 199/199 local fragment links across 12 packaged pages resolve, 39/39 original native fragments remain; GitHub GFM preserved 27/27 explicit anchors. The installed-render regression failed on both original defects before their fixes.
  • Actual npm pack/prepack, unpack and isolated Codex skill setup/rerun at bed464b7b: all 12 files match, six public guidance queries find the expected first section, repeated reads are identical, fallback version pinning holds. Locked dependencies were reused through a symlink; this does not qualify a clean dependency install. Skills CLI 1.7.2 also installed all 12 authored files from a tracked source snapshot.

Real-agent qualification: isolated fresh Codex 0.167.0 clients, installed-file guidance, read-only static targets. Documentation MCP tools were disabled where needed to isolate file guidance. No model override; resolved model identity unavailable.

Case Observed result Usage / limits
ASAR, full catalog Correct route, 4/4 existing factual/Evidence claims; missing-target control made zero REA calls Initial approval refusal; approved rerun passed facts but reset remained policy-blocked
ASAR, hot/cold + refresh feature Cold producer discovered/called, 4/4 claims, successful reset; source digest unchanged 312,227 input (257,280 cached), 1,071 output, 66.59 s; second discovery loaded the view tool but the agent did not call it
Android, missing JADX configuration Exact target routed to Android inspection; package/classes remain null; canonical capability_unavailable diagnostic exactly matches the independently captured CLI error; reset succeeded 144,365 input (124,032 cached), 543 output, 39.72 s; synthetic APK-shaped ZIP only, no APK/DEX or real-JADX claim; early assessor failure prevented post-run physical hashing
Recorded HAR, full catalog Read entry + new capture guide; summary inspection → retained API view with query names → reset; exact two groups/statuses/ordinals, historical authority and unknowns preserved 163,531 input (138,752 cached), 945 output, 44.90 s; synthetic HAR 1.2, one fresh client/run
Cortex-M + ESP, baseline vs candidate Both reject unsupported Cortex-M loading, inspect only ESP, preserve chip/entry/integrity facts and matching canonical summary/parent IDs; tampered chip with original ID rejected Baseline 243,442 input (205,568 cached), 620 output, 49.89 s; candidate 157,877 (134,272 cached), 466 output, 52.38 s

The HAR check at 08f9275da also authenticated the complete public CLI parent and both MCP summary/view replies, including text/structured equality, source SHA-256 and parent links. The owned fixture remained unchanged; only the entry and capture guide were read through shell, with no recorded-URL fetch operation. Six negative controls rejected false attribution, schema completeness, digest/citation/status changes and tampered Evidence. Private assessors initially assumed a literal unknown string, the wrong summary shape and fixed group order; saved replies were reassessed against the canonical union and order-independent exact fixture facts. No model rerun or repository test-oracle change. Reset and command-owner cleanup succeeded; no product issue or additional source change was justified.

These are single runs/configurations, with warm filesystems. The firmware baseline omitted reset; the candidate closed and reset. They are not equivalent completed workflows, so their usage establishes no efficiency advantage. Agent CPU/family memory were unmeasured. Sequential command-owner cleanup passed. An earlier concurrent firmware pilot failed cleanup verification and is excluded; its named PIDs were later absent. The original producer-only summary assessor and Android assessor expecting the wrong error tag remain unchanged; saved replies were separately authenticated against canonical contracts/CLI facts, including negative controls.

Real deep providers, vendor firmware and live captures remain unverified. The optional Python skill validator requires unavailable PyYAML; repository metadata/link checks pass. Deferred schemas, protocol/profile lifecycle matrices and combined #9351/#9353 verification remain Lane B's scope. No execution, installation or mutation capability is added; no merge is authorized.

Latest integration: 7fa9f3699c includes updated #9350/main 8358cfcab3, preserves desktop-build routing and Go guidance, and advances managed metadata to63. Build and typecheck/lint passed;28 focused setup/routing tests,8 packaging/link tests and9 documentation tests passed. npm pack --dry-run --json ran prepack/prepare and includes all13 managed files. Current-main estimates with tokenx1.3.0: entry10206→2680 tokens (73.74%), entry+JavaScript14037→6705 (52.23%), plus Evidence16904→10883 (35.62%). These exclude schemas/replies/discovery/reasoning; they establish no completed-task speed or CPU/memory improvement. A merge hook briefly reformatted three upstream tests; exact upstream contents were restored, and the final16-file diff stays within skill/routing/packaging scope.

Author readiness

Human owner: @kaoru0822-kitauji

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@greptile-apps

greptile-apps Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge.

Summary

This PR shortens the skill entry point and moves detailed instructions into focused guides.

  • The REA skill routes each target to only the guidance it needs.
  • The Evidence guide explains how to continue from summaries and large results.
  • Focused guides collect capture, recovery, runtime, and artifact-specific instructions.
  • Generated skill bundles include the capture guide and pin commands across references.

Reviews (6) · Last reviewed commit: "docs(skill): explain CLI summary export ..." · Reviewed by Greptile

@kaoru0822-kitauji
kaoru0822-kitauji marked this pull request as ready for review November 12, 2026 13:50
@kaoru0822-kitauji
kaoru0822-kitauji merged commit 825c37b into codex/context-skill-entry Nov 12, 2026
@kaoru0822-kitauji
kaoru0822-kitauji deleted the codex/context-skill-progressive branch November 12, 2026 13:50
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T13:52:20.408018Z 7fa9f36 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@morluto morluto added performance Performance regressions, scaling limits, and bounded-resource work area: bridge Hopper bridge (Python) related changes labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: bridge Hopper bridge (Python) related changes performance Performance regressions, scaling limits, and bounded-resource work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants