Repository navigation
feat: cortex.py birth — append a project's row and open its ledger - #79
Merged
Merged
Conversation
The second verb that writes projects.yaml (with retire), the only one that adds a row. Refuses a taken key or local_path, a double quote, backslash or newline; appends the row in PROJECT_FIELDS order, reads it back and compares every field, restoring projects.yaml on any problem or a failed ledger. The diff is a birth to ledger_merge.py, so it lands by itself. Docs: AGENTS.md, REFERENCE.md "Birth", schema decision 63. Refs PyAutoLabs/PyAutoBrain#545 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Companion to PyAutoLabs/PyAutoBrain#546 (PyAutoLabs/PyAutoBrain#545).
Summary
scripts/cortex.py birth <key> --local-path … --ral-root … --sync-verbs a,b --summary …appends one row and opens its ledger. Withretire, these are now the only commands that writeprojects.yaml, andbirthis the only one that adds a row.local_paththat's already registered;PROJECT_FIELDSorder, reads it back comparing every field, and restoresprojects.yamlon any problem or a failed ledger.projects/<key>.md) is classified as a birth byledger_merge.py --base, so it lands by itself. Verified on a throwaway clone.AGENTS.md,REFERENCE.md"Birth", schema decision 63.API Changes
A new
cortex.pycommand,birth. No schema change. 70 tests pass;cortex check: OK.Heart RED override (development only)
Authorized by the live human on 2026-10-29: "I authorize development only heart override" (for PyAutoBrain#545, after the exact RED reasons were shown). Development ship only: commit, push, PR-open. Merge needs a separate human
/prmwith every required check green. No release.Exact RED reasons (
pyauto-heart readiness, 2026-10-29):None of these involves PyAutoBrain or PyAutoCortex. This branch does not fix them.
Passed branch gates: Brain
tests/test_cortex_conductor.py80 passed (3 end-to-end tests skip cleanly against a Cortex withoutbirth); Cortex 70 tests +cortex check: OK; no new lint beyond the file's existing idiom; smoke n/a (organ tooling); independent review FINDINGS, all addressed (below).🤖 Generated with Claude Code