docs: record BRAIN-010 and warn that the Pest gate wipes the dev database - #11
Merged
Merged
Conversation
…base BRAIN-010: several sessions merge into main during a task, so ADR and BRAIN numbers are read from origin/main at write time, a branch is rebased and re-gated before publishing, and the state that ships is the state that was verified. Warn in the gate set that Pest runs against commandsphere with RefreshDatabase, so data-dependent gates run before it and the database is reseeded afterwards. Co-Authored-By: Claude Opus 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.
Closing documentation for C3 (F-008), recording what the task taught about working in this repository.
BRAIN-010 —
mainmoves while a task runsSeveral sessions merge into
mainduring a single task, so anything shared across branches is read late and verified states are claimed late:BRAIN-NNNnumbers are read fromorigin/mainimmediately before writing, never reserved at the start. The CSP ADR moved from 26 to 29 to 30 during C3 because parallel sessions took those numbers first.origin/mainand re-gated before publishing; approval on an earlier base does not carry over on its own.git fetchagain before opening and before merging a pull request.brain//docs/files on the current base before the closing edit.Gate set warning: Pest wipes the development database
Feature tests use
RefreshDatabaseand the suite runs againstcommandsphere, becausebackend/phpunit.xmlkeeps its database overrides commented out and there is nobackend/.env.testing. The warning now sits directly under the backend gate commands, where it gets read: run data-dependent gates (E2E above all) before Pest, and reseed afterwards. CI is unaffected — it setsDB_DATABASE=commandsphere_test.This emptied the development database twice during C3 and blocked the independent E2E measurement on the first attempt. The structural fix is already tracked as the first backlog item in
NEXT_ACTIONS.md.Documentation only; no product code touched.
🤖 Generated with Claude Code