Skip to content

Optimize Boring Backend skill routing and verification#3

Merged
dd3ok merged 2 commits into
mainfrom
codex/token-efficient-skill-routing
Jul 10, 2026
Merged

Optimize Boring Backend skill routing and verification#3
dd3ok merged 2 commits into
mainfrom
codex/token-efficient-skill-routing

Conversation

@dd3ok

@dd3ok dd3ok commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • move handoff/fairness, ordinary subagent boundaries, and token telemetry into conditionally loaded references
  • tighten risk-catalog routing while linking every reference directly from SKILL.md for vendor-compatible progressive disclosure
  • add mirror/package semantic guards, a cross-platform verification entrypoint, and Ubuntu/macOS/Windows CI
  • update English/Korean maintenance documentation

Token impact

Word-count proxy against main:

  • SKILL.md: 589 -> 508 words (-13.8%)
  • always-read SKILL.md + core routing: 951 -> 858 words (-9.8%)
  • default core path: 1,412 -> 1,290 words (-8.6%)
  • ordinary subagent reference: 215 -> 53 words (-75.3%, 162 words saved per load)

The experiment and token-reporting references load only when their trigger applies. Catalogs remain conditional and require a catalog_route reason.

Verification

  • python scripts/verify_all.py (33 repository tests and 8 forward implementation tests)
  • python -m py_compile scripts/verify_boring_backend_skill_mirrors.py scripts/verify_all.py tests/test_verify_boring_backend_skill_mirrors.py tests/test_verify_all.py
  • git diff HEAD^ HEAD --check
  • source, .agents, and .claude package hashes verified identical

Review notes

  • Checked against current official OpenAI skill guidance and Anthropic skill/subagent guidance.
  • Independent final review found no code or routing issue; its pre-commit untracked-file warning is resolved by this commit.
  • Plain git diff --check was intentionally not added to CI because a clean checkout has no working-tree diff; local and pre-PR range checks cover the changed patch.

@dd3ok dd3ok left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Self-review complete.

  • No reproducible P0-P4 code, routing, mirror, or documentation findings remain.
  • OpenAI/Anthropic packaging and progressive-disclosure guidance checked: concise third-person discovery metadata, direct one-level references from SKILL.md, and conditional detail loading are preserved.
  • Duplicate/stale-text scan found only intentional verifier fixtures; runtime package has no repeated long lines.
  • Ordinary subagent guidance is isolated from experiment/handoff rules, and token reporting is no longer on the default routing path.
  • Local verification passed (33 repository tests, 8 forward implementation tests, Python compilation, patch whitespace check); GitHub Ubuntu/macOS/Windows checks also passed.

Residual risk: token savings are word/byte proxies, not a guarantee of identical tokenizer counts or behavior across every Codex/Claude model. Live multi-model evaluations remain the appropriate follow-up for release-level confidence.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request restructures the boring-backend skill by moving experiment reporting, subagent delegation, and token reporting guidelines into dedicated reference files, updating the skill mirrors accordingly. It also introduces a unified verification entrypoint script verify_all.py with corresponding unit tests and CI workflow configurations. The review feedback highlights opportunities to improve the robustness of a case-sensitive assertion in the unit tests and to simplify redundant string checks in the semantic validation script.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread tests/test_verify_boring_backend_skill_mirrors.py Outdated
Comment thread scripts/verify_boring_backend_skill_mirrors.py
@dd3ok dd3ok marked this pull request as ready for review July 10, 2026 00:04
@dd3ok dd3ok merged commit 603adf0 into main Jul 10, 2026
6 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2c5478ce92

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +206 to +207
r"\bfor\b.*(?:\bcompatibility\b|backup/restore)", line
):

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve compatibility-route overlap detection

This narrowed pattern only catches overlap wording that says for compatibility after operations-guard-catalog.md; a bad route such as “Route compatibility to references/operations-guard-catalog.md” or “use operations when compatibility changes” now passes even though the guard is meant to prevent compatibility/backup-restore work from being routed to operations. Since this verifier is the protection against catalog-routing drift, keep the new catalog-inventory line from false-positiveing without requiring this specific for ... phrasing.

Useful? React with 👍 / 👎.

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