Repository navigation
docs(knowledge): records state behavior and decisions, not project status - #10793
Conversation
…atus Add INV32 and DEC-20 to architecture:knowledge-contracts, rubric item R7 to the spec-writing guide, an R7 line to the specification pull request template, and the rule to the knowledge record templates and AGENTS.md. A record keeps requirement gaps in the form '<FR or INV id> gap: <observable mismatch>' and at most one status line such as 'Status: in progress'.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec cc9123a |
There was a problem hiding this comment.
Changes requested: INV32, DEC-20 and rubric item R7 are owner-approved for this head, but the rule conflicts with two template fields this pull request keeps.
- INV32 and R7 tell authors to delete build status, but the system-spec template requires
phase: proposed | accepted | implementing | shipped | withdrawn(docs/templates/knowledge/system-spec.md:11; the schema requires the field, so deleting it failspnpm check:knowledge) and the component and module templates offerReleased default preserved: <yes, no, or not yet released>(docs/templates/knowledge/component-spec.md:48,docs/templates/knowledge/module-spec.md:44), so add an allowed form to INV32 and to R7's "Two forms stay" that says how these lifecycle fields are treated.
Non-blocking:
- The R7 line in the description misses "(not built)" in the INV29 verification row (
docs/architecture/knowledge-contracts.md:1381); listing it as left for later, like the platform-record gap, is enough, and it does not block. - Miss: "Current enforcement gap: no checked-in gate proves the open-pull-request search" (
docs/architecture/knowledge-contracts.md:1411) still states what is not built; for example, "Review enforces the open-pull-request search (INV13): the pull-request summary records the search terms, canonical owner/path, and overlapping open work inspected." - The INV32 gap line (
docs/architecture/knowledge-contracts.md:1424-1425) calls the check DEC-20 rejects a gap; "INV32 has no repository check (DEC-20); review against rubric item R7 enforces it." avoids that.
A new commit needs a fresh /approve-spec for its head.
[Automated review]
PR Analysis Report🔎 Preview ·
|
…V32, R7) Template-required lifecycle fields (a system spec's phase, the Released default preserved line) state the record's own lifecycle and stay. Restate the open-pull-request search and INV32 enforcement lines without gap wording.
Keep main's INV31, INV33, DEC-18, DEC-19 and DEC-21 and their rows unchanged; INV32 and DEC-20 sit between them in number order.
|
/approve-spec 034d4a9 |
There was a problem hiding this comment.
Approved pending CI: the full CI suites are deferred on this head and run before merge.
INV32 and DEC-20 are owner-approved for this head, and rubric item R7, the templates and AGENTS.md carry them to authors. The earlier findings are resolved: template lifecycle fields are an allowed form, the INV29 "(not built)" leftover is reported, and the enforcement line no longer calls the rejected check a gap.
- Non-blocking: the description's R7 line could also list "No CI job runs the script yet" in the INV33 enforcement paragraph of
docs/architecture/knowledge-contracts.md, which came in frommain, beside the other leftovers deferred to a separate fact check.
[Automated review]
| @@ -1458,3 +1499,6 @@ tag-along when its caller supplies those rows. No CI job runs the script yet, | |||
| so review sends an undecided row to an owner. The script reads API rows only: | |||
There was a problem hiding this comment.
Non-blocking: this sentence's "No CI job runs the script yet" (it starts on the line above) is build status under INV32. The description's R7 line does not list it with the other leftovers it defers to a separate fact check. Add it there, or restate the sentence without "yet".
Exact decision needed
Records keep sentences such as "no module exists yet", "Table adopts it first, then Selector", and "phase 1 places the CLI docs". They are true the day they are written and stale soon after, and a later reader cannot tell them from requirements. No current rule says a record must not carry project status.
Existing authority searched
architecture:knowledge-contractsINV10 (records describe ideal behavior, not pull-request verdicts) and its "Writing specifications and contracts" section. Neither covers build status or work order, and theCompatibility/readinessprojection row asks for "implementation state".docs/contributing/spec-writing.mdrubric R1–R6, the knowledge record templates, the specification pull request template, andAGENTS.md.main, plus INV33 and DEC-21 onmain. This change takes INV32 and DEC-20 so the numbers do not collide; the branch mergesmainand keeps those entries unchanged.Decision
architecture:knowledge-contractsINV32 and DEC-20 (decidercixzhang, 2026-11-09, in her words): a record states intended behavior and decisions, not project status.<FR or INV id> gap: <observable mismatch>. The rule holds in every section, gap and current-state sections included.Status: in progress, may say the record is still in progress.phaseor theReleased default preservedline, state the record's own lifecycle, not build progress, and stay. This form lives in INV32 and R7; DEC-20's owner-approved text is unchanged.plan.md) are outside the rule.The rule reaches authors through rubric item R7 in
docs/contributing/spec-writing.md, an R7 line in the specification pull request template, the reminder comment in each knowledge record template, theCompatibility/readinessrow (now "requirement gaps" instead of "implementation state"), andAGENTS.md.Rejected alternatives
spec-writing.mdalready keeps meaning checks in review; no lint is added here.Claim scope and non-goals
Evidence and implementation relationship
A local census of records on main found about 130 clear build-status or sequencing phrases in about 60 records. It is not part of this change; cleanup goes in separate pull requests.
Writing rubric results
Run over
docs/architecture/knowledge-contracts.md, the only record touched.phase,Released default preserved) are the new third allowed form, not findings.Scope
AGENTS.md, which carry the same rule.)Validation
pnpm check:knowledge: "Knowledge templates and records are aligned."git diff --check