Repository navigation
Conversation
…fted Once operational-learnings.md holds long entries, Harvest copies their length, and recurrence notes copy the file's own story-style notes. The two-line rule now holds whatever the existing entries look like, and a recurrence is recorded as a date.
IdoGvili
force-pushed
the
fix/learning-harvest-entry-drift
branch
from
October 22, 2026 13:16
6b729dc to
b044e81
Compare
This branch has not been 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.
What does this PR do?
Keeps Harvest's new entries and recurrence notes within the two-line entry format when the existing learnings file already holds longer entries, which the agent otherwise copies.
Type of change
Breaking change?
(recurred YYYY-MM-DD), where the skill said "recurrence note" without a format.Skill checklist
New or modified atom
nameis lowercase kebab-case and matches the folder name (unchanged)descriptionincludes specific trigger phrases (unchanged)references/defaults.mdis intentionally absent (special atom)Changes, all in
source/atoms/learning-harvest/SKILL.md(and the regeneratedskills/copy):**STOP: keep to two lines even when existing entries are longer — do not copy their length or shape.**(recurred YYYY-MM-DD), then**STOP: add the date only — if the takeaway changed, reword the entry within two lines.**Testing
Tool used: Claude Code
Model: Claude Opus 5.5 (one subagent per run, reading the skill file directly)
Invoked against: one fake code-forge session on the
sample/User Service (login with account lockout), harvested into three different existing learnings files. The simulated user accepted every candidate. 3 runs per row.What worked correctly:
mainmainmain→ this PROn
main, a long file pulls new entries past two lines, and recurrence notes copy the file's own(Recurred …: story)shape. With this PR, every recurrence note is the date only, and new entries stay close to two lines.Edge cases tested: the session plants four situations, and every row handled them the same way: a repeat of an existing entry (always a recurrence note, never a new entry), a real bug discussed in session ids such as D4 and PR 2 (no id reached an entry), a design decision with no outcome (never proposed), and a library gotcha that broke a test (always captured). Not tested: a missing
.lattice/config.yaml, which this change does not touch.Documentation
docs/how-it-works.mdskill inventory table (if adding a new skill)Anything else?
This is not the size limit from #37: it adds no limit or gate. It makes the existing two-line format and recurrence note hold in a file that has already drifted, which team practice alone cannot do, because every harvest re-reads the file and copies its style.
Fixture: session record
Fixture: short learnings file (5 entries)
Fixture: long learnings file (50 entries, 28 KB)
Agent prompt (SKILL_PATH = the skill file under test, TEST_DIR = the folder holding the session and learnings files)
After the proposal, the simulated user replied: "Accept all, and add the recurrence note too."
🤖 Generated with Claude Code