Skip to content
1 viewer
View

Legal Code reference

6 pages, 22 routes, 27 connections and 0 CLI commands, generated from the declarations of LegalCode without reading storage or running anything.

AboutCode

Code · 0 files

No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.

Pages · 13

Declared views
PageView idRoleRouteOrderParentEntityNavigation
First yearlegal-code.formation.first-yeardetail/view/legalcode/formation/{guide_id}/first-year0legal-code.formation.guideFormationGuidehidden
Formation guidelegal-code.formation.guidedetail/view/legalcode/formation/{guide_id}0legal-code.formationFormationGuidehidden
Register a companylegal-code.formation.registerdetail/view/legalcode/formation/{guide_id}/register0legal-code.formation.guideFormationGuidehidden
Practice recordlegal-code.formation.specimendetail/view/legalcode/formation/{guide_id}/specimen0legal-code.formation.guideFormationGuidehidden
Permitlegal-code.permitdetail/view/legalcode/permit/{permit_id}0legal-code.permitsPermithidden
Permitslegal-code.permitsdashboard/view/legalcode/permits0Permitin navigation
Sectionlegal-code.statutedetail/view/legalcode/statute/{jurisdiction}/{code}/{section}0legal-code.statutesStatuteSectionhidden
Statute corpuslegal-code.statutesdashboard/view/legalcode10StatuteNodein navigation
Checklistlegal-code.permits.checklistlist/view/legalcode/permits/checklist20legal-code.permitsPermitRequirementin navigation
Agencieslegal-code.agencieslist/view/legalcode/agencies30legal-code.permitsAgencyin navigation
Formation guideslegal-code.formationlist/view/legalcode/formation40legal-code.permitsFormationGuidein navigation
Createlegal-code.permits.starteditor/view/legalcode/permits/create80legal-code.permitsPermitRequirementin navigation
Codelegal-code.statute-codelist/view/legalcode/{jurisdiction}/{code}210legal-code.statutesStatuteSectionhidden
13 rows

Connections · 27

LegalCode.Adjudicate

LegalCode.Adjudicate input
FieldTypeRequiredDescriptionAllowed
provision_idrequired
actorrequired
factsoptional
verdictoptional
case_idoptional
5 rows
Calls and output
  • Output keylegal-code.result
  • Classificationunclassified

LegalCode.Author

LegalCode.Author input
FieldTypeRequiredDescriptionAllowed
code_idrequired
deonticoptional
actoptional
body_lexoptional
4 rows
Calls and output
  • Output keylegal-code.result
  • Classificationunclassified

LegalCode.Document

A readable document rendered from lex: a contract template filled with parameters, a posted source, or an ingested section through a fresh lift. Optionally the verdict for facts from both the reading and the VM, the drift of a posted page, and a sweep. The page is tied to the program, not to what the law means.

LegalCode.Document input
FieldTypeRequiredDescriptionAllowed
templateoptional
paramsoptional
sourceoptional
entryoptional
section_idoptional
factsoptional
documentoptional
sweepoptional
8 rows
Calls and output
  • Output keylegal-code.result
  • Classificationroute_handler
  • POST /legal-code/lex/documentHTTP route

LegalCode.DocumentTemplates

The contract templates written in lex, with each parameter and its default.

Calls and output
  • Output keylegal-code.result
  • Classificationroute_handler
  • GET /legal-code/lex/templatesHTTP route

LegalCode.Enact

Open a Proposal to adopt a provision into a scope, carrying the consequence the scope would settle (the auto-mapped default unless the proposer overrides it).

LegalCode.Enact input
FieldTypeRequiredDescriptionAllowed
provision_idrequired
scope_kindrequired
scope_idrequired
consequenceoptional
actoroptional
weightingoptional
aggregatoroptional
expires_at_msoptional
8 rows
Calls and output
  • Output keylegal-code.result
  • Classificationreal
  • POST /legal-code/enactHTTP route

LegalCode.Equivalent

Provisions whose lex bodies share a crystal nucleus: the same norm logic under different names, across codes and jurisdictions.

LegalCode.Equivalent input
FieldTypeRequiredDescriptionAllowed
provision_idoptional
nucleusoptional
2 rows
Calls and output
  • Output keylegal-code.result
  • Classificationroute_handler
  • GET /legal-code/equivalentHTTP route

LegalCode.Evaluate

Run a provision's lex body through CRE8VM against a fact context: a verdict and a hash-chain receipt, no side effects.

LegalCode.Evaluate input
FieldTypeRequiredDescriptionAllowed
provision_idoptional
body_lexoptional
entryoptional
factsoptional
4 rows
Calls and output
  • Output keylegal-code.result
  • Classificationroute_handler
  • POST /legal-code/evaluateHTTP route

LegalCode.FormationGuide

A registration as a walk. With no guide_id, the guides this runtime ships; with one (us-fl-llc, us-tn-llc), that guide's steps in order for the business the input describes (name, places, flags, employee_count), each filing step carrying its catalog row's fee, agency, confidence and source, each door the day its page was read, each proof the document the agency issues and the public page that confirms it, and, with org_id, the permit already tracked for that row. Reads the shipped catalog rows when the store has not been planted and says which those were.

LegalCode.FormationGuide input
FieldTypeRequiredDescriptionAllowed
guide_idoptional
nameoptional
placesoptional
flagsoptional
employee_countoptional
org_idoptional
6 rows
Calls and output
  • Output keylegal-code.result
  • Classificationroute_handler
  • GET /legal-code/formation/guideHTTP route

LegalCode.Get

LegalCode.Get input
FieldTypeRequiredDescriptionAllowed
provision_idoptional
1 row
Calls and output
  • Output keylegal-code.result
  • Classificationunclassified

LegalCode.Ingest

Store statute sections read by a Provider legal adapter (cre8.legal.statute-section.v1): refuse a section whose hash does not match its text, parse it, link it into its code's table of contents and citation graph, and keep the hash of any text it replaces. Optionally lifts each stored section into a reference provision.

LegalCode.Ingest input
FieldTypeRequiredDescriptionAllowed
sectionsoptional
recordsoptional
provider_idoptional
paramsoptional
limitoptional
liftoptional
6 rows
Calls and output
  • Output keylegal-code.result
  • Classificationreal
  • POST /legal-code/ingestHTTP route

LegalCode.Lift

Turn ingested sections into reference provisions: a lex body, statutory lines, the real penalties the text prints, an auto-mapped default consequence and the lex crystal nucleus. A reference provision binds no one.

LegalCode.Lift input
FieldTypeRequiredDescriptionAllowed
section_idoptional
code_idoptional
limitoptional
overwriteoptional
4 rows
Calls and output
  • Output keylegal-code.result
  • Classificationreal
  • POST /legal-code/liftHTTP route

LegalCode.List

Calls and output
  • Output keylegal-code.result
  • Classificationunclassified

LegalCode.Lower

LegalCode.Lower input
FieldTypeRequiredDescriptionAllowed
provision_idrequired
1 row
Calls and output
  • Output keylegal-code.result
  • Classificationunclassified

LegalCode.PermitCatalogSeed

Plant every shipped seed permit catalog file idempotently — the generic template ladder and the concrete Knoxville ladder. A row an operator promoted to 'verified' is never overwritten, and a stored row no shipped file claims any more comes back named in orphaned_rows rather than being silently kept or deleted.

Calls and output
  • Output keylegal-code.result
  • Classificationreal
  • POST /legal-code/permits/catalog/seedHTTP route

LegalCode.PermitChecklist

A business profile in, the applicable requirements out, in prerequisite (topological) order with fee floors, lead times and a critical-path estimate. A chapter_slug derives the profile from that chapter's own record (jurisdictions from its place, has_vehicle when a vehicle names it) and reports what the derivation could not close. Refuses a catalog whose prerequisites cycle rather than returning a short list.

LegalCode.PermitChecklist input
FieldTypeRequiredDescriptionAllowed
jurisdictionoptional
jurisdictionsoptional
activitiesoptional
flagsoptional
employee_countoptional
5 rows
Calls and output
  • Output keylegal-code.result
  • Classificationroute_handler
  • GET /legal-code/permits/checklistHTTP route

LegalCode.PermitDue

The renewal sweep: permits overdue or coming due inside a horizon, with one best-effort notice per permit per due window (the notice marker is written back onto the permit).

LegalCode.PermitDue input
FieldTypeRequiredDescriptionAllowed
within_daysoptional
notifyoptional
now_msoptional
3 rows
Calls and output
  • Output keylegal-code.result
  • Classificationreal
  • POST /legal-code/permits/dueHTTP route

LegalCode.PermitGet

One permit with the catalog row behind it, its days-to-renewal, and the status moves the state machine allows from here.

LegalCode.PermitGet input
FieldTypeRequiredDescriptionAllowed
permit_idrequired
1 row
Calls and output
  • Output keylegal-code.result
  • Classificationroute_handler
  • GET /legal-code/permits/getHTTP route

LegalCode.PermitList

Permits a holder carries, filtered by holder, status, jurisdiction and renewal horizon.

LegalCode.PermitList input
FieldTypeRequiredDescriptionAllowed
holderoptional
statusoptional
jurisdictionoptional
due_within_daysoptional
4 rows
Calls and output
  • Output keylegal-code.result
  • Classificationroute_handler
  • GET /legal-code/permitsHTTP route

LegalCode.PermitRequirementList

The permit requirement catalog, filtered by jurisdiction, activity and confidence. Templates are excluded unless include_templates is set.

LegalCode.PermitRequirementList input
FieldTypeRequiredDescriptionAllowed
jurisdictionoptional
activityoptional
confidenceoptional
include_templatesoptional
4 rows
Calls and output
  • Output keylegal-code.result
  • Classificationroute_handler
  • GET /legal-code/permits/requirementsHTTP route

LegalCode.PermitRequirementUpsert

Write one jurisdiction-scoped permit requirement into the catalog. Refuses a prerequisite cycle, and refuses confidence='verified' without the date the source was read.

LegalCode.PermitRequirementUpsert input
FieldTypeRequiredDescriptionAllowed
idrequired
titleoptional
jurisdiction_codeoptional
activitiesoptional
prerequisitesoptional
5 rows
Calls and output
  • Output keylegal-code.result
  • Classificationreal
  • POST /legal-code/permits/requirements/upsertHTTP route

LegalCode.PermitTransition

One validated permit status move, owner-gated, appended to the permit's immutable history. The only writer of that history and the only path through the state machine.

LegalCode.PermitTransition input
FieldTypeRequiredDescriptionAllowed
permit_idrequired
torequired
noteoptional
actoroptional
4 rows
Calls and output
  • Output keylegal-code.result
  • Classificationreal
  • POST /legal-code/permits/transitionHTTP route

LegalCode.PermitUpsert

Create or edit one permit a holder carries, or track a whole checklist against a holder. Owner-gated on edit; never moves status (that is PermitTransition).

LegalCode.PermitUpsert input
FieldTypeRequiredDescriptionAllowed
permit_idoptional
requirement_idoptional
requirement_idsoptional
vehicle_idoptional
chapter_slugoptional
org_idoptional
actoroptional
7 rows
Calls and output
  • Output keylegal-code.result
  • Classificationreal
  • POST /legal-code/permits/upsertHTTP route

LegalCode.Ratify

Apply a passed adoption Proposal: write the scope-bound adopted provision, lower it, and link it to the reference provision it came from.

LegalCode.Ratify input
FieldTypeRequiredDescriptionAllowed
proposal_idrequired
actoroptional
2 rows
Calls and output
  • Output keylegal-code.result
  • Classificationreal
  • POST /legal-code/ratifyHTTP route

LegalCode.StatuteGet

One ingested section: its text, parse, history, prior-version hashes, the provisions lifted from it, and the sections it cites and that cite it.

LegalCode.StatuteGet input
FieldTypeRequiredDescriptionAllowed
section_idrequired
1 row
Calls and output
  • Output keylegal-code.result
  • Classificationroute_handler
  • GET /legal-code/statuteHTTP route

LegalCode.StatuteList

Ingested sections filtered by jurisdiction, code, table-of-contents node and a text query, paged by cursor.

LegalCode.StatuteList input
FieldTypeRequiredDescriptionAllowed
jurisdictionoptional
codeoptional
node_idoptional
qoptional
limitoptional
cursoroptional
6 rows
Calls and output
  • Output keylegal-code.result
  • Classificationroute_handler
  • GET /legal-code/statutesHTTP route

LegalCode.StatuteToc

A code's table of contents from its root (or from node_id): containers and the sections directly under each.

LegalCode.StatuteToc input
FieldTypeRequiredDescriptionAllowed
jurisdictionrequired
coderequired
node_idoptional
3 rows
Calls and output
  • Output keylegal-code.result
  • Classificationroute_handler
  • GET /legal-code/statutes/tocHTTP route

LegalCode.ViewPatch

Live read-only pill strip for the permit SSR pages (/view/legalcode/permits, /view/legalcode/permit/{permit_id}, /view/legalcode/permits/checklist, /view/legalcode/permits/create — the last two share the checklist strip). Steered by `view` (permits | permit | checklist) and `permit_id`.

LegalCode.ViewPatch input
FieldTypeRequiredDescriptionAllowed
viewoptional
permit_idoptional
2 rows
Calls and output
  • Output keylegal-code.result
  • Classificationroute_handler
  • GET /legal-code/document/patchHTTP route

Schema and data model

Declared storage and kinds. Linked kinds open their app pages.

Declared storage
  • Authorityhyper
  • Preferred truthhyper
  • App ownerLegalCode
  • SQL projectionnone · DDL declarations: 0
Hyper vertex kinds read
Hyper vertex kinds written
Hyper edge kinds written
  • None declared.
Asset namespaces read
  • None declared.
Asset namespaces minted
  • None declared.
Model warnings
  • No model warnings were reported.

Capabilities and dependencies

Depends on
  • Protocol
  • Truth
  • Charter

Structure review · 3

Warnings · 3