Skip to content

feat: add Codex skill discovery from shared instructions - #401

Merged
Jammy2211 merged 6 commits into
mainfrom
feature/codex-skill-discovery
Sep 19, 2026
Merged

Jammy2211 merged 6 commits into
mainfrom
feature/codex-skill-discovery

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Assistant and workspace skills were not discoverable by Codex. Generate their namespaced adapters from the registered repository inventory while retaining canonical skill bodies and existing Claude discovery names.

Phase 3 of the agent-agnostic setup task; tracked in PyAutoBrain#386.

Scripts Changed

  • bin/install.sh, bin/project_discovery.py: scoped generation and drift checks, collision checks, and protected-file handling.
  • tests/test_skill_install.py: discovery regression coverage.

Validation

  • 22 focused Brain installer tests passed; independent review CLEAN.
  • Discovery drift checks passed for all eight task repositories.
  • 105 generated Codex adapters passed the installed Codex skill validator; names are unique and canonical links resolve.
  • Existing Claude discovery links resolve; the four moved workspace skill bodies are byte-identical.
  • No modelling scripts or library API changed; no notebook regeneration needed.
  • Heart: STALE — release validation incomplete: no rehearsal for current source. Development evidence passes; this is not release approval.

A bounded codex-cli 0.155.1 skills/list smoke discovered all 20 autofit assistant adapters with no errors. This checks discovery, not execution of every skill.

Generator changes are in the matching PyAutoBrain branch. The committed consumer adapters resolve within this repository without requiring Brain at runtime. Phase 4 metadata and documentation cleanup is tracked separately in PyAutoBrain#400.

Companion PRs

Related phase: #402

CI follow-up

The first CI run caught hardcoded instance names in discovery and missing clone classifications for generated adapters. The follow-up removes those names and classifies the new Claude command links and namespaced Codex wrappers. Clone-profile tests: 37 passed; the full lensing-assistant boundary passed locally. All newly generated inference-assistant adapters are classified; its 11 pre-existing unclassified script/notebook paths remain outside this change. Merge this Brain PR before the corresponding assistant PRs.

The tenant firewall and scoped discovery drift checks now pass. Independent review verified that newborn clones omit parent Codex wrappers and regenerate their own. Installer tests: 22 passed.

Independent CI-followup review: CLEAN.

@Jammy2211
Jammy2211 merged commit c4ac9b1 into main Sep 19, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/codex-skill-discovery branch September 19, 2026 13:03
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