Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
/evidence/_template/** text eol=lf

/src/inferrsi/knowledge/atoms/casebooks/* -text
/src/inferrsi/knowledge/atoms/workflows/** -text
# Two released Markdown guides use trailing spaces for hard line breaks.
/src/inferrsi/knowledge/atoms/workflows/cite-check-downstream-pr.md whitespace=-blank-at-eol
/src/inferrsi/knowledge/atoms/workflows/competitor-scan.md whitespace=-blank-at-eol

# Retain this upstream license's original CRLF Git blob bytes.
/src/inferrsi/knowledge/data/skill_library/systems/frameworks/torch-npu/torch-npu/references/licenses/op-plugin-LICENSE.txt -text
Expand Down
102 changes: 102 additions & 0 deletions src/inferrsi/knowledge/atoms/cite-check-downstream-pr.original.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"authority": "checkout",
"metadata": {
"id": "cite-check-downstream-pr.original",
"kind": "knowledge",
"entrypoint": "guide.md",
"title": "Review a downstream PR description for correct acceptance issue links, SHA pins, and artifact citations.",
"origin": [
"first-party"
],
"sources": [
{
"type": "git",
"repo": "https://github.com/InferMatrixLab/InferRSI",
"commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf",
"path": "src/inferrsi/knowledge/data/skill_library/workflows/governance/cite-check-downstream-pr/SKILL.md",
"sha256": "68ff74b48de1607297aa35e2e8b2eaea12674d938f8c8167b93e55b1044ba858"
},
{
"type": "unknown",
"note": "Legacy provenance remains in procedure/readsets"
}
],
"applicability": {
"scope": "Review of a downstream PR description that cites RSI acceptance work for a performance or quality improvement",
"prerequisites": "The PR description, the acceptance issue it cites, and the evidence paths it names; reviewing is read-only and needs no local run",
"input_contract": "One PR description plus the cited acceptance issue and its evidence tree; the reviewer reads claims and citations, not the candidate code",
"produced_artifact": "A per-checklist review result that either accepts the citation or marks the summary unverified, using only PASS/FAIL/INCONCLUSIVE vocabulary",
"failure_modes": [
"No acceptance issue URL, only a chat thread",
"Branch names instead of full baseline and candidate SHAs",
"Microbenchmark evidence offered for an end-to-end latency claim",
"A threshold restated or invented relative to the acceptance issue",
"Evidence path absent, stale or on a different SHA than the cited candidate"
],
"refusal_point": "Refuses to restate a performance or quality claim whose artifacts are missing, stale or off-SHA; reports the summary as unverified instead"
},
"state": "candidate",
"limitations": [
"Checklist-only procedure; it validates citation discipline, not the measurement behind an artifact.",
"A passing review does not establish that the campaign evidence itself is correct.",
"Checkout-only local skill; no automatic execution or promotion.",
"Only declared references are required; other cross-skill links are navigation.",
"Historical revisions require a matching checkout or a retained store."
],
"attribution": [],
"empirical_validation": "not_run",
"atom": {
"when": {},
"license": "Apache-2.0",
"permissions": {
"read": true,
"retain": true,
"redistribute": true
},
"layer": "L3",
"source_span": {
"source_index": 0,
"path": "src/inferrsi/knowledge/data/skill_library/workflows/governance/cite-check-downstream-pr/SKILL.md",
"byte_range": [
0,
3534
],
"sha256": "68ff74b48de1607297aa35e2e8b2eaea12674d938f8c8167b93e55b1044ba858"
}
}
},
"content": {
"guide.md": {
"path": "workflows/cite-check-downstream-pr.md"
}
},
"parts": {
"navigation": {
"skill_section": "navigation",
"layer": "L0",
"byte_range": [
0,
153
],
"sha256": "92227c444266d55b1db7bceebc95147cbf7c33276e28defe1f084713697f4a3e"
},
"decision": {
"skill_section": "decision",
"layer": "L1",
"byte_range": [
0,
2598
],
"sha256": "834c46f93a46f3e14ef7ce621237bd50f67ac399408cfa8cacb80de2b2911229"
},
"procedure": {
"skill_section": "procedure",
"layer": "L2",
"byte_range": [
2598,
3534
],
"sha256": "e6f746627c70affd045c6354a24fd704c64a50d6e7d2502ecc753bb77c09b8f3"
}
}
}
101 changes: 101 additions & 0 deletions src/inferrsi/knowledge/atoms/claim-contract.original.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"authority": "checkout",
"metadata": {
"id": "claim-contract.original",
"kind": "knowledge",
"entrypoint": "guide.md",
"title": "Enforce ThinkFlowLab claim contract wording and verdict rules without embedding campaign-specific revision pins.",
"origin": [
"first-party"
],
"sources": [
{
"type": "git",
"repo": "https://github.com/InferMatrixLab/InferRSI",
"commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf",
"path": "src/inferrsi/knowledge/data/skill_library/workflows/governance/claim-contract/SKILL.md",
"sha256": "49cf787427e7842fc0b8cbc1e58091fc4b77a5a48c0cb8fb7aaecd91f8715670"
},
{
"type": "unknown",
"note": "Legacy provenance remains in procedure/readsets"
}
],
"applicability": {
"scope": "Wording and verdict rules for any public performance or quality claim produced from an RSI campaign",
"prerequisites": "A completed campaign with pinned baseline and candidate SHAs and an evidence tree; the rules themselves carry no numeric threshold",
"input_contract": "A claim draft, the campaign RunSpec and its evidence tree under evidence/<campaign-id>/",
"produced_artifact": "A claim sentence in the pinned form, or a refusal when the campaign verdict is not PASS",
"failure_modes": [
"Claim asserted before the campaign reaches PASS with artifacts",
"Baseline or candidate SHA written into a shared template, skill or default CI environment",
"Microbenchmark result presented as end-to-end completion",
"A lesson transferred across an unverified repo x revision x backend x device x model x scenario tuple"
],
"refusal_point": "Refuses any public claim lacking a PASS verdict and artifacts under evidence/, and refuses numeric thresholds because thresholds belong to the campaign"
},
"state": "candidate",
"limitations": [
"States wording and verdict rules only; it selects no numeric gate and validates no measurement.",
"SIAS plane boundaries constrain where a change belongs, not whether it is correct.",
"Checkout-only local skill; no automatic execution or promotion.",
"Only declared references are required; other cross-skill links are navigation.",
"Historical revisions require a matching checkout or a retained store."
],
"attribution": [],
"empirical_validation": "not_run",
"atom": {
"when": {},
"license": "Apache-2.0",
"permissions": {
"read": true,
"retain": true,
"redistribute": true
},
"layer": "L3",
"source_span": {
"source_index": 0,
"path": "src/inferrsi/knowledge/data/skill_library/workflows/governance/claim-contract/SKILL.md",
"byte_range": [
0,
3223
],
"sha256": "49cf787427e7842fc0b8cbc1e58091fc4b77a5a48c0cb8fb7aaecd91f8715670"
}
}
},
"content": {
"guide.md": {
"path": "workflows/claim-contract.md"
}
},
"parts": {
"navigation": {
"skill_section": "navigation",
"layer": "L0",
"byte_range": [
0,
151
],
"sha256": "46d88fe6273f99a0c272b9e2df6436942163e07f7539d6b0f7a269518605945b"
},
"decision": {
"skill_section": "decision",
"layer": "L1",
"byte_range": [
0,
2303
],
"sha256": "0a376a7e4fe49222414fba569d765ff35086458b8923cc061e0b2e0f81ff8cd6"
},
"procedure": {
"skill_section": "procedure",
"layer": "L2",
"byte_range": [
2303,
3223
],
"sha256": "08294685bbd35070b0a9f1f69c596d347a78591d35a4ff0ef01a6fe9a4b9ce8b"
}
}
}
100 changes: 100 additions & 0 deletions src/inferrsi/knowledge/atoms/competitor-scan.original.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"authority": "checkout",
"metadata": {
"id": "competitor-scan.original",
"kind": "knowledge",
"entrypoint": "guide.md",
"title": "Structure a lightweight competitive scan without inventing benchmark numbers or campaign verdicts.",
"origin": [
"first-party"
],
"sources": [
{
"type": "git",
"repo": "https://github.com/InferMatrixLab/InferRSI",
"commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf",
"path": "src/inferrsi/knowledge/data/skill_library/workflows/research/competitor-scan/SKILL.md",
"sha256": "7f2613a1fc8e9fc58c3058c4946b85e8d7d49359143d650f711b88b448307ab6"
},
{
"type": "unknown",
"note": "Legacy provenance remains in procedure/readsets"
}
],
"applicability": {
"scope": "Qualitative positioning of a new RSI repository against other projects before acceptance evidence exists",
"prerequisites": "A selected repository and readable public material from the alternatives; no benchmark run is required",
"input_contract": "A target repository plus whatever the alternatives publish about what they optimize and how they prove it",
"produced_artifact": "A short Markdown note covering problem, alternatives, differentiation, limits and open questions",
"failure_modes": [
"Numeric comparison written without a PASS campaign in our own evidence tree",
"Third-party figure repeated as if reproduced under our RunSpec",
"Scan presented as a substitute for acceptance evidence"
],
"refusal_point": "Refuses any numeric comparison not sourced from our own evidence/<campaign-id>/results/ with a PASS verdict"
},
"state": "candidate",
"limitations": [
"Produces positioning material only; it establishes no performance or quality result.",
"Third-party claim contracts are read from public material and may be incomplete.",
"Checkout-only local skill; no automatic execution or promotion.",
"Only declared references are required; other cross-skill links are navigation.",
"Historical revisions require a matching checkout or a retained store."
],
"attribution": [],
"empirical_validation": "not_run",
"atom": {
"when": {},
"license": "Apache-2.0",
"permissions": {
"read": true,
"retain": true,
"redistribute": true
},
"layer": "L3",
"source_span": {
"source_index": 0,
"path": "src/inferrsi/knowledge/data/skill_library/workflows/research/competitor-scan/SKILL.md",
"byte_range": [
0,
3266
],
"sha256": "7f2613a1fc8e9fc58c3058c4946b85e8d7d49359143d650f711b88b448307ab6"
}
}
},
"content": {
"guide.md": {
"path": "workflows/competitor-scan.md"
}
},
"parts": {
"navigation": {
"skill_section": "navigation",
"layer": "L0",
"byte_range": [
0,
138
],
"sha256": "0e002b5ac5a3f80312a3bd5a3884600f6be83db9eb528b1899c7a1173447a7f9"
},
"decision": {
"skill_section": "decision",
"layer": "L1",
"byte_range": [
0,
2320
],
"sha256": "3d514c6b2cac513aeb11c2e0f46c9e712f60737a9d38d3150632088e587f9f31"
},
"procedure": {
"skill_section": "procedure",
"layer": "L2",
"byte_range": [
2320,
3266
],
"sha256": "593dbe70486408b72174714dc58429e7898bff74df164028081dd3a67381b05b"
}
}
}
72 changes: 72 additions & 0 deletions src/inferrsi/knowledge/atoms/workflows/cite-check-downstream-pr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
name: cite-check-downstream-pr
description: Review a downstream PR description for correct acceptance issue links, SHA pins, and artifact citations.
metadata:
inferrsi: |
{
"schema_version": 1,
"profile": "local-skill-v1",
"kind": "skill",
"status": "candidate",
"origin": [
"first-party"
],
"consumption_mode": "packaged",
"tags": [
"review",
"downstream",
"citation",
"evidence",
"verdict"
],
"empirical_validation": "not_run",
"applicability": {
"scope": "Review of a downstream PR description that cites RSI acceptance work for a performance or quality improvement",
"prerequisites": "The PR description, the acceptance issue it cites, and the evidence paths it names; reviewing is read-only and needs no local run",
"input_contract": "One PR description plus the cited acceptance issue and its evidence tree; the reviewer reads claims and citations, not the candidate code",
"produced_artifact": "A per-checklist review result that either accepts the citation or marks the summary unverified, using only PASS/FAIL/INCONCLUSIVE vocabulary",
"failure_modes": [
"No acceptance issue URL, only a chat thread",
"Branch names instead of full baseline and candidate SHAs",
"Microbenchmark evidence offered for an end-to-end latency claim",
"A threshold restated or invented relative to the acceptance issue",
"Evidence path absent, stale or on a different SHA than the cited candidate"
],
"refusal_point": "Refuses to restate a performance or quality claim whose artifacts are missing, stale or off-SHA; reports the summary as unverified instead"
},
"recommendations": [
"Read the cited acceptance issue before the PR description so an invented threshold is visible immediately.",
"Resolve every listed evidence path and compare its SHA with the candidate SHA the PR names.",
"Report an unverifiable claim as unverified rather than repeating its number."
],
"limitations": [
"Checklist-only procedure; it validates citation discipline, not the measurement behind an artifact.",
"A passing review does not establish that the campaign evidence itself is correct."
],
"provenance_readsets": [],
"searchspace_not_applicable": "SKILL.md §§ Checklist and Red flags check acceptance links, revision/artifact citations and claim wording; they provide no hardware-resource mechanism."
}
---

# Cite-check a downstream PR

Use when reviewing external PRs that claim performance or quality improvements tied to RSI acceptance work.

## Checklist

- [ ] Links an acceptance issue URL (not only a chat thread)
- [ ] States **baseline SHA** and **candidate SHA** matching that issue
- [ ] Points to `evidence/<campaign-id>/results/` (or equivalent published mirror)
- [ ] Does **not** invent new thresholds or restate bars differently
- [ ] Marks summaries **unverified** if artifacts are missing, stale, or off-SHA
- [ ] Uses verdict vocabulary only: `PASS` / `FAIL` / `INCONCLUSIVE`

## Red flags

- “X% faster” without artifact path
- Branch names instead of full SHAs
- Microbench-only support for e2e latency claims

## Reference

[docs/contributing.md#evidence-and-claims](https://github.com/InferMatrixLab/InferRSI/blob/b2f60f913a949f9073686a23476f752e11d709a4/docs/contributing.md#evidence-and-claims)
Loading
Loading