Repository navigation
chore(memory): move the corrections to 1 file each (core ADR-0081) - #103
Merged
Merged
Conversation
Parallel PRs that each fix a blocking review point append to the same .memory/corrections.jsonl and conflict on every merge; GitHub's server merge ignores merge=union. Core ADR-0081 moves each record to 1 file under .memory/corrections/. Core's migrate-corrections.mjs wrote line N as <date>-legacy-<NNNN>.json; check-corrections.mjs --base origin/main proves each line is kept. The baseline check reads the folder.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Core's check-corrections.mjs rejects years 0-99 (Date.UTC maps them to 1900-1999); the B2 port accepted them. Message-checked cases: 0000-01-01 and 0099-12-31 fail, 0100-01-01 passes. Record in .memory/corrections/.
bketelsen
approved these changes
Nov 13, 2026
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.
Summary
Every PR that fixes a blocking review point appends 1 line to
.memory/corrections.jsonl, so parallel PRs conflict on each merge; GitHub's server merge ignoresmerge=union. core ADR-0081 moves each record to 1 file under.memory/corrections/. This PR moves the records of this repository.CORE_SHA:c8962829f1f34d900e0632e63f690f81630702f1(frostyard/coremain; the scripts are taken withgit show $CORE_SHA:scripts/<name>.mjs, and this repository keeps no copy)node migrate-corrections.mjs --root .migrated 20 records (20 new files, 0 unchanged, 0 promoted).memory/corrections.jsonlatorigin/main)node check-corrections.mjs --root . --base origin/main→ok corrections: 20 records, append-only vs origin/main(each old line is its<date>-legacy-<NNNN>.jsonrecord, field by field)Other changes:
internal/baseline/repository_baseline_test.go(row B2): reads.memory/corrections/by the rules of core'scheck-corrections.mjs(name, 5 string fields, name date, canonical form,.gitkeep), refuses the old file, and has a table testTestCorrectionsProblems(23 cases) with 1 failing case for each rule..memory/README.mdwith the record rules,AGENTS.md, the PR template,docs/org-adrs.mdwith ADR-0081, and the other docs that named it).Text check (prints nothing):
.agents/skills/is excluded: the skills there are synced from frostyard/core, and core's text names both forms until every repository has moved. The skills sync brings the new text.Open PRs that change
.memory/corrections.jsonl(they move their records after this PR)None (
gh pr list --state openon frostyard/repogen).Risk tier
Risk tier: 1 — records moved by script with core's validator proof, doc text, and a baseline test. No risk path matches.
Verification
make verifygreen (withumask 022)..memory/corrections.jsonlwritten back in a temporary copy, the baseline check fails with.memory/corrections.jsonl is retired; add a file under .memory/corrections/.Cross-review
openai/gpt-6.1-sol; coderanthropic/claude-opus-5-5. 1 review of the 10 PRs of this move in 4 batches (the baseline ports, then the text), plus 1 re-review of the fix.Blocking: none, at headdca52e9ea6e92f48860df6aa51fbeb71cb2a980b.check-corrections.mjsrefuses. Guard: message-checked cases0000-01-01and0099-12-31fail and0100-01-01passes; record.memory/corrections/2026-11-13-pr-103-b2-year-floor.json.0099-12-31case fails (and the0000-01-01case). The old B2 check fails on the moved tree (the old file is gone), and the new check fails when the old file is written back.