You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(memory): record the Pest toContain arity trap and the mutate-and-revert data-loss trap - #783
Compound-memory zápis po #782, podle @rules/compound-engineering/general.mdcWrite protocol. Dva poznatky, oba prošly promotion barem.
Nový záznam — pest-tocontain-is-variadic-not-needle-plus-message. Pestí řetězcový toContain() bere variadické jehly, ne (needle, message). Zpráva předaná jako druhý argument se stane druhým hledaným řetězcem, takže test spadne na textu, který v souboru nikdy být neměl, a diagnostika ukazuje na zprávu místo na skutečnou mezeru. Řešení: expect(substr_count($haystack, $needle))->toBe(1, $message) — zprávu unese a navíc pinuje unikátnost, kterou po nás stejně chce [[verify-pin-tests-load-bearing-via-mutate-and-revert]].
Zesílený záznam — verify-pin-tests-load-bearing-via-mutate-and-revert. Ten záznam nařizuje mutate-and-revert, ale neříkal, čím mutaci vrátit. git checkout -- <file> obnoví soubor z indexu, takže na nezakomitované práci smaže celou sekci, kterou pin chrání — a git status pak vypadá čistě, což je přesně to, proč se ztráta snadno přehlédne. Mutaci ruš inverzním sed (nebo stash/restore), dokud práce není zakomitovaná.
Kurátorský průchod: první poznatek je nový (žádný Pest-idiom záznam v souboru neexistoval), druhý podle pravidla Dedup zesiluje existující záznam místo zakládání druhého.
Changes
#
co
commit
SHA
nezávislost
A1
zápis obou poznatků do docs/memory/PROJECT_MEMORY.md
docs(memory): record the Pest toContain arity trap and the mutate-and-revert data-loss trap
viz commit
independent
Jak otestovat
composer build — zeleně (389 testů, 2664 assertions, 100 % coverage). Soubor je projektová data, žádný pin test se ho nedotýká.
Status: converged Counts: Critical 0 · Moderate 0 · Minor 0 · Refactoring 0 Last updated: head of memory-pr782
Summary: assignment conformance: conformant — the compound-memory write mandated by @rules/compound-engineering/general.mdcWrite protocol after PR #782 · reviewer comments: none · no linked issue — issue summary skipped · the diff touches docs/memory/PROJECT_MEMORY.md only: project data the installer never syncs, no executable line, no src/ change, so the coverage gate reports nothing and no Architecture or Database Analysis section applies. Curation pass honoured: the Pest-arity lesson is new (the file carried no Pest-idiom entry), and the mutate-and-revert lesson strengthened the existing entry rather than adding a second per Dedup. composer build green — 389 tests, 2664 assertions, 100% coverage.
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
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
Compound-memory zápis po #782, podle
@rules/compound-engineering/general.mdcWrite protocol. Dva poznatky, oba prošly promotion barem.Nový záznam —
pest-tocontain-is-variadic-not-needle-plus-message. Pestí řetězcovýtoContain()bere variadické jehly, ne(needle, message). Zpráva předaná jako druhý argument se stane druhým hledaným řetězcem, takže test spadne na textu, který v souboru nikdy být neměl, a diagnostika ukazuje na zprávu místo na skutečnou mezeru. Řešení:expect(substr_count($haystack, $needle))->toBe(1, $message)— zprávu unese a navíc pinuje unikátnost, kterou po nás stejně chce [[verify-pin-tests-load-bearing-via-mutate-and-revert]].Zesílený záznam —
verify-pin-tests-load-bearing-via-mutate-and-revert. Ten záznam nařizuje mutate-and-revert, ale neříkal, čím mutaci vrátit.git checkout -- <file>obnoví soubor z indexu, takže na nezakomitované práci smaže celou sekci, kterou pin chrání — agit statuspak vypadá čistě, což je přesně to, proč se ztráta snadno přehlédne. Mutaci ruš inverznímsed(nebo stash/restore), dokud práce není zakomitovaná.Kurátorský průchod: první poznatek je nový (žádný Pest-idiom záznam v souboru neexistoval), druhý podle pravidla Dedup zesiluje existující záznam místo zakládání druhého.
Changes
docs/memory/PROJECT_MEMORY.mddocs(memory): record the Pest toContain arity trap and the mutate-and-revert data-loss trapJak otestovat
composer build— zeleně (389 testů, 2664 assertions, 100 % coverage). Soubor je projektová data, žádný pin test se ho nedotýká.