Skip to content

Commit ad90f01

Browse files
david6666666claude
andcommitted
knowledge: drop default-valued sidecar fields and keep case digests in records
Skill sidecars no longer store empty sources/references or the shared applicability placeholder; readers already apply those defaults. Case documents link their typed record instead of repeating source digests, and the request metadata digest moves into the record. Contract tests guard both. Agent-assisted-by: Claude Code / claude-opus-5-5 [effort=max] (implementation, tests and documentation) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: David Chen <530634352@qq.com>
1 parent 6b13cf0 commit ad90f01

60 files changed

Lines changed: 60 additions & 212 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎docs/knowledge-base.md‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,16 @@ metadata authority or maintained matrix.
6565
| Legacy sidecars | Existing keys retained unless explicitly normalized | Conflicting duplicate fields fail visibly; matching historical fields can be read |
6666
| Catalog JSON | Existing record owns ID, tier, scope, recommendations, attribution and limitations | Do not migrate it into local sidecars or relabel imported records |
6767
| Engine procedures/resources | Imported English library and source manifest | Preserve licenses, source relationships and installed access; catalog abstracts link the complete English procedures |
68-
| Case | One owner-local case document plus structured identity/source record | Raw evidence stays frozen; case interpretation may evolve without rewriting results |
68+
| Case | One owner-local case document plus structured identity/source record | Raw evidence stays frozen; case interpretation may evolve without rewriting results. Source identities and digests live only in the record; the document links it and cites the same source URLs |
6969

7070
The 43 branch-added candidate headers were normalized without replacing their
7171
procedures. All structured frontmatter fields, including tags, synchronization
7272
lineage, unknown license and source-pack notes, are retained in sidecars. Existing
7373
sidecar name/status duplication agreed with the frontmatter; normalization found
74-
no contradictory values. Abbreviated historical repository pins remain explicitly
74+
no contradictory values. Sidecars omit fields equal to the reader defaults:
75+
empty `sources` and `references`, and the former shared placeholder
76+
`applicability`; absent sources still read as explicit unknown provenance.
77+
Abbreviated historical repository pins remain explicitly
7578
prefixes, not invented full SHAs. Legacy untyped source inventories remain marked
7679
incomplete, with their substantive procedure/readsets retained for inspection.
7780

‎src/inferrsi/data/skill_library/frameworks/diffusers/diffusers-invocation-state/metadata.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,5 @@
4242
"provenance_readsets": [
4343
"references/source-map.md"
4444
],
45-
"references": [],
4645
"consumption_mode": "packaged"
4746
}

‎src/inferrsi/data/skill_library/frameworks/mlx/lazy-evaluation-stream-lifetimes/metadata.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,5 @@
5151
"provenance_readsets": [
5252
"references/source-map.md"
5353
],
54-
"references": [],
5554
"consumption_mode": "packaged"
5655
}

‎src/inferrsi/data/skill_library/frameworks/pytorch/dcp-async-save-performance/metadata.json‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,13 @@
1414
"origin": [
1515
"external"
1616
],
17-
"sources": [],
1817
"empirical_validation": "not_run",
19-
"applicability": {
20-
"scope": "See procedure prerequisites and counter-signals"
21-
},
2218
"limitations": [
2319
"Source-derived candidate; no local efficacy validation.",
2420
"Original typed source inventory is not normalized; retain source identities and limits in the procedure/readsets."
2521
],
2622
"provenance_readsets": [
2723
"references/sources.md"
2824
],
29-
"references": [],
3025
"consumption_mode": "packaged"
3126
}

‎src/inferrsi/data/skill_library/hardware/ascend/ascend-aclgraph-capture-replay/metadata.json‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,12 @@
1313
"origin": [
1414
"external"
1515
],
16-
"sources": [],
17-
"applicability": {
18-
"scope": "See procedure prerequisites and counter-signals"
19-
},
2016
"limitations": [
2117
"Source-derived candidate; no local efficacy validation.",
2218
"Original typed source inventory is not normalized; retain source identities and limits in the procedure/readsets."
2319
],
2420
"provenance_readsets": [
2521
"references/source-notes.md"
2622
],
27-
"references": [],
2823
"consumption_mode": "packaged"
2924
}

‎src/inferrsi/data/skill_library/hardware/ascend/ascend-device-health/metadata.json‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,11 @@
1414
"origin": [
1515
"external"
1616
],
17-
"sources": [],
1817
"empirical_validation": "not_run",
19-
"applicability": {
20-
"scope": "See procedure prerequisites and counter-signals"
21-
},
2218
"limitations": [
2319
"Source-derived candidate; no local efficacy validation.",
2420
"Original typed source inventory is not normalized; retain source identities and limits in the procedure/readsets."
2521
],
2622
"provenance_readsets": [],
27-
"references": [],
2823
"consumption_mode": "packaged"
2924
}

‎src/inferrsi/data/skill_library/hardware/ascend/ascend-distributed-parallel/metadata.json‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
}
3232
],
3333
"empirical_validation": "not_run",
34-
"applicability": {
35-
"scope": "See procedure prerequisites and counter-signals"
36-
},
3734
"limitations": [
3835
"Source-derived candidate; no local efficacy validation.",
3936
"Only the incremental awesome-ascend-skills communication-test slice is normalized; inherited strategy guidance and its source identities remain unchanged.",
@@ -42,6 +39,5 @@
4239
"provenance_readsets": [
4340
"references/awesome-ascend-communication-tests.md"
4441
],
45-
"references": [],
4642
"consumption_mode": "packaged"
4743
}

‎src/inferrsi/data/skill_library/hardware/ascend/ascend-graph-mode/metadata.json‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,11 @@
1313
"origin": [
1414
"external"
1515
],
16-
"sources": [],
1716
"empirical_validation": "not_run",
18-
"applicability": {
19-
"scope": "See procedure prerequisites and counter-signals"
20-
},
2117
"limitations": [
2218
"Source-derived candidate; no local efficacy validation.",
2319
"Original typed source inventory is not normalized; retain source identities and limits in the procedure/readsets."
2420
],
2521
"provenance_readsets": [],
26-
"references": [],
2722
"consumption_mode": "packaged"
2823
}

‎src/inferrsi/data/skill_library/hardware/ascend/ascend-model-adaptation/metadata.json‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,11 @@
1313
"origin": [
1414
"external"
1515
],
16-
"sources": [],
1716
"empirical_validation": "not_run",
18-
"applicability": {
19-
"scope": "See procedure prerequisites and counter-signals"
20-
},
2117
"limitations": [
2218
"Source-derived candidate; no local efficacy validation.",
2319
"Original typed source inventory is not normalized; retain source identities and limits in the procedure/readsets."
2420
],
2521
"provenance_readsets": [],
26-
"references": [],
2722
"consumption_mode": "packaged"
2823
}

‎src/inferrsi/data/skill_library/hardware/ascend/ascend-operator-profiling/metadata.json‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,11 @@
1818
"origin": [
1919
"external"
2020
],
21-
"sources": [],
2221
"empirical_validation": "not_run",
23-
"applicability": {
24-
"scope": "See procedure prerequisites and counter-signals"
25-
},
2622
"limitations": [
2723
"Source-derived candidate; no local efficacy validation.",
2824
"Original typed source inventory is not normalized; retain source identities and limits in the procedure/readsets."
2925
],
3026
"provenance_readsets": [],
31-
"references": [],
3227
"consumption_mode": "packaged"
3328
}

0 commit comments

Comments
 (0)