Skip to content

Reduce repeated instruction loading and fix workflow paths - #404

Merged
Jammy2211 merged 3 commits into
mainfrom
feature/codex-context-efficiency
Sep 19, 2026
Merged

Jammy2211 merged 3 commits into
mainfrom
feature/codex-context-efficiency

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Repeated full instruction/reference reads inflate Codex context after the grouped-workspace migration. This change shortens Brain guidance and PRM startup reading, makes environment/stage references conditional, and adds bounded output, resolved-path and completed-phase handoff rules.

The paired Mind change and prepared root update reduce the three maintained AGENTS surfaces from 43,365 to 25,731 bytes (40.7%). This is a static size reduction, not a claim of runtime token or billing savings. PRM's main body falls from 349 to 169 lines; every merge, freeze, review and close-out requirement remains reachable at its applicable stage. Claude delegation and Astra configuration are preserved.

API Changes

Adds bin/workspace_instructions.py --root <workspace> [--write], which updates recognized root instruction sections and refuses unexpected local edits. Shared instruction paths resolve by repository identity for grouped mains and flat bundles. No scientific library API changes.

Validation

  • Brain suite: 982 passed with worktree activation and PYAUTO_MIND unset for fixture isolation.
  • Root updater regressions: 3 passed; generated command/discovery checks and tenant firewall passed.
  • Independent review of both repositories and CI follow-ups: CLEAN.
  • Sphinx build passes with warnings treated as errors; GitHub checks are green.
  • Root preview passes both installer checks; token-load budget check passes.
  • New/changed primary skills are within 200 lines; unrelated batch remains a pre-existing report-only exception.
  • Heart: STALE, release validation incomplete: no rehearsal for current source; permitted development shipping only.

Activation

Merge together with the paired PyAutoMind PR. Root changes are prepared, not installed on the live workspace: follow docs/context_efficiency.md after both main checkouts advance. The updater preserves local additions and machine-specific HPC instructions.

Closes #403.

Paired PR: PyAutoLabs/PyAutoMind#425

@Jammy2211
Jammy2211 merged commit e0a0a10 into main Sep 19, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/codex-context-efficiency branch September 19, 2026 13:58
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.

Reduce repeated Codex context and fix grouped workflow paths

1 participant