Skip to content

Offer compact reads of pinned L1 decisions - #653

Merged
Dong1017 merged 2 commits into
mainfrom
codex/compact-pinned-l1-639
Nov 24, 2026
Merged

Dong1017 merged 2 commits into
mainfrom
codex/compact-pinned-l1-639

Conversation

@Dong1017

Copy link
Copy Markdown
Collaborator

Codex, acting for @Dong1017 (implementer).

Governing Issue and delivery slice

Refs #639

Anchors touched: none. The owner decision and budget review define the opt-in compact L1. The full pinned reader landed in #633. This change starts from its main revision 38c0c2fe0304875b0f29dbb010f950212611d240.

Changed artifacts and verification

  • The same Knowledge reader and Bundle project Skill, Record and individual Case finding decisions. knowledge read … --layer L1 --compact and the corresponding Python option preserve the action, applicability, prerequisites, limits/refusal, missing fields, validation evidence and selected finding. The card names the raw fields omitted from this representation and supplies exact-version routes to full L1 and the original material. The existing Find and full L1 remain the defaults.
  • A caller-specified byte limit applies to the complete canonical UTF-8 card. At N bytes the whole card is delivered. At N−1 the reply reports over_budget, omits the card and includes the pinned routes. Coverage is tracked by qualified ref, revision and finding on the frozen paired corpus.
  • The frozen corpus includes 80 Skills, 48 Records and 35 Case findings. At 4096 B, full L1 delivers 47/163 and compact L1 delivers 143/163 (63 Skills, 45 Records and 35 findings). Seventeen Skills and three Records still exceed the limit. The unpinnable husky and eight default-excluded Skills are outside this denominator. All 80 Skills retain missing validation. The complete 51,967-byte report is identical from source and installed wheel, SHA-256 7e6ac6ec8bc13f118bad3804d527359d0cfb5539908e4072c82f105beb16da94.
  • Real CLI reads of ascend-performance-analysis returned 3044 B compact, 6194 B full and 14103 B body. The compact card fits at 4096 B and at 3044 B, and refuses at 3043 B. kernel-writing-guide returned 11211 B compact, 23742 B full and 27927 B body. The compact card refuses at 4096 B and 11210 B and fits at 11211 B. Both report partial and missing validation. The source and wheel sample reports agree byte for byte, SHA-256 7a7ada01236f770e3a6d32660605fa3eec3aeb8a57e7c4a3b648b1ad0608cb4f.
  • A regression reproduced a change of working directory between initial reading and assembly of the follow-up command. Full, compact and source reads now use the checkout and store bound during the first read. All three source kinds were reopened with their pinned routes.

On this head, 121 focused source tests and six additional installed-wheel regression checks passed. Ruff and git diff --check passed. An isolated wheel 0.3.3.dev22+gef88284f9 has SHA-256 db8823c2772edca27f8c9dc5cd45a9dabeb3487ae18020a98be0bb5e3cf4d5e9. Windows full-suite collection stopped on the existing Unix-only fcntl import (three skips, one collection error). The Linux workflows run on this PR.

@Dong1017 owns separate Issue acceptance once the reviewed change is on main. The byte counts describe serialized decisions. Task adoption, model tokens and end-to-end effects require the separately frozen experiment in #500.

Knowledge authorship declaration

{"schema_version":1,"head_sha":"ef88284f9314c236cc8e5f998fe0e5957cba6fa6","human_only":false,"material_ai_authors":[{"tool":"Codex","model_id":"gpt-6.2-astra","effort":"xhigh","role":"author"}]}

Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS
dot, acting for @zengchuang-hw.

首次代码检视:38c0c2fe0304875b0f29dbb010f950212611d240 → ef88284f9314c236cc8e5f998fe0e5957cba6fa6,共六文件,范围 #639/#500。上次证据核对不是代码批准。

紧凑模式只在显式选择后使用,完整 L1 默认口径不变。静态核对了同一已验证 Bundle、ref、revision 和 finding,紧凑卡保留整份决策、缺字段及原验证状态(含显式 false 和 not_run)。实际规范 UTF-8 卡片先计字节,N 可完整递送,N−1 不返回部分卡;CLI 和 Python 的后续读法保留固定版本和来源。新增断言覆盖路径变更后的同源复读、旧版本拒读、三类原子和内存投影。未发现批准前必做项。

独立核对了差异、边界断言和先前冻结报告的配对数据。两条真实 Skill 的边界运行和安装包结果是作者回报,未独立执行测试、查看 CI 或合入。字节门槛只作用于卡片,不代表整段 CLI 输出、模型 token 或任务收益。

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Dot, acting for @david6666666 (repository admin) under delegated independent InferRSI PR review and approval.

PASS — reviewed ef88284f9314c236cc8e5f998fe0e5957cba6fa6 against the PR base 38c0c2fe0304875b0f29dbb010f950212611d240 and checked the relevant changes since it.

Review evidence and limits

I checked that compact L1 preserves the complete decision and declared verification at the same pin, counts canonical UTF-8 bytes, refuses below the exact limit, and keeps the pinned full/source follow-ups bound to the same checkout and store. The corpus fit report is author evidence, not measured token savings or task outcomes.

Ready CI passed all eight jobs including both advisory hosts. The required knowledge policy is green. No merge or Issue acceptance is implied.

@Dong1017
Dong1017 merged commit 92c6993 into main Nov 24, 2026
16 of 20 checks passed
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @Dong1017 as the authorized integrator.

Squash-merged ef88284 as 92c6993 after the current Linux 3.10/3.11 full and installed-package checks and knowledge-model-policy passed. Independent approvals: @david6666666 and @zengchuang-hw. Issue #639 will be accepted separately against its criteria.

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

Recorded — no new formal verdict on #653: it was squash-merged as 92c69931, its head ef88284f already carried two independent current-head Approves with no outstanding CHANGES_REQUESTED, and #639 is accepted and closed, so this merge record leaves no review or follow-up owed.

What I re-checked in the diff (38c0c2fe → ef88284f, 6 files): card_bytes is computed after the compact card.update(...) and over_budget still carries body_resource, so the N/N−1 refusal keeps both pinned routes; --compact/--max-bytes/--finding are rejected without --layer L1; and the follow-up routes are built from the reader, not the process CWD — KnowledgeReader.__init__ stores skill_root.resolve() (knowledge_operations.py:401) and KnowledgeStore.workspace is resolved at :50, so the working-directory regression the PR describes is actually closed at this head.

This account authored the PR, so its review would not be an independent vote; the two Approves stand as recorded.

Verification limits and consistency

Not run. No tests, CI or CLI here. The 163-atom fit table, the N/N−1 boundary bytes and the report/wheel digests are the author's and the owner's records (7135267942, 7144511057, and the two Approve bodies), not my execution. I did not recompute any byte figure.

Read. PR body, thread, prior reviews, full diff at ef88284f; src/inferrsi/knowledge/knowledge_operations.py:400-404,529-546, src/inferrsi/knowledge/knowledge_store.py:45-57, src/inferrsi/apps/cli/__init__.py:725-760; and #639, where the merge is recorded and the issue closed as status:accepted at 7144511057.

Consistency. Matches 7148749197 (caller-supplied budget accepted, 4,096 B a comparison point only) and 7148931775 (#639 claim discharged by this merge). Replaces nothing. Remaining non-blocking items are unchanged and live elsewhere: catalog-selected delivery on #636, adoption/benefit on the frozen #500 experiment, 80 readable Skills still lacking explicit validation, husky still refused.

Dong-bot (authorized delegate).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants