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.
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
| Page | View id | Role | Route | Order | Parent | Entity | Navigation |
|---|---|---|---|---|---|---|---|
| First year | legal-code.formation.first-year | detail | /view/legalcode/formation/{guide_id}/first-year | 0 | legal-code.formation.guide | FormationGuide | hidden |
| Formation guide | legal-code.formation.guide | detail | /view/legalcode/formation/{guide_id} | 0 | legal-code.formation | FormationGuide | hidden |
| Register a company | legal-code.formation.register | detail | /view/legalcode/formation/{guide_id}/register | 0 | legal-code.formation.guide | FormationGuide | hidden |
| Practice record | legal-code.formation.specimen | detail | /view/legalcode/formation/{guide_id}/specimen | 0 | legal-code.formation.guide | FormationGuide | hidden |
| Permit | legal-code.permit | detail | /view/legalcode/permit/{permit_id} | 0 | legal-code.permits | Permit | hidden |
| Permits | legal-code.permits | dashboard | /view/legalcode/permits | 0 | Permit | in navigation | |
| Section | legal-code.statute | detail | /view/legalcode/statute/{jurisdiction}/{code}/{section} | 0 | legal-code.statutes | StatuteSection | hidden |
| Statute corpus | legal-code.statutes | dashboard | /view/legalcode | 10 | StatuteNode | in navigation | |
| Checklist | legal-code.permits.checklist | list | /view/legalcode/permits/checklist | 20 | legal-code.permits | PermitRequirement | in navigation |
| Agencies | legal-code.agencies | list | /view/legalcode/agencies | 30 | legal-code.permits | Agency | in navigation |
| Formation guides | legal-code.formation | list | /view/legalcode/formation | 40 | legal-code.permits | FormationGuide | in navigation |
| Create | legal-code.permits.start | editor | /view/legalcode/permits/create | 80 | legal-code.permits | PermitRequirement | in navigation |
| Code | legal-code.statute-code | list | /view/legalcode/{jurisdiction}/{code} | 210 | legal-code.statutes | StatuteSection | hidden |
Connections · 27
LegalCode.Adjudicate
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| provision_id | required | |||
| actor | required | |||
| facts | optional | |||
| verdict | optional | |||
| case_id | optional |
- Output keylegal-code.result
- Classificationunclassified
LegalCode.Author
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| code_id | required | |||
| deontic | optional | |||
| act | optional | |||
| body_lex | optional |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| template | optional | |||
| params | optional | |||
| source | optional | |||
| entry | optional | |||
| section_id | optional | |||
| facts | optional | |||
| document | optional | |||
| sweep | optional |
- 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.
- 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).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| provision_id | required | |||
| scope_kind | required | |||
| scope_id | required | |||
| consequence | optional | |||
| actor | optional | |||
| weighting | optional | |||
| aggregator | optional | |||
| expires_at_ms | optional |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| provision_id | optional | |||
| nucleus | optional |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| provision_id | optional | |||
| body_lex | optional | |||
| entry | optional | |||
| facts | optional |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| guide_id | optional | |||
| name | optional | |||
| places | optional | |||
| flags | optional | |||
| employee_count | optional | |||
| org_id | optional |
- Output keylegal-code.result
- Classificationroute_handler
- GET /legal-code/formation/guideHTTP route
LegalCode.Get
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| provision_id | optional |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| sections | optional | |||
| records | optional | |||
| provider_id | optional | |||
| params | optional | |||
| limit | optional | |||
| lift | optional |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| section_id | optional | |||
| code_id | optional | |||
| limit | optional | |||
| overwrite | optional |
- Output keylegal-code.result
- Classificationreal
- POST /legal-code/liftHTTP route
LegalCode.List
- Output keylegal-code.result
- Classificationunclassified
LegalCode.Lower
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| provision_id | required |
- 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.
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| jurisdiction | optional | |||
| jurisdictions | optional | |||
| activities | optional | |||
| flags | optional | |||
| employee_count | optional |
- 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).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| within_days | optional | |||
| notify | optional | |||
| now_ms | optional |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| permit_id | required |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| holder | optional | |||
| status | optional | |||
| jurisdiction | optional | |||
| due_within_days | optional |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| jurisdiction | optional | |||
| activity | optional | |||
| confidence | optional | |||
| include_templates | optional |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| id | required | |||
| title | optional | |||
| jurisdiction_code | optional | |||
| activities | optional | |||
| prerequisites | optional |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| permit_id | required | |||
| to | required | |||
| note | optional | |||
| actor | optional |
- 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).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| permit_id | optional | |||
| requirement_id | optional | |||
| requirement_ids | optional | |||
| vehicle_id | optional | |||
| chapter_slug | optional | |||
| org_id | optional | |||
| actor | optional |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| proposal_id | required | |||
| actor | optional |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| section_id | required |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| jurisdiction | optional | |||
| code | optional | |||
| node_id | optional | |||
| q | optional | |||
| limit | optional | |||
| cursor | optional |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| jurisdiction | required | |||
| code | required | |||
| node_id | optional |
- 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`.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| view | optional | |||
| permit_id | optional |
- 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.
- Authorityhyper
- Preferred truthhyper
- App ownerLegalCode
- SQL projectionnone · DDL declarations: 0
- OrgChapter
- Permit
- PermitRequirement
- Provision
- StatuteNode
- StatuteSection
- Vehicle
- LegalCode
- Permit
- PermitRequirement
- Provision
- StatuteNode
- StatuteSection
- None declared.
- None declared.
- None declared.
- No model warnings were reported.
Capabilities and dependencies
- Protocol
- Truth
- Charter
Structure review · 3
- Agency · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- FormationGuide · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- LegalCode · warningAn app with pages needs highlights and getting-started steps for its About page. (incomplete_intro)