Commit Graph
72 Commits
Author SHA1 Message Date
yetone c2fd48782b Put back what 1f05c311d took out of main by mistake
1f05c311d was committed with its worktree's older tree on top of a
fresh origin/main (git reset --soft), so beside the memory fix it
undid every file 610ae1f54..c1312ac15 changed (45 files: key balance,
import links, project subagents, uninstall, site, LESSONS.md and
more). This commit restores each of them to c1312ac15 byte for byte;
the tree is now c1312ac15 plus the memory fix alone
(git diff --stat c1312ac15 HEAD: the 4 files of the fix).
2026-11-13 12:18:23 +08:00
yetone 1f05c311d9 library: an open memory holds still while the Memory tab polls (Nietzsche_Li on X)
"资源库-记忆中,被展开的记忆的表单会定时抖动". While search by meaning
still has memories to read (read < of, which can last up to a minute
between memembed.Keep's reads) or a learn-from-conversations run goes,
the Memory tab reads its row again every 2s, and each read drew the
whole page anew. The open editor was a new .lib-detail each time and
played its content-in entrance (opacity .5, 2px slide) every 2s.

- semWatch/distWatch draw nothing when the read changed nothing, and
  redraw only their own row (redrawRow) when it did; the whole tab only
  when the memories changed.
- render() marks a .lib-detail open before it (same data-detail) as kept,
  so it doesn't replay its entrance. This covers every render of an
  open editor in the Library: memories, instruction sets and agents'
  files (the siblings; no other Library tab polls into render()).
- A new memory's text no longer takes the focus back on every render.

Run (mote): library-memory-steady.test.cjs, all 5 languages, 980/420,
chromium + webkit: green 4 of 4 whole-file runs after the last change
(webkit alone 2 of 2 before it). Broken by hand: the same test against
origin/main's client.js and library.css: 22 of 22 red ("the editor
played its entrance again"). One webkit de 420 red was the test's own
first row click intercepted by the header at 420px while the page
settled; the test now opens rows with a DOM click.
Also run, both engines, every language, 980/420: library-memory, library-memory-select, library-memory-suggest, memory-icon, library-instr-busy, library-instr-sets, library-linked-set, library-follow-server: all green. No Go code changed, so no go test or vet.
Not tried: the real app on a real memory store mid-read.
2026-11-13 12:17:43 +08:00
yetone c1312ac151 lessons: 11-13, the eager-regexp guard red twice more
1ca2c62c4 and d52e2feaf each added a package-level regexp and ran only
their own package; the root guard caught both (19fd0dfb8, 6a506e283).

Run: none (text only).
2026-11-13 12:13:30 +08:00
yetone d9a2277ea7 LESSONS: 11-13, a budget raised by what was over and records that point elsewhere
2f34649a6 measured 1,266,040 against 1,265,712 (budget.py over git show),
and dd9b2bcef raised the budget to what was left after packing. Docs only.
2026-11-13 11:20:05 +08:00
yetone 364e4946ae LESSONS: 11-13, a patch on #5948 waited three days until CI went red on it
Records the case under the moved rule "a red's issue is read to its
last comment, and a patch on it is taken first". Docs only.
2026-11-13 10:47:45 +08:00
yetone 235ed22eb1 LESSONS: 11-13, a budget's pass recorded at a tree it wasn't run at 2026-11-13 08:18:51 +08:00
yetone 9eda623406 docs: lessons: a script Settings loads runs in the panel too (#6139)
22f2759d7 left agent-prefs red for two days; 41e330bdf fixed it.
Docs only; nothing run.
2026-11-13 02:11:22 +08:00
yetone 5f1a642b42 docs: a commit's tree is origin/main plus its own change, in the code standards
Seen a third day: 8c7328f3a (11-13, remote quotas) was committed from a
stale tree and wrote 21 files back to their state before 35aaaa4b9,
taking out three commits (put back in 926b1e7df), after 85e6ec540
(11-11) and 76ceff87c (11-12). The rule moves from LESSONS.md into
docs/code-standards.md's Commits section, and LESSONS.md lists it under
Moved to the code standards. Docs only; nothing run.
2026-11-13 02:01:18 +08:00
yetone b4821050a8 lessons: a commit's stat names only the files its change touched (76ceff87c)
76ceff87c, built on an older base, took out 7c37424fc and d6b5f24db with
their tests (restored in 8097860ab); 85e6ec540 did the same on 11-11.
Seen 2x, kept as its own lesson. Docs only; nothing run.
2026-11-13 01:08:07 +08:00
yetone 118765663a lessons: a test that breaks a shared file puts its bytes back (aa744b9ed)
TestFetchPrivateEntries left "{not json" in the gateway package's shared
settings.json, since its cleanup restored through settings.Save, which
refuses to write over an unparseable file, and dropped the error.
TestRemoteMagpieAskedToFollow went red on ubuntu CI at 836d074f1.
Docs only; nothing run.
2026-11-13 00:07:35 +08:00
yetone ea3a00adc5 lessons: a commit message file is made fresh, and its subject read back
plugins bc9f611e (11-12) and ce1251cc9 (10-15) each shipped under
another change's stale message. Docs only.
2026-11-12 21:26:07 +08:00
yetone 93e8e225ce lessons: 11-12, the eager-regexp guard red again, with the route guard
4519eea71 left two guards outside its packages red (fixed in
f97415bc0). Docs only.
2026-11-12 20:54:16 +08:00
yetone d0a4e0be6f lessons: a size budget is met, not raised, moves into the code standards
coreScriptBudget rose four times on 11-12 (d96403141, 05cadcafd,
4519eea71, 09e2eef0d), 1,089 bytes with nothing moved out, the third day
the budget lesson was seen (10-17, 11-10). Per LESSONS' rule it moves into
docs/code-standards.md as a row of "What a change contains". Docs only.
2026-11-12 20:11:44 +08:00
yetone 7199afbb66 lessons: 11-12, the eager-regexp guard red a fourth day
36eebea13 (fixed in 10e783080) and 4028687b8 (af212c945).
2026-11-12 19:38:04 +08:00
yetone e2114780ab lessons: a test never swaps time.Local
From the race 4028687b8 brought to main (af212c945); #2949 and #4360
are the same class.
2026-11-12 18:59:09 +08:00
yetone 1272015d22 LESSONS: a wip commit reached main and left a test red for 35 minutes 2026-11-12 13:06:11 +08:00
yetone 810cc21a5e LESSONS: d31988c95 undid Mistral's cache key too; state for one provider is keyed by it 2026-11-12 12:32:10 +08:00
yetone 59b411b56d LESSONS: a commit's file list is checked against its goal (698ed4adb undid two commits) 2026-11-12 09:59:30 +08:00
yetone 2e9ddf05dd lessons: a new route left the parity guard red a second day (60fde6fb1) 2026-11-12 03:06:55 +08:00
yetone dba8e99f40 LESSONS: 11-12, a package-level regexp added beside a run of chosen packages (4847a087f) 2026-11-12 02:17:10 +08:00
yetone 1751eeaf19 LESSONS: 11-11's reds from a shared list, a process-wide byte count and -run of a package's own tests (#6165, #6178, #6187) 2026-11-12 00:18:07 +08:00
yetone 60559ee73a lessons: 85e6ec540 pushed a stale index over six commits 2026-11-11 23:17:44 +08:00
yetone bbfa8501fb lessons: 16ed1a952 shipped a feature under another commit's message (#6162) 2026-11-11 22:43:50 +08:00
yetone 0983bccc90 LESSONS: 11-11, a red on main fed with comment cuts instead of owned (#5918) 2026-11-11 21:34:59 +08:00
yetone 949d705048 lessons: 11-11, a -run of a package's own tests left its guards red
55dff77b4 ran `-run PluginPage ./internal/gui`; TestNoEagerPackageRegexps
and TestCoreScriptBudget went red on CI (817ccb56f, 24123d47a), fixed
in de10c6676 and f54920280. Docs only; nothing run.
2026-11-11 20:51:21 +08:00
yetone 307b16b406 lessons: a pool fix keeps its siblings past a collection (#5990); a release step waiting on Apple has its own limit 2026-11-11 19:00:21 +08:00
yetone bee9a7200f lessons: compare paths with links followed on both sides; a test's path in its file's encoding
From #6127 (a1961f5ca) and #6065 (ff11275ae). Docs only.
2026-11-11 17:27:33 +08:00
yetone ea7afbe989 lessons: a new route or field runs the guard tests that list them; a second fixed allocation bar
From the 11-11 reds: f5e1b1091 ran `cli -run ContextCap` and left the CLI
parity, GUI keep and usage-column tests red (#6102 to #6104); e0cadc312's
memory routes had no parity entry; and the dsh round's fixed 300 read 421
on Windows (#6118).
2026-11-11 16:31:22 +08:00
yetone bc59aefd09 LESSONS: 11-11 — a cache key that rounds a field, a context a stopped timer keeps, a fixed allocation bar 2026-11-11 15:04:26 +08:00
yetone b42383e6ca lessons: a new route or setting runs the packages whose guards list them
Three commits on 11-11 turned the route and settings guards red (fixed in
c1a072636 and the next commit), and three more left the core's scripts
over budget together (61a93b531).
2026-11-11 12:28:15 +08:00
yetone 0378c10187 lessons: a patch on an open red issue is reviewed when posted (#5433)
skygunner's fix for #5433 sat three days unowned until the red came
back on CI (296a9292c); landed in 855b97a40. Docs only, nothing run.
2026-11-11 10:51:09 +08:00
yetone b50910fee5 LESSONS: a new file's name is checked against the tree first (8fa91a852, 1c3056a2e) 2026-11-11 07:12:37 +08:00
yetone c8bb0f2f26 LESSONS: prove an access list's containment per pair of entry kinds (08cca7311) 2026-11-11 06:40:43 +08:00
yetone 87dfc0d0b8 lessons: 11-10's package-level regexps ran past the root package's guard (#6020) 2026-11-11 05:30:42 +08:00
yetone 6873638126 lessons: wait for the state a test checks (#6016); a WIP body is rewritten before the push (b9f8548d2) 2026-11-11 04:27:01 +08:00
yetone 459405960b lessons: look for a declined vendor where every agent can 2026-11-11 01:46:03 +08:00
yetone 90f9f01a24 lessons: a route has three guards; a declined vendor comes back (11-11) 2026-11-11 01:32:19 +08:00
yetone db0f2f20d4 lessons: a -run filter skips the route guard (11-10) 2026-11-10 23:17:55 +08:00
yetone b2b83d4f90 lessons: a timing margin that the host's start eats, fixed one test at a time (11-10) 2026-11-10 22:38:08 +08:00
yetone d4202898f6 lessons: the guards went red three more times the same night (11-10) 2026-11-10 20:44:57 +08:00
yetone 4eeee52158 lessons: the route guard a fourth time, and a row found by a word in it (11-10) 2026-11-10 19:56:57 +08:00
yetone b9e5f856f7 lessons: two more guard tests red on main from untouched packages (11-10) 2026-11-10 17:44:57 +08:00
yetone 5a347ca8c6 lessons: two sub-second guards red on main eight times on 11-10 2026-11-10 17:00:34 +08:00
yetone 4c5b894891 lessons: a size budget that counts comments is met by deleting them (#5918) 2026-11-10 16:26:26 +08:00
yetone 2219fdd49e lessons: a searched-for word a port or id can spell, seen again (#5616) 2026-11-10 15:54:04 +08:00
yetone b119f87771 LESSONS: a change to when a value appears re-reads every wait on it (3dd59428e) 2026-10-29 00:20:20 +08:00
yetone c4972b36e1 LESSONS: a new reader of a live object reads each field the way its writer writes it (983fff23d) 2026-10-28 22:40:30 +08:00
yetone 04749d926d LESSONS: a release published after a newer one takes Latest and the tap (seen 10-15, 10-28)
Records the second day of the Latest mark going to an older release,
and that magpie-releases ee73d7a fixes it in the publish step. Docs
only; nothing run.
2026-10-28 20:20:50 +08:00
yetone 96d4715c61 LESSONS: a cancelled run hides a Race-job red; a pool or allocation bound checks raceOn (10-28)
0b99b8fbe's TestMarshalBodyAllocatesTwoBodies went red in macOS CI's
Race job at 25df3187b, the first Test run after it that finished: 49 of
main's last 58 Test runs were cancelled by the next push. Fixed in
d3f3f3381. Docs only.
2026-10-28 18:58:38 +08:00
yetone 51247a55b2 docs: one commit, one goal moves into the code standards (seen a third day)
LESSONS.md's "One commit, one goal" was seen on 10-05 and 10-06. On
10-28 6e080ca04 answered two reports in two layers under one subject:
psikent's /v1/models tools flag (gateway) and windy's routing group
Context hint (GUI, five languages), the subject naming only the first.
A revert of either takes the other with it, and the record can't say
which test guards which.

- docs/code-standards.md, Commits: a paragraph on one goal per commit,
  with 653cb8ee, 1e0829b1 and 6e080ca04.
- LESSONS.md: the lesson replaced by a pointer, and listed under Moved
  to the code standards with the 10-28 evidence.

Docs only. Checked that no test reads either file's content
(loop_guard_test.go and rtk_detect_once_test.go only name them).
2026-10-28 17:51:52 +08:00