Skip to content

op invariant_pin

Mikhail Deynekin edited this page Nov 29, 2026 · 1 revision

invariant_pin

Pinning an invariant: statement, machine probe and a path:line origin that must exist.

Group Invariants
Edition pro — opens with a Pro licence
Capability invariant-pin — the feature that carries this operation; the matrix is on 15 · Editions and licensing
MCP tool ragraf_invariant_pin
CLI ragraf query invariant_pin

Why it exists

A constraint that lives only in a person's head disappears with the person. A pin makes it a fact: what is asserted, how it is checked, and where the assertion is written.

What it solves

  • Record a constraint with an origin that must exist in the corpus.
  • Refuse a pin whose path:line points nowhere.
  • Keep the entry unchanged afterwards: the database refuses update and delete.

Parameters

Name Type Default
key str ''
statement str ''
probe `dict str
source str ''
anchor str ''
reason str ''
agent str ''

What it returns

The usual envelope: ok, index_rev, capability, provenance and the operation's own section. A refusal is a named reason (constraint_present, unverifiable_constraint, origin_missing, outside_scope), not a silent false.

Full description and limits: 16 · Invariants.

Clone this wiki locally