Skip to content

Validation

Emergent Instruments checks every change to a product against the product logic rules before it stores anything. That covers each proposal an agent stages, each direct update, and each proposal you apply. A change with errors is not stored, and the agent gets the issues back to fix. Warnings do not block a change, but treat each one as a problem to fix or to raise with whoever directs the product.

Each issue has a level, a code, a message, and the path of the record and field it concerns:

error flow.subject library.browse: subject points to missing actor.writr
error edge.trigger write.write-note.too-long edges[0].trigger: must point to a trigger, not rule write.length
warning trigger.unused write.edit-again: No flow entry, step edge, or sequence uses this trigger

A change is done at 0 errors.

To look at one record’s problems before proposing it, an agent can call show_change, which returns the format errors in a record it plans to change.

A record that fails its shape check is not loaded, so everything that links to it reports ref.missing. Work top down:

  1. Shape and fields: record.*, field.*, interface.fields, then record.duplicate, display.duplicate.
  2. Re-run. Many ref.missing errors go away.
  3. Links: ref.*, home.capability, part.mismatch.
  4. Flows, sequences, rules, data: the remaining errors.
  5. Structure warnings: unreachable, unused, and unmapped records, index badges, sizes.
  6. Plain words and one home: move each identifier to its typed field and each fact to its one home. Never delete a detail that matters, or invent one, to silence a warning.

E is an error: the record does not load as intended. W is a warning: it loads, but something should be fixed.

Code Lvl Meaning
record.shape E The record is not one mapping of fields
record.kind E kind missing or unknown
record.id E id missing, malformed, or not starting with its home
field.invalid E Wrong shape or value, or a field on the wrong kind of step
field.unknown E A field the format does not have
record.duplicate E Two records share an id
display.duplicate E A display_id names two records, or equals another id
ref.missing E A reference points at nothing
ref.kind E A reference points at the wrong kind of record
actor.managed_by E An actor names itself in managed_by
home.capability E A flow or sequence names no capability, or a missing one
home.shared W A capability’s rule is used outside it; make it shared
part.mismatch E An overview’s parts and the parts’ part_of disagree
Code Lvl Meaning
flow.subject E subject is not an actor or an entity
flow.empty E A flow has no steps
step.flow E A step and its flow disagree, or an entry’s to or from is wrong
step.kind E A journey step is a state, or a lifecycle step is not
step.unreachable W Nothing reaches the step
edge.trigger E No trigger, or not a trigger record
edge.sequence E outcome not in the sequence, or outcome without sequence
edge.start E Edges running one sequence leave different steps or triggers
step.trigger-title W A step’s title is the name of a trigger on its own edge
edge.both-ways W One trigger moves the subject both ways between two steps
decision.branch W An edge leaving a decision has no guard, label, or outcome
decision.action W A decision step has an edge with a person’s action
step.action W An action step in a journey; make the action an edge
size.flow W More than 12 steps; split into parts
Code Lvl Meaning
sequence.participant E A participant is not listed, or listed twice
sequence.outcome W An outcome no edge maps to a step
sequence.unreached W No edge, sequence, or trigger starts it
size.sequence W More than 16 messages; split into parts
ops.target E A data operation names neither entity nor path
ops.index W A data operation’s index is not on the entity
rule.empty E No logic for its kind
rule.orphan E Nothing applies a decision or policy (no step, edge, sequence message or note, applied rule, applies_to target, or policy sequence)
rule.decision E A decision graph edge names a missing node
table.shape W A decision table row has the wrong number of cells
entity.column E A foreign key or primary_key names a missing column
entity.index W A column badge names no index; I1.1 is reported too (use I1·1)
data.state W A step’s data[].state is not a state of that lifecycle
interface.fields E Surface fields on an operation, or the reverse
interface.unused W Nothing shows or calls the interface
trigger.unused W No entry, edge, or sequence uses the trigger

All warnings.

Code Meaning
text.id Prose names another record by id; say it in words, link it in a typed field
text.code Prose reads as code (a path, a call, a snake_case name); the message names the field it belongs in
text.call A message’s text repeats its call
text.ref-id A graph node’s text repeats an id from its refs
text.history A date, QA round, or ticket id in rationale, notes, summary, sees, or does
text.repeated The same sentence of 60+ characters in three or more records
summary.missing A record that needs a summary has none
summary.long A summary, or the product’s, over 160 characters or more than one sentence
summary.repeats A summary says the same as the name or title
name.long The product’s name detail is over 40 characters
outcome.long The product’s outcome detail is over 300 characters
notes.long notes over 700 characters
sees.branch A sees line describes a condition no edge or decision carries
sees.platform A sees line describes one client and the step sets no platforms
step.empty A screen step has no sees, does, or copy
copy.repeated A step’s copy repeats words its interface holds
term.unused A term’s copy_word appears in no copy
column.restates A column’s rule opens by restating a typed field, like “Not null”
record.large A record is over 12,000 characters

Passing means the graph is well formed, not that the intent is right. It does not check present tense, that a rule is applied where it really matters, that every way out of a step is written, that copy is verbatim, that a capability is an outcome rather than a channel, or that the code matches the records. Those are for the agent that reads the code and the person reviewing; see Principles.