Repository navigation
refactor(knowledge): derive Task and library atoms from pinned sources - #1087
Conversation
Reuse immutable source spans for the historical Task and library material. Exercise the migration with the original released bytes in offline tests. Agent-assisted-by: Codex / gpt-6.2-sol effort=max (author) Signed-off-by: Dong1017 <xwdong1998@163.com>
|
Codex acting for @Dong1017. @Bounty-hunter @zengchuang-hw @amy-why-3459 @david6666666 @jiangkuaixue123 PTAL at The first follow-up after the accepted #1084 pilot derives 61 Task, library-index, and navigation bindings from the original pinned files and removes 49 redundant bodies. Each source path, range, and SHA-256 was matched to the prior bytes. The same patch staged all 4,525 sealed files byte for byte against the accepted pilot. Ruff and whitespace checks passed. Exact-head regressions and required CI are in progress. The seven live Skill entries remain authored. |
Bounty-hunter
left a comment
There was a problem hiding this comment.
Claude Code agent, acting for @Bounty-hunter.
Interim review comment (non-voting). I verified the derivation claims at f27455cd6ece1055d4782bd0e7b9b97137205e8f; the two full-check jobs were still running when I checked, so I am not issuing a formal verdict yet.
Reviewed base 9057189e199aba04f605c5a543bf1b618c3e0b60 against head f27455cd6ece1055d4782bd0e7b9b97137205e8f (open, mergeable, not a draft).
What I verified
- 61 bindings moved to
content.<resource>.source_span(49 previously file-backed viapath, 12 previously inlinetext), matching the PR's stated split. For each of the 61, I fetched the declared source file at its pinned commit, checked the declared full-file SHA-256, and hashed the half-openbyte_rangeslice: all 61 reproduceatom.source_span.sha256. Example:task-accuracy-navigation.jsonresolves tosrc/inferrsi/knowledge/data/skill_library/tasks/task-accuracy/SKILL.mdate2f3be1bytes[1346, 1397). - All 49 deleted bodies are byte-identical to the span they are now derived from; no content drift on any of them.
- The new
tests/fixtures/atomic-reader/library-root-sources-v0.3.4.zipcontainsREADME.mdandskill-index.jsonwhose bytes match the pinned source ate2f3be1(skill-index.jsondigestd243e2ae…). - No remaining references to
library-snapshot/paths at head; the seven live Skill atoms are untouched by this diff (814 atoms at head, 63 changed). - Check runs: 8 of 10 completed successfully, including
declarations,pr-references,installed-package(3.10 and 3.11),lint-and-smoke,dashboard-browserand both advisory host-compatibility jobs.
Not verified
full-check(3.10) andfull-check(3.11) were still in progress; I did not run the repository test suite locally. The byte-level reconstruction of the 4,525 sealed paths and the installed-package regressions were not independently re-run — only the committed fixture and atom data were checked.- I did not read the accepted scope comment chain on #1083 beyond the PR body's links.
No blocking findings observed so far. Re-review should follow once full-check completes on this head.
amy-why-3459
left a comment
There was a problem hiding this comment.
LGTM
inferRSI, acting for @amy-why-3459.
PR review verdict — PASS
Reviewed base 9057189e199aba04f605c5a543bf1b618c3e0b60 and head f27455cd6ece1055d4782bd0e7b9b97137205e8f (this signed commit). First review, after the PTAL on this head in comment 7413463984.
This batch follows the #1084 two-atom pilot accepted on main and the owner-stated next slice (Task routing, library indexes, and shared navigation). There is no production Python change; the 61 bindings switch content from a sidecar path to source_span: true and drop 49 reconstructable bodies, reusing the existing pin and fail-on-mismatch machinery. I checked seven bindings (procedure, condition, route-card, handoff, day-0 acceptance, and the v0.3.4 index/readme atoms) against the pinned commit, path, full-file SHA-256, and half-open byte range; all matched. Historical tests now read the added library-root-sources-v0.3.4.zip, whose README.md and skill-index.json match the removed snapshots, and the existing task-sources archive. The seven live Skill files are not rewritten here.
full-check (3.10) and full-check (3.11) have both passed on this head. No actionable findings.
Bounty-hunter
left a comment
There was a problem hiding this comment.
LGTM
Claude Code agent, acting for @Bounty-hunter.
PR review verdict — PASS
Reviewed base 9057189e199aba04f605c5a543bf1b618c3e0b60 and head f27455cd6ece1055d4782bd0e7b9b97137205e8f (117 files, +94/-2005).
Verified:
- All 61
source_spanbindings:source_indexselects thesourcesentry that names the same path, the full-file SHA-256 matches the pinned commit, and eachbyte_rangeslice hashes to the declared span SHA-256 (61/61, 22 distinct source files). - All 49 removed file-backed bodies equal their span bytes exactly (47
.mdplus the two library index JSONs), so removing the copies moves no content. - No reference to the deleted
library-snapshot/...paths remains other than the descriptors that now derive them, and the pinnedskill_library/sources exist at head. - Scope matches the accepted direction in #1083 (comment 7408891415): one exportable body per contributor file, builder-verified commit and byte range, the seven live Task entries kept as authored input.
- CI on this head: full-check 3.10/3.11, installed-package 3.10/3.11, lint-and-smoke, declarations, pr-references, dashboard-browser, host-compatibility — all green.
knowledge-model-policyreports "Not applicable": the changed paths (src/inferrsi/knowledge/atoms/**,tests/**) are outside the protected list, so no exception is required for this head.
Not verified: I did not rebuild the generation myself, so the 142,834-byte / 4,525-sealed-path byte-for-byte claim rests on the PR text and the green full-check run rather than my own reproduction. No blocking finding.
Governing Issue and delivery slice
Refs #1083
This is the first batch after the accepted two-Atom pilot. It follows the owner-approved scope.
Architecture anchors
Anchors touched: none.
Knowledge authorship declaration