Norms for coding a narrative¶
Stage: code. Done by: coder.
The people at the events supply the detail; coding organises it into common patterns, abstract rather than concrete, finding what is the same under different names and what only looked the same, and nothing below asks for more detail, fields or links than a page needs.
A rule is what the tool checks. A breach is reported by scat check with a rule id (SCAT-...) and either blocks
(an error) or does not (a warning). The rule catalogue (contracts/rule-catalogue.md) holds every rule. A norm is
guidance for coding well, the same for a person as for an assistant; the tool does not enforce it. Each section below
opens by saying which it is.
A narrative that links a node page¶
A rule and a norm. The rule: a narrative links at least one node page anywhere in its body; one that links none is
left out of the graph and every view (the messages say "excluded"), and scat check reports it as a
warning (SCAT-UNCODED). The warning never blocks, and the narrative is included as soon as it links a node page.
The norm: a coherent account of what was told, plus the nodes and edges it names. That set need not be connected. Its worth shows in recurrence across narratives, which you read in the layered view.
Links in the account¶
A norm, resting on one rule. You may link a node wherever the account names it, and you should when the name
matters to the story. A link adds no edge; only a row of the Edges told table does. The nodes the account links are a
subset of the nodes the table holds: a link in the account to a node no row ends at is reported (SCAT-LINK-NOTINTABLE, a
warning at stub and draft and an error at done), so a node is declared by a row, not by a link.
A row end need not be linked in the account.
Descriptions¶
A rule and a norm. The rule: description is silent at stub, a warning at draft and an error at done
(SCAT-FIELD). The error is intended, like a required commit message: it makes you say what the
page is in a sentence before you sign it off.
The norm: keep it brief and do not repeat the account. It says what the page is for, not what happened in it.
What a node page holds¶
A norm. A node page (a stakeholder, concern, affordance or technology) holds four parts, written across the narratives that link it. Never paste one account into it.
- What it is, in the node's own terms: what the stakeholder, concern, affordance or technology is, as the people in the narratives mean it.
- How the narratives tell it. Cite each claim by a link to the narrative that makes it, and say when several narratives agree. A node that appears in one narrative only says so.
- Where accounts differ. Keep the differences and do not merge them. A stakeholder page that spans several senses (a cap forces broad stakeholders) says so and names the senses.
- What is thin: what no narrative says.
What "what it is" means depends on the type:
- A stakeholder: who they are as the narratives tell them, and what they hold.
- A concern: what is at stake and who holds it, and what addresses it.
- An affordance: what it offers, and which technologies provide it.
- A technology: what it is as the narratives tell it, and which affordances rest on it.
scat evidence <node> shows every narrative that links the node, with the paragraph around each link. scat recurrence shows how many narratives and stakeholders reach each node.
Writing together¶
A norm. Either of you may draft the account and the description, in any number of rounds. Whoever drafts, your move to done is your confirmation of what the page says.
The coder owns interpretation: that the account matches the field notes and the coding is right. The tool owns conformance: it checks structure only, so a passing check does not say a narrative is correct. The assistant helps and decides nothing; it may not set done (contracts/assistant.md, A7).
Whether a narrative names its contributors is set by the vault's attribution mode (attribution in scat.toml). In
required mode a narrative names its contributors: it links a contributor page in its attributed_to field, which is a
warning to lack before done and an error at done (SCAT-ATTR). In disallowed mode no
narrative names a contributor and the vault holds no contributor page (SCAT-ATTR-DISALLOWED). In optional mode a
narrative may name its contributors or not, and nothing is required.
Status when you leave a page¶
A norm. When you stop working on a page, set its status to say where it stands: done if it is finished, draft
if not. draft marks unfinished work. It is not a step to pass through, and nothing forces you to use it: you may go
from stub to done in one sitting. An unfinished page is never an error for being unfinished: nothing in the done
column of the status table is an error before done.
What done needs¶
A rule. scat set-status <page-name> done judges the page as it would stand at done, and refuses while any error
would stand (SCAT-DONE-REFUSED); it writes nothing then. Warnings do not block. These are the errors to clear:
- Every page:
statusandtitlepresent (SCAT-FM-REQUIRED), and adescription(SCAT-FIELD). A legal, unique file name (SCAT-NAME), single-string text fields (SCAT-FM-SHAPE) and no link to a page that does not exist (SCAT-LINK-DANGLING-BODY) are errors at every status, so they must also be right. - A narrative:
claim_type, if present, isactual,hypotheticalorunclassified(SCAT-FM-CLAIMTYPE), andkind, if present,scenarioorarchitecture(SCAT-FM-KIND). Neither is required at any status. - A narrative's
Edges toldtable, if it has one: each problem the table has atdraftas a warning is an error atdone(SCAT-TABLE-HEADER, SCAT-TABLE-ROW, SCAT-TABLE-TYPE, SCAT-TABLE-LAYERS). Each end of a row must be exactly one link to a node page that exists (SCAT-END-NOLINK, SCAT-END-NOPAGE, SCAT-END-NOTNODE). Each node the account links must be an end of a row (SCAT-LINK-NOTINTABLE); a row end need not be linked in the account.
Not needed at done: a link, an edge or a row. These give warnings only (SCAT-UNCODED, SCAT-NOEDGES).