Skip to content

docs(knowledge): records state behavior and decisions, not project status - #10793

Merged
cixzhang merged 4 commits into
mainfrom
cixzhang/records-no-temporary-status
Nov 10, 2026
Merged

cixzhang merged 4 commits into
mainfrom
cixzhang/records-no-temporary-status

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

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-contracts INV10 (records describe ideal behavior, not pull-request verdicts) and its "Writing specifications and contracts" section. Neither covers build status or work order, and the Compatibility/readiness projection row asks for "implementation state".
  • docs/contributing/spec-writing.md rubric R1–R6, the knowledge record templates, the specification pull request template, and AGENTS.md.
  • Pull requests on the same record: docs(architecture): a record's approval lines are append-only #10688 (INV31, DEC-18) and docs(architecture): a Lab-only pull request needs no owner decision (DEC-19) #10789 (DEC-19), now on main, plus INV33 and DEC-21 on main. This change takes INV32 and DEC-20 so the numbers do not collide; the branch merges main and keeps those entries unchanged.

Decision

architecture:knowledge-contracts INV32 and DEC-20 (decider cixzhang, 2026-11-09, in her words): a record states intended behavior and decisions, not project status.

  • No build status: "the build has not started", "no code yet", "no module exists yet", "not built", "not yet implemented", "follow-up work".
  • No sequencing: "first consumer", "first adopter", "adoption order", "X adopts first", "lands before", "phase 1". An order the system itself follows, such as a deprecation shipping before a removal, is behavior and stays.
  • A requirement gap stays, in the form <FR or INV id> gap: <observable mismatch>. The rule holds in every section, gap and current-state sections included.
  • One status line, such as Status: in progress, may say the record is still in progress.
  • Lifecycle fields a knowledge template requires, such as a system spec's phase or the Released default preserved line, 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.
  • Implementation plans (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, the Compatibility/readiness row (now "requirement gaps" instead of "implementation state"), and AGENTS.md.

Rejected alternatives

  • A check that fails on status phrases: the same words also describe behavior ("focus lands", "while the Action is pending"). spec-writing.md already keeps meaning checks in review; no lint is added here.

Claim scope and non-goals

  • Existing records are not rewritten. Two wording fixes in the same record: the open-pull-request search line now reads "Review enforces the open-pull-request search (INV13): …", and the INV32 enforcement line reads "INV32 has no repository check (DEC-20); review against rubric item R7 enforces it." so it no longer calls the check DEC-20 rejects a gap.
  • No schema or template-shape change; only template guidance text changes, so no record migration (INV6).

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.

  • R1 narration: none in the added text. DEC-20 quotes the decider's words, as decision entries do.
  • R2 research in the record: none; the census stays out of the record.
  • R3 evidence naming a change: none; the INV32 verification row names review against R7.
  • R4 rejected alternatives over one line or outside a decision: one, inside DEC-20, one line.
  • R5 pull request or issue references remaining: none.
  • R6 ruled open questions still listing options: none.
  • R7 project status (build status or work order): one found in this record's own enforcement-gap text ("no checked-in gate yet … Until one exists"), restated without status. The platform-record gap paragraph still says "does not yet" and "until all three land", and the INV29 verification row still says "(not built)"; both are left for a separate fact check. Template-required lifecycle fields (phase, Released default preserved) are the new third allowed form, not findings.

Scope

  • This PR contains specification records only. (It also changes record templates, the spec-writing guide, the specification pull request template, and AGENTS.md, which carry the same rule.)
  • It records observable behavior and preserves equivalent internal implementations.
  • Any named internal mechanism is intentionally public, names its dependent caller/system, and explains why an equivalent implementation would not satisfy the contract.
  • Verification states the evidence layer and failure signal without prescribing CI job/workflow topology.
  • It records one intentional durable decision, not a rescue for a separable tagalong.
  • The canonical knowledge owner, affected current claims, and overlapping open work are named; any ownership collision is resolved or called out for human decision.
  • Adjacent API, visual, accessibility, composition, and implementation facts remain outside scope unless this exact decision depends on them.
  • Public text and artifacts contain no internal Meta context.

Validation

  • pnpm check:knowledge: "Knowledge templates and records are aligned."
  • Prettier over every changed file
  • git diff --check

…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'.
@vercel

vercel Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 9, 2026 11:52pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 9, 2026
@astracat-bot

astracat-bot Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 9, 2026, 11:58 PM UTC

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 9, 2026
@cixzhang

cixzhang commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec cc9123a

@astracat-bot astracat-bot Bot 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.

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 fails pnpm check:knowledge) and the component and module templates offer Released 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]

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 034d4a9

Storybook · Sandbox · built from this PR's head

Package size: no published package changed; no new dependencies.

API changes: none in this pull request

Committed API report behind this build: cli 29 rows, core 36 rows; run pnpm api:report.

Not run on this PR: add ci:run-visual, ci:run-a11y or ci:run-rtl to run them.


Generated by PR Enrichment workflow | View full report

…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.
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 9, 2026
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.
@cixzhang

cixzhang commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec 034d4a9

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 9, 2026

@astracat-bot astracat-bot Bot 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.

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 from main, 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:

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.

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".

@cixzhang
cixzhang marked this pull request as draft November 10, 2026 15:40
@cixzhang
cixzhang marked this pull request as ready for review November 10, 2026 15:40
@cixzhang
cixzhang merged commit e09956b into main Nov 10, 2026
108 of 112 checks passed
@github-actions
github-actions Bot deleted the cixzhang/records-no-temporary-status branch November 11, 2026 06:05

This branch was successfully deployed

1 active deployment
Preview — 034d4a9d Deployed Nov 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant