Arrows to move, Enter to openSee all results →

Standards / legal@1

PublishedVersion 1.1.02026-12-02MITDeveloper reference

legal@1 entities, contracts, obligations and renewals

A local record of dates and terms supplied by the user: when an agreement renews, when a notice or filing is due, and which role is responsible. These records help the user organize and review their own inputs. They are not legal advice.

Tables98 requiredFields78no viewsVocabularies8shared word listsDashboards0read it
JSON Schema/spec/legal/1.1.0/legal@1.schema.jsonSQL tables (SQLite)/spec/legal/1.1.0/schema.sqlREADME/spec/legal/1.1.0/README.mdChangelog/spec/legal/CHANGELOG.md

Check a database or a board against it: dashremix spec check. Start a new board on it: dashremix new <id> --schema legal@1. Hash 3f8ff17f10a3ab8b…

Dashboards that read it

No board in the catalog reads it yet.

Compatible with finance@2.

Tables and fields

Required tables must exist in every database that says it follows legal@1; required fields must be filled. Columns a board adds start with x_.

metarequired table

FieldTypeRequiredMeaning
keyTEXTyese.g. as_of
valueTEXTnotext; dates in YYYY-MM-DD

entitiesrequired table

One row per entity in the user's register.

FieldTypeRequiredMeaning
entity_idTEXTyessource-scoped ID
labelTEXTyesentity label, e.g. Sample Studio
kindTEXTentity_kindsyescompany | nonprofit | partnership | trust | other
statusTEXTentity_statusesyesactive | inactive | dissolved | unknown
jurisdictionTEXTnoauthority's jurisdiction code or label
registration_refTEXTnoidentifier assigned to the entity by the registry
registered_onTEXTdatenodate recorded by the registry
sourceTEXTyesconnector ID, e.g. entities-yaml
source_refTEXTyesinput file and row or source object ID
imported_atTEXTinstantyesUTC instant, excluded from meta.data_hash

entity_rolesrequired table

One row per role and term. Store the role only.

FieldTypeRequiredMeaning
role_idTEXTyessource-scoped role term ID
entity_idTEXTyesregistered entity
roleTEXTyesrole label, e.g. Treasurer
starts_onTEXTdatenofirst local date of this term, if stated
ends_onTEXTdatenolast local date of this term, if stated
sourceTEXTyesconnector ID
source_refTEXTyesinput file and row or source object ID
imported_atTEXTinstantyesUTC instant, excluded from meta.data_hash

contractsrequired table

One row per agreement in the contract register.

FieldTypeRequiredMeaning
contract_idTEXTyessource-scoped agreement ID
entity_idTEXTnoregistered entity when a link is supplied
labelTEXTyesshort agreement label from the register
counterparty_labelTEXTnoorganization or vendor label
statusTEXTcontract_statusesyesdraft | active | ended | cancelled | unknown
starts_onTEXTdatenofirst local date supplied by the agreement register
term_ends_onTEXTdatenostated last local date of the current term
renewal_modeTEXTrenewal_modesyesautomatic | manual | none | unknown
notice_daysINTEGERnostated number of days; context for review, not a deadline
sourceTEXTyesconnector ID, e.g. contracts-csv
source_refTEXTyesinput file and row or source object ID
imported_atTEXTinstantyesUTC instant, excluded from meta.data_hash

obligationsrequired table

One occurrence per deadline, including filings, notices, and renewals.

FieldTypeRequiredMeaning
obligation_idTEXTyessource-scoped occurrence ID
entity_idTEXTnoregistered entity when supplied
contract_idTEXTnolinked agreement when supplied
kindTEXTobligation_kindsyesfiling | notice | renewal | payment | review | other
labelTEXTyessource label for this occurrence
due_onTEXTdateyeslocal due date confirmed by the source
statusTEXTobligation_statusesyesopen | completed | waived | cancelled | unknown
resolved_onTEXTdatenolocal date the occurrence was closed, when supplied
owner_roleTEXTnoresponsible role, e.g. Finance
authorityTEXTnoreceiving organization, where supplied
referenceTEXTnofiling type or record reference, when supplied
sourceTEXTyesconnector ID, e.g. obligations-ics
source_refTEXTyesinput file and row or source object ID
imported_atTEXTinstantyesUTC instant, excluded from meta.data_hash

contract_pricesrequired table

One stated contract price per effective date, in its original currency and billing interval.

FieldTypeRequiredMeaning
contract_idTEXTyesagreement this price belongs to
effective_onTEXTdateyesfirst local date of this price
amountREALyesnon-negative charge in major units of currency
currencyTEXTcurrencyyesISO 4217, e.g. USD
periodTEXTprice_periodsyesonce | monthly | quarterly | annual
sourceTEXTyesconnector ID
source_refTEXTyesinput file and row or source object ID
imported_atTEXTinstantyesUTC instant, excluded from meta.data_hash

import_issues

What an importer could not read or chose to leave out (1.1): an unknown deadline, an unreadable date, a row with no ID. A board's data review shows these rows; nothing is guessed.

FieldTypeRequiredMeaning
issue_idTEXTyesstable ID: <source>:<file>:<line> or <source>:<kind>
severityTEXTseveritiesyesinfo | warn | error (vocab severities)
kindTEXTyesskipped_row | unknown_deadline | unknown_layout | duplicate_row
fileTEXTnothe source file name (never its contents)
lineINTEGERno1-based line or calendar entry in that file, when the issue is one row
detailTEXTyeswhat happened, e.g. the due date is not a date
handlingTEXTyeswhat was done, e.g. left the row out
sourceTEXTnoconnector ID

annotationsrequired table

FieldTypeRequiredMeaning
annotation_idTEXTyesstable ID
targetTEXTyesmetric ID or page ID
kindTEXTyesnote | caveat | flag | decision | open_item
bodyTEXTyesnote text with metric placeholders for numbers
authorTEXTnoperson or assistant
source_refTEXTnosource reference
created_atTEXTnoISO 8601 instant
data_hashTEXTnohash of cited metric values when written
statusTEXTnoactive | stale | retired

metric_registryrequired table

FieldTypeRequiredMeaning
metric_idTEXTyese.g. obligations.open
versionINTEGERnometric version
unitTEXTnoe.g. count
paramsTEXTnoaccepted metric parameters
descriptionTEXTnometric description
sqlTEXTnoexpanded SQL
testTEXTnocheck that exercises this metric

Vocabularies

Shared word lists, so every board and connector means the same thing by the same word.

contract_statuses5 values

draft · active · ended · cancelled · unknown

entity_kinds5 values

company · nonprofit · partnership · trust · other

entity_statuses4 values

active · inactive · dissolved · unknown

obligation_kinds6 values

filing · notice · renewal · payment · review · other

obligation_statuses5 values

open · completed · waived · cancelled · unknown

price_periods4 values

once · monthly · quarterly · annual

renewal_modes4 values

automatic · manual · none · unknown

severities3 values

info · warn · error

Changelog

1.1.0 · 2026-12-02

  • Minor. New optional table import_issues (rows or calendar entries an importer could not read or left out, so a
  • board's data review shows them) with a severities vocabulary and the check import_issues_valid at fail (it reads
  • only the new table, so no 1.0 database can fail it). The README field reference is now generated from the DDL comments
  • by spec/build.py, and checks.yaml names each check's text desc (the key the checker reads), so the descriptions
  • appear in check results. Invalid-data tests cover every fail check.

1.0.0 · 2026-12-02

  • Initial standard for entities, role terms, agreements, deadlines and effective-dated contract prices.

Other standards