Repository navigation
docs(claude): apply session-reflection fixes - #643
Merged
Merged
Conversation
The outcome table read that signal as "no schema changes", full stop. In PR #642 it meant the CLI had died silently instead — a `manager_id` column genuinely needed a migration, and the table pointed straight at the wrong conclusion. Shipping a schema change with no migration is a prod crash-loop on boot, not a silent no-op, so the two readings are worth separating. They are indistinguishable from the shell, so the table now splits on the newest `.json` snapshot: it is the schema the next migration diffs against, so a column missing from it has been captured by nothing. Co-Authored-By: Claude Opus 5 <[email protected]>
Vitest reports a syntax error in a spec file as an empty one, so a broken test name reads as "no case matched" and sends you looking at the lane config instead of the file you just edited. Co-Authored-By: Claude Opus 5 <[email protected]>
|
🚅 Deployed to the SahajCloud-pr-643 environment in sahajcloud
|
railway-app
Bot
temporarily deployed
to
sahajcloud / SahajCloud-pr-643
August 20, 2026 21:09
Destroyed
This branch was successfully deployed
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.
Two rules corrected after they misled a session (
/reflect-sessionon PR #642). Docs-only..claude/rules/migrations.md— "exit 0, no new files" was one row, and it's twoThe outcome table read that signal as no schema changes, full stop. In #642 it meant the CLI had died silently instead —
payload/bin.jsrunsvoid start()with no.catch(), so a config-load rejection exits 0 with zero bytes on stdout and stderr. Amanager_idcolumn genuinely needed a migration, and the table pointed straight at the wrong conclusion.That matters more than most doc errors: shipping a schema change with no migration is a prod crash-loop on boot (
column ... does not exist), not a silent no-op.The two readings are indistinguishable from the shell, so the table now splits on the newest
.jsonsnapshot — it's the schema the next migration diffs against, so a column missing from it has been captured by nothing. A new subsection carries the check and the escalation ladder (preload.envand redirect stdout, since piping totail/grepalso loses the output; then drivepayload.db.createMigration()fromnode --import tsx/esmwith anunhandledRejectionhandler). Both rungs were needed in #642, wheredangerouslyDisableSandboxalone was not — contrary to what the standing memory claimed, which has been corrected too..claude/rules/tests.md—Tests no testsVitest reports a syntax error in a spec as an empty file, so a broken test name reads as "no case matched" and sends you to the lane config instead of the file you just edited. One paragraph under "Running tests locally", with the two ways to see the real error.
Not included
A third approved item — relationships aren't populated inside a field
afterRead, sodata.<rel>is a bare id at any depth — belongs incollections.mdbeside the siblingafterReadgotcha and next to theresolveManagercode it cites. Both live on the unmerged #642 branch, so it ships there instead; putting it onmainwould cite a file that doesn't exist yet and would likely conflict.Three memory files were also updated outside the repo (the CLI escalation ladder, the admin-copy audience, and two new ways a mutation check can lie).
🤖 Generated with Claude Code