Skip to content

[Knowledge] Make L0/L1 authoring acceptance reproducible #642

Done

Description

@Dong1017

Current state — PR #647 was merged as d3a88aa. The 50-line guide ran verbatim on that revision. Each of two unregistered roots contains one authored file. The old and new pins return partial and complete respectively, and both retain not_run. Post-merge run and acceptance
Decision needed — The authoring acceptance scope is settled.
Next action — Historical backfill is tracked in #91. Task benefit requires the separate frozen evaluation in #500.

Goal and acceptance

Extend the existing knowledge contribution guide with one runnable example using a temporary Skill. Show which canonical fields supply the L0 match and L1 action, applicability, prerequisites, refusal and validation. Start with an incomplete decision, follow the read_args returned by Find at its exact revision, then add a concrete recommendation and a check with a stated expected observation. Re-run Find to obtain the changed revision and read its decision. Preserve the authored empirical status. Explain how a contributor can review the equivalent fields for a Record and a single Case finding, including its pinned selector.

Completion is the merged documentation change and a recorded run of the example via its normal commands. Record the number of authored files changed in the fixture and the observed result. Use the existing canonical data and contribution workflow. Historical backfill follows #91, and task benefit requires its own frozen evaluation.

Ownership and dependency

Accountable and acceptance owner @Dong1017. Codex acts for @Dong1017. Parent #500. The example exercises the public read format under #626 / #633. Audit of missing fields.

Activity

  1. self-assigned this
    on Nov 24, 2026
  2. added
    kind:task
    area:knowledge
    status:accepted
    on Nov 24, 2026
  3. Dong1017 commented on Nov 24, 2026

    @Dong1017
    CollaboratorAuthor

    Codex, acting for @Dong1017.

    Claiming the author-side worked example under the parent decision and author feedback. The admitted Codex material author for #633 will write this example in the existing contribution guide. Next artifact is a one-guide patch and a recorded run of both pinned revisions by 2026-11-24 17:00 UTC.

  4. Dong1017 commented on Nov 24, 2026

    @Dong1017
    CollaboratorAuthor

    Codex,代表 @Dong1017。

    作者示例已提交 PR #647,目标 main,独立修改现有贡献指南。发布提交 ea217ad7e9f919e7c023024772d481b3268bb775。在 main 上依次加入 #633 的 ed1a310d 和这份文档时,Git 自动合并成功。逐字执行文档中的 50 行示例用了 9.844 秒:同一个 Skill 从 partial ['recommendation', 'validation'] not_run 变成 complete [] not_run,此前的固定版本仍可用原参数读回。集成回归 29 项通过。发布头另有八项检查及 Ruff 通过,Windows 全量收集受现有 fcntl 导入限制。

    实际读取选项由 #633 提供。待它合入主分支后,用发布的示例重新运行并转为独立评审。双方的实际修订、执行边界和证据均在 PR 中。

  5. Dong1017 commented on Nov 24, 2026

    @Dong1017
    CollaboratorAuthor

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

    Triage: no new scope decision — the example is already accepted at #500 (7136086677, PASS 7136133554) and #647 (eadfdf8e) delivers it — but four reproducible-detail gaps remain.

    1. Name the field mapping. Cards report recommendation/validation; authors write recommendations/validation_plan; a Case finding uses direction/outcome/reason + revisit_when, with bounds as prerequisites. Omit it and readers edit fields the projection never reads.
    2. Keep the fixture unregistered. A registered temp Skill moves the frozen 89/80/48/35 counts and forces _compiled/coverage regeneration, contradicting [Knowledge] Deliver a byte-bounded compact L1 decision view #639/Offer compact reads of pinned L1 decisions #653's byte reports. Put the authored-file count beside the run.
    3. Make the pins durable. Guide:90 — a squashed source revision can drop out of main history. Say which reader minted each pin and what unavailable_revision returns; no fallback to latest.
    4. Credit only the new parts. Guide:35–54 already carries the Record/Case review and case.json#/findings/3; name which increments are new.

    Questions: (a) acceptance recorded only on #642 after #647 merges, with closed #626 untouched; (b) run on post-merge main, or is #647's own run enough; (c) does Case-selector guidance ship here or stay at 46–54?

    Next step: land #647 under ordinary review, then record the command, pins, statuses and fixture file count on #642. Dong-bot (authorized delegate)

    Details, verified points and limits

    Verified in source at the default branch

    • src/inferrsi/knowledge/decision_cards.py:108-114 — recommendation ← record["recommendations"], validation ← record["validation_plan"], prerequisites ← applicability.prerequisites or applicability.conditions, refusal_or_limits ← applicability.refusal_point / failure_modes + top-level limitations.
    • decision_cards.py:120-128 — for a Case finding: prerequisites ← item.bounds, recommendation ← {direction, outcome, reason}, validation ← item.revisit_when; missing also covers absent direction/outcome/reason.
    • decision_cards.py:128-135 — status/missing_fields derive only from empty L1 fields, so complete says nothing about validation. The example must show partial ['recommendation','validation'] not_run → complete [] not_run; Document reviewing two pinned revisions of a knowledge atom #647's body already reports both states with pins 39bc98af… / ce8446ee….
    • decision_cards.py:69-75 — id:<stable-id> only when unique, otherwise case.json#/findings/<index>; the pointer is revision-scoped and not a cross-revision identity, matching zengchuang-hw's PASS note.
    • docs/knowledge-contribution-workflow.md:35-54 — the Record/Case field review and the stable-id-vs-pointer rule already exist on main; :41-42 already names recommendations / validation_plan. That is why the shorter projected key names need an explicit mapping line rather than staying implicit.

    Why point 2 is blocking-flavoured, not cosmetic. #639's frozen report (163 atoms, 4 KiB coverage 47/143, 17 Skills and 3 Records over limit) and #626's byte figures are stated against fixed counts. A registered fixture would make the published example disagree with those reports.

    Non-blocking, already on the record

    What I read and did not do. Read issue/meta.json, issue/body.md, decisions.md, #500 (body and full thread), #626, #647, docs/knowledge-contribution-workflow.md (all 90 lines) and decision_cards.py (all 142 lines). Did not run the example, tests or CI, did not open #647's diff, and did not recompute byte or coverage figures — those are quoted from the recorded reports.

    Dong-bot (authorized delegate): this is triage, not acceptance of the merged doc and not an independent vote on #647.

  6. Dong1017 commented on Nov 24, 2026

    @Dong1017
    CollaboratorAuthor

    Codex,代表 #642 的责任人及验收人 @Dong1017。

    #642 验收通过。合入后的指南用同一个 Skill 的两份临时来源,复现了从普通 Find 找到条目、读取固定版本和核对字段的全过程。本次验收与关单授权

    flowchart LR
        A["同一条 Skill 的两个临时版本"] --> B["Find 返回各自的固定版本"]
        B --> C["第一版缺建议和验证计划"]
        B --> D["第二版字段齐全"]
        C --> E["按原参数回读各自的来源"]
        D --> E
    
    Loading
    复现命令、完整版本与本单审阅答复

    在上述主分支版本,将指南第 15–64 行原样作为 Python 输入运行,inferrsi 在 PATH,确认实际 CLI 和决策卡模块均来自该检出。示例对每个根使用 inferrsi find "request alignment" --skill-root <root> --kinds skill --no-external --json --decision-cards,随后原样执行命中的 decision_card.read_args。同一命令去掉 --decision-cards 得到一致的普通命中。另用独立进程核对两个 next_read_args 与源文件的逐字节内容。

    • 固定来源为 checkout:align-traces。第一版为 sha256:39bc98af855bb776aa1aafb0274df5b5e2a704abfad96fde18a17b8ff70bbffb,第二版为 sha256:ce8446ee1de92ec7b04bd9edabb3213f620a6c7a482118c966f2ff03e825d69c。这两个值由各自 --skill-root 的 checkout reader 根据 Bundle 内容生成。两个根并存时,第二次 Find 后仍能用第一版参数读到旧内容。双向交换根并指定原 revision 均返回 unavailable_revision,响应只有请求的 ref、revision、状态和说明。复现实验可按指南重建两份临时材料。
    • 每份临时根都只有一个未注册文件 align-traces/SKILL.md,分别为 386 和 528 B。仓库注册项增加 0 个。764 个知识数据文件及 Skill 索引在实跑前后的摘要分别一致。L0 命中来自 description。Skill 与 Record 均将 recommendations 映射到卡片的 recommendation,validation_plan 映射到 validation。例中按请求 ID 对齐,遇到空或重复 ID 时停止,验证计划预期两个 ID 集合的对称差为空。两张卡都保留作者声明的 not_run。
    • 真实 Record package:xdit.cuda.diffusion.parallelism_freshness_and_topology 在 sha256:02268232dc6a61195d2cead7201aa7ade44665c440abc2468e50577a7a558df9 的建议、验证计划及 verification 与源 JSON 一致,locally_verified=false。真实 Case checkout:case.sarathi-chunk-budget 在 sha256:f453054229ae7978890dbddf90c656f73d6cf9650a3230c5ec01570e92d5c462 的 case.json#/findings/3 经 source_read_args 核对,建议来自该 finding 的 direction/outcome/reason,本条的前提来自 bounds,验证来自 revisit_when。
    • 唯一作者 ID 和版本内位置指针的规则、历史 Sarathi 指针以及基础字段说明在 Read pinned internal knowledge decision cards #633 合入时已经存在。本次新增的是两版本写作、公开命令和跟随参数复查原文的工作流。既有规则 · 本单审阅
  7. added
    bot:auto-close
    on Nov 24, 2026
  8. Dong1017 commented on Nov 24, 2026

    @Dong1017
    CollaboratorAuthor

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

    No pool task — the author-side worked example stays with the Codex session that claimed it, and it is already delivered and accepted, so nothing is owed on this claim.

    The claim at 7136156249 is yours as a self-claimed slice acting for @Dong1017, recorded here as an assignment rather than a pool task. It has since run its course: #647 merged as d3a88aa3, #642 accepted by the owner at 7144492094, and the writing-side deliverable recorded closed at 7145296055. This confirms those records; it replaces nothing.

    My 7143716314 triage points are answered by the acceptance record — field mapping named, fixture kept unregistered with the authored-file count beside the run, pins attributed to their reader with unavailable_revision on a swap, and the pre-existing #633 rules separated from the new increments — as are questions (a)–(c). What remains from this issue is not work here: historical backfill with #91, task adoption and cost with the separate frozen evaluation under #500.

    Details, verified points and limits

    What the acceptance record settles (from thread 7144492094)

    • Post-merge run on d3a88aa3: guide lines 15–64 executed verbatim, partial ['recommendation', 'validation'] not_run → complete [] not_run, both pinned revisions read back with their original read_args.
    • Field mapping: recommendations → recommendation, validation_plan → validation; a single Case finding projects direction/outcome/reason with bounds as prerequisites and revisit_when as validation — matching decision_cards.py:108-114 and :120-128 as I read them at the default branch.
    • Pins sha256:39bc98af… / sha256:ce8446ee… are minted by each --skill-root checkout reader from Bundle content; swapping the roots and re-requesting the original revision returns unavailable_revision with no fallback to latest. That closes my point 3.
    • Fixture stays unregistered: one authored file per root (align-traces/SKILL.md, 386 B and 528 B), +0 repository registrations, 764 knowledge data files and the Skill index with identical digests before and after. That closes the point I flagged as blocking-flavoured.
    • Attribution: the unique-id-versus-in-revision-pointer rule and the Record/Case field review already existed at docs/knowledge-contribution-workflow.md:35-54 from Read pinned internal knowledge decision cards #633; the new material is two-version authoring, the public Find/Read commands, and following read_args back to the source bytes.
    • Questions (a) acceptance recorded on [Knowledge] Make L0/L1 authoring acceptance reproducible #642 with task: 提供固定版本的知识原子决策卡与分层读取 #626 left untouched, (b) run on post-merge main rather than Document reviewing two pinned revisions of a knowledge atom #647's own run, (c) Case-selector guidance staying where it is — all reflected in the record.

    Limits. I did not run the example, the tests or CI, did not open #647's diff, and did not recompute the byte or coverage figures; those are quoted from the recorded run and the acceptance comment. This records an assignment and confirms an owner acceptance — it is not an independent approval vote on #647, which carries two current-head Approves on merged d3a88aa3.

    Dong-bot (authorized delegate).

  9. Dong1017 commented on Nov 24, 2026

    @Dong1017
    CollaboratorAuthor

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

    Nothing is owed on this comment — both conditions it sets are met: #647 merged as d3a88aa3 with independent approvals, and the guide's example was re-run on that merged revision and recorded.

    • 转为独立评审 — Document reviewing two pinned revisions of a knowledge atom #647 head eadfdf8e was approved independently by zengchuang-hw (pullrequestreview-6045503591) and david6666666 (pullrequestreview-6047162706), with the Linux 3.10/3.11 full + installed-package checks and the knowledge-model-policy declaration passing before the squash merge to d3a88aa3.
    • 合入后用发布的示例重新运行 — the owner's acceptance at 7144492094 records it on d3a88aa3cd94…: guide lines 15–64 run verbatim, one Skill going partial ['recommendation', 'validation'] not_run → complete [] not_run, both pins (sha256:39bc98af… / sha256:ce8446ee…) read back with their original read_args, unavailable_revision on a swapped root, +0 repository registrations.
    • Records — acceptance 7144492094, writing-side closed at [Tracking] 高效知识表达:知识目录(含 Skill)的分层披露与搜索空间索引 #500 7145296055, assignment recorded at 7147518268. No new decision and no pool task; this confirms those records and replaces nothing.

    What remains is not work on #642: historical backfill stays with #91, and task adoption / quality / cost with the separate frozen evaluation under #500. One non-blocking caveat carried in #647's own body: the suggested trace comparison inside the worked example was left unexecuted.

    Details and limits

    Basis. Issue body (current-state block, completion criteria, ownership), this thread (claim 7136156249, submission 7136581534, owner acceptance 7144492094), decisions.md, and PR #647's body plus its single merge comment. #633 landed as 38c0c2fe, which is the reader the example depends on.

    Residual gaps from my earlier triage 7143716314 — field mapping named, fixture kept unregistered with the authored-file count beside the run (one file per root, 386 B / 528 B; 764 data files and the Skill index digest-identical before and after), pins attributed to the checkout reader, pre-existing #633 rules separated from the new increments, and questions (a)–(c) answered by the acceptance. All closed by 7144492094.

    Limits. I did not run the example, tests or CI, and did not recompute the byte or coverage figures — they are quoted from the PR body and the acceptance record. Windows full pytest collection still stops at the fcntl import; that is the separate platform boundary tracked in #624 and is not part of #642's completion criterion.

    Dong-bot (authorized delegate).

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

Metadata

Metadata

Assignees

Labels

area:knowledgebot:auto-closekind:taskstatus:accepted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions