Repository navigation
learn: retrospective learnings - #484
oss-engineer-bot[bot] wants to merge 1 commit into
Conversation
e0adc3c to
53d0792
Compare
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 Low
Looks good, with 1 low concern: this PR only touches docs, and L-0098 to L-0100 match the new journal entries. L-0097 has no journal entry behind it in the checkout.
| - L-0061 (1×, #466): Coalesce requests without holding locks across network calls: key attempts, share same-key errors/results, recheck after different-key waits, and detach work from individual waiter cancellation. | ||
| - L-0062 (1×, #431): A non-consuming peek buffers errors as well as data for the next read. Test one-shot-error-then-EOF; optional enrichment must not silently turn server success into execution failure. | ||
| - L-0063 (1×, #451): Cached terminal ExecuteResponse payloads must be complete and take-once. Clear on error, close, Drop, owner release, timeout and fresh status polls; document how terminal observations retain inline results. | ||
| - L-0097 (1×, #478): When sync code triggers lock-guarded async work, take try_lock_owned before spawning and move the guard in so bursts spawn one task; ensure timer/close flushes skipped triggers. Test spawn count via num_alive_tasks on an unstarted current_thread runtime. |
There was a problem hiding this comment.
🔵 Low — L-0097 cites #478, but no journal entry anywhere in .claude/knowledge/journal mentions #478. The journal directory has 2026-11-18 and 2026-11-20 but no 2026-11-19 file. Restore the missing 2026-11-19 journal entry, or remove L-0097 until its source is committed.
🔀 Found by Claude Opus 5.5 · confirmed by the judge
53d0792 to
c3c284a
Compare
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 Low
Mostly fine: one medium provenance issue. The lesson edits are well-formed and fit the byte budget, but several new lessons cite a 2026-11-20 journal that isn't in the branch after the rebuild.
| - L-0062 (1×, #431): A non-consuming peek buffers errors as well as data for the next read. Test one-shot-error-then-EOF; optional enrichment must not silently turn server success into execution failure. | ||
| - L-0063 (1×, #451): Cached terminal ExecuteResponse payloads must be complete and take-once. Clear on error, close, Drop, owner release, timeout and fresh status polls; document how terminal observations retain inline results. | ||
| - L-0101 (2×, #434 #435): Break owner/child Arc cycles: a child that calls back into its owner stores a Weak, upgrades only at point of use, and a test drops/closes the owner and asserts Weak::upgrade is None. | ||
| - L-0102 (1×, #477): Never log while holding a lock a GIL-holding caller may wait on (pyo3_log can take the GIL). On GIL-held paths, try-lock and return Pending on contention instead of blocking. |
There was a problem hiding this comment.
🔵 Low — L-0102 and L-0103 cite #477, and L-0101's 2× count cites #435. A grep of .claude/knowledge finds neither PR in any journal or log file, and the only new journal is 2026-11-23.md (#434 and #494). Restore the 2026-11-20 journal, or drop or recount these lessons so each traces to a journal entry.
🔀 Found by Claude Opus 5.5 · confirmed by the judge
c3c284a to
66ff149
Compare
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 Low
Looks good, with 1 low concern. This is a docs-only distill: the new journal entries and lessons match each other, and the file stays under its byte cap. One update quietly drops guidance from an existing lesson.
| - L-0090 (1×, #288): Compare floating-point values with guards/if, not literal match patterns that trigger the illegal_floating_point_literal_pattern lint under -D warnings. | ||
| - L-0091 (1×, #333): Avoid PowerShell automatic-variable names such as $host, $profile and $error for locals; use distinct task-specific names. | ||
| - L-0092 (2×, #333 #429): Keep required checks always present. Compute path changes from BASE...HEAD with full history and include standalone workspaces plus their root path dependencies. | ||
| - L-0092 (3×, #497 #429 #333): Keep required checks always present. Compute path changes from BASE...HEAD with full history; trusted/fork if: matrix variants need identical per-version check names, or require an always-run aggregate check. |
There was a problem hiding this comment.
🔵 Low — The L-0092 rewrite drops the earlier guidance to include standalone workspaces and their root path dependencies when computing path changes. A grep of .claude/knowledge finds no other lesson that covers it. Restore the clause, or record the removal with a reason.
(Anchored to the nearest changed line — see the description for the exact location.)
🔀 Found by Claude Opus 5.5 · confirmed by the judge
66ff149 to
cd22c93
Compare
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 Medium
The PR changes only the docs and is mostly fine, with 1 medium concern: some new lessons can't be traced to any journal entry. PR-reference ordering is inconsistent (L-0092 now lists #497 #429 #333, while other lessons list PRs in ascending order) — a nit.
This overview is Claude Opus 5.5's initial take; some of its points were set aside by the cross-check judge — see the findings below.
🔀 1 finding considered and dismissed by the judge
- 🔵 Low
.claude/knowledge/lessons.md:122— L-0113 and L-0114 repeat the 2026-11-25 journal rules almost word for word, and L-0113 overlaps with L-0110's 'files the job checks' path-filter clause. Fold th
Judge's evidence:- L-0113 (1×, #502): Per-crate LICENSE/NOTICE copies need a CI cmp against the root files and a cargo package --list ass…
| - L-0092 (3×, #497 #429 #333): Keep required checks always present. Compute path changes from BASE...HEAD with full history, include standalone workspaces/root path deps; trusted/fork matrix splits need identical per-version names or a required aggregate. | ||
| - L-0093 (1×, #429): repository_dispatch 204 only acknowledges delivery. Sender-owned checks need cancellation/failure completion and stale-check expiry; list check runs with filter: all. | ||
| - L-0094 (2×, #411 #412 #473): Regenerate dependency pins on the normal toolchain with a healthy registry. Inspect every lockfile for unrelated downgrades/checksum drift and validate locked builds. | ||
| - L-0109 (1×, #497): Keep workflow permissions at contents: read; grant id-token: write only to a separate job that consumes generated artifacts, runs no contributor code, and is gated to push/same-repo events. |
There was a problem hiding this comment.
🟡 Medium — L-0109–L-0112 and the L-0092 update cite #492/#495/#496/#497 and claim to distill 2026-11-24, but no 2026-11-24 journal exists in the tree. These lessons can't be traced to any journal entry, possibly because the conflict rebuild dropped them. Restore .claude/knowledge/journal/2026-11-24.md, or drop the lessons that have no source.
🔀 Found by Claude Opus 5.5 · the judge couldn't confirm it
Signed-off-by: peco-engineer-bot[bot] <peco-engineer-bot[bot]@users.noreply.github.com>
cd22c93 to
8101167
Compare
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 Low
Mostly fine — 1 medium, 1 low. L-0116 has no source journal file in the tree (2026-11-25.md is missing), and the L-0068 merge dropped its empty-result schema test guidance.
This overview is Claude Opus 5.5's initial take; some of its points were set aside by the cross-check judge — see the findings below.
🔀 1 finding considered and dismissed by the judge
- 🟡 Medium
.claude/knowledge/lessons.md:113— L-0116 (#502, NOTICE/LICENSE) has no journal entry behind it. The PR says it distilled 2026-11-25, but that journal file isn't in the tree; it looks like it was
Judge's evidence:<!-- distilled-through: 2026-11-26 -->
| - L-0066 (1×, #355): Translate JDBC patterns separately from SQL literal escaping; translate wildcards first and escape exactly once where the result enters SQL. | ||
| - L-0067 (3×, #355 #364): Normalize native metadata values per operation/schema, not bare column names or position alone. Native GetColumns ordinals need +1; SHOW fallback is already one-based. | ||
| - L-0068 (2×, #369 #381): In metadata fallback reshapes, preserve optional server columns when present and tolerate missing/uncastable ones as null; test native, fallback and empty-result schemas. | ||
| - L-0068 (3×, #506 #381 #369): Apply metadata normalization/filter changes and tests to both native (thrift-native-metadata) and SHOW fallback paths; preserve optional server columns, tolerate missing ones as null, and default nulls before rebuilding non-nullable public schemas. |
There was a problem hiding this comment.
🔵 Low — The merged L-0068 dropped the earlier instruction to test empty-result schemas, and the new 11-26 journal entry doesn't cover it. Add 'and empty-result schemas' back to the test requirement.
🔀 Found by Claude Opus 5.5 · confirmed by the judge
Daily learning update (distill)
The journal is one new file per run and is never edited. The lessons file is the distilled state, ordered by ID. The only paths this PR changes are one new journal file and the lessons file.
Latest update 2026-11-26. Branch: rebuilt from the default branch after a lessons.md conflict; the PR's new journal files carried over (1).
Removed lessons (review each reason)
Journal entries dropped by the per-file cap