Conversation
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.
Motivation
prime lab/vf-setupusers get editable, provenance-agnostic copies.Description
scripts/sync.pythat composesAGENTS.md/CLAUDE.mdandenvironments/AGENTS.mdfrom modular sources underassets/agents/and writes lab variants toassets/lab/.assets/agents/common_best_practices.md,repo_development_best_practices.md,end_user_best_practices.md, andcompilation_design.mdand regenerated compiled outputsAGENTS.md,CLAUDE.md,environments/AGENTS.md, and lab copies underassets/lab/.scripts/sync_agents_md.pyand updated.pre-commit-config.yamlto call the newscripts/sync.pyand broadened the hook's watched files to includeassets/agents/*.mdandscripts/sync.py.verifiers/scripts/setup.pyto download end-user docs fromassets/lab/...instead of repo-root files, and simplifiedCLAUDE.mdheaders to reflect generated provenance.load_environment(...) -> vf.Environment,prime env install,prime eval run,vf.ensure_keys(...), and prefer a single clear path for repo-internal workflows).Testing
python scripts/sync.pyto generate outputs and observed updated files on first run and "up to date" on the second run, confirming generation and idempotency (succeeded).uv run ruff check --fix scripts/sync.pyto validate formatting/linting for the new script (succeeded: "All checks passed!").python scripts/sync.pyas an idempotency check and confirmed no further edits (succeeded).rg -n "backward-compatible|ToolEnv|StatefulToolEnv|ensure_keys|prime env init|prime eval run" assets/agents AGENTS.md assets/lab/AGENTS.mdto verify the intended content appears in the right places (succeeded).Codex Task
Note
Low Risk
Primarily documentation/generation tooling changes; the only behavioral impact is which AGENTS/CLAUDE markdown files
verifiers/scripts/setup.pydownloads into workspaces.Overview
Introduces a new generator (
scripts/sync.py) that compiles repo and lab/workspace variants ofAGENTS.md,CLAUDE.md, andenvironments/AGENTS.mdfrom modular markdown sources underassets/agents/, writing portable copies toassets/lab/.Replaces the previous
sync_agents_md.pyflow, updates the pre-commit hook to run the new compiler and watch the modular sources, and adjustsverifiers/scripts/setup.pyto download the lab variants (assets/lab/...) instead of the repo-root files. Compiled rootAGENTS.md/CLAUDE.mdcontent is rewritten to be shorter, repo-scoped, and explicitly marked as generated.Written by Cursor Bugbot for commit 53ab183. This will update automatically on new commits. Configure here.