Ballot reference
4 pages, 35 routes, 34 connections and 2 CLI commands, generated from the declarations of Ballot 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 · 5
| Page | View id | Role | Route | Order | Parent | Entity | Navigation |
|---|---|---|---|---|---|---|---|
| Ballot | ballot.answer | detail | /view/ballot/answer/{ballot_id} | 0 | ballot.author | Ballot | hidden |
| List | ballot.author | custom | /view/ballot/questions | 0 | in navigation | ||
| Invitations | ballot.questions | custom | /view/ballot/invitations | 60 | ballot.author | in navigation | |
| Question tools | ballot.programs | custom | /view/ballot/programs | 61 | ballot.author | in navigation | |
| Workbench | ballot.workbench | /view/ballot/workbench | in navigation |
Connections · 34
Ballot.Back
Draft voice-backed positions for the caller's latest answer: one divisible `cre8/voice` for `cre8/activity/...` position per backed want, at the answer's quantity. Drafts only; Position.Submit owns funds and publication.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| ballot_id | required | |||
| backing | required |
- Output keyballot.result
- Classificationroute_handler
- POST /ballot/backHTTP route
Ballot.Catalog
List available ballot templates / catalog entries.
- Output keyballot.result
- Classificationroute_handler
- GET /ballotHTTP route
- GET /ballot/catalogHTTP route
- ballot catalogCLI command
Ballot.Close
Close a ballot and SEAL its rep-weighted outcome — the governance keystone between voting and execution. Latest response per peer counts, weights read at close time via the same rep_weight helpers the submit path uses, exact top ties yield no winner. The sealed tally persists in ballot_config and never moves again — downstream executors (Virtual.VillageDecision, agreements) act on an outcome that can't drift. Idempotent.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| ballot_id | required |
- Output keyballot.result
- Classificationreal
- POST /ballot/closeHTTP route
Ballot.Discover
Browse published questions ranked by recent distinct respondents or creation time.
- Output keyballot.result
- Classificationroute_handler
- POST /ballot/discoverHTTP route
Ballot.Generate.FromPositions
Dynamically generate a Ballot by surveying the current position pool for structural matters (gaps, excesses, polarized assets). Three scopes: universal (all positions), personal (a single peer's positions), location (geo-scoped, stub until PositionRecord.geo_cell lands). Each surfaced matter becomes one Question; question shape dispatches on namespace pattern (legislation→yes/no/abstain, rep/{tag}→scale, gap→boolean supply, excess→boolean demand, polarized→stance scale). Stable id `dynamic-{scope}-{date}` so re-runs same day collapse at the store. Wireable as `daily_publish.provider` — points B.1's scheduler at the market signal instead of a legislation feed.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| scope | optional | |||
| window_secs | optional | |||
| top_k | optional | |||
| limit | optional | |||
| target_peer_id | optional | |||
| geo_cell | optional | |||
| ring_radius | optional |
- Output keyballot.result
- Classificationreal
- POST /ballot/generateHTTP route
Ballot.Get
Fetch one Ballot definition by id.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| ballot_id | required |
- Output keyballot.result
- Classificationroute_handler
- GET /ballot/detailHTTP route
Ballot.Preview
Compute ballot tally / projection without committing.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| ballot_id | required | |||
| answers | required |
- Output keyballot.result
- Classificationroute_handler
- POST /ballot/previewHTTP route
Ballot.Program.AnswerInspect
Inspect this recipient's interrupted answer and stored position evidence.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| invitation_id | required |
- Output keyballot.result
- Classificationroute_handler
- POST /ballot/program/answer-inspectHTTP route
Ballot.Program.AnswerPreview
Preview an answer without publishing a position.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| invitation_id | required |
- Output keyballot.result
- Classificationroute_handler
- POST /ballot/program/answer-previewHTTP route
Ballot.Program.AnswerRecover
Acknowledge an exactly recorded answer without re-emitting a position.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| invitation_id | required | |||
| attempt_id | required |
- Output keyballot.result
- Classificationreal
- POST /ballot/program/answer-recoverHTTP route
Ballot.Program.AnswerSubmit
Persist an explicitly shared Ballot intention without participation minting or Manifold execution.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| invitation_id | required |
- Output keyballot.result
- Classificationreal
- POST /ballot/program/answer-submitHTTP route
Ballot.Program.DeliveryEnable
Explicitly enable the verified recipient's question inbox through Notification without sending a message.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| confirm_inbox | required |
- Output keyballot.result
- Classificationreal
- POST /ballot/program/delivery-enableHTTP route
Ballot.Program.Dismiss
Set an invitation aside without emitting or retracting positions.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| invitation_id | required |
- Output keyballot.result
- Classificationreal
- POST /ballot/program/dismissHTTP route
Ballot.Program.Get
Read an owned question program.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| program_id | required |
- Output keyballot.result
- Classificationroute_handler
- POST /ballot/program/getHTTP route
Ballot.Program.InvitationGet
Read the recipient immutable question snapshot.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| invitation_id | required |
- Output keyballot.result
- Classificationroute_handler
- POST /ballot/program/invitation-getHTTP route
Ballot.Program.Invitations
List the authenticated recipient's active questions and answers needing inspection.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| limit | optional | |||
| offset | optional |
- Output keyballot.result
- Classificationroute_handler
- POST /ballot/program/invitationsHTTP route
Ballot.Program.Invite
Claim recipient attention budget and attempt enrolled Notification channels.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| program_id | required |
- Output keyballot.result
- Classificationreal
- POST /ballot/program/inviteHTTP route
Ballot.Program.Plan
Check recipient eligibility without delivery.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| program_id | required |
- Output keyballot.result
- Classificationroute_handler
- POST /ballot/program/planHTTP route
Ballot.Program.PreferencesGet
Read authenticated recipient question preferences.
- Output keyballot.result
- Classificationroute_handler
- POST /ballot/program/preferences-getHTTP route
Ballot.Program.PreferencesSet
Save authenticated recipient enrollment and attention preferences.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| preferences | required |
- Output keyballot.result
- Classificationreal
- POST /ballot/program/preferences-setHTTP route
Ballot.Program.Save
Save a versioned author-owned question program.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| program | required |
- Output keyballot.result
- Classificationreal
- POST /ballot/program/saveHTTP route
Ballot.Program.ScheduleGet
Read the author-owned daily question schedule.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| program_id | required |
- Output keyballot.result
- Classificationroute_handler
- POST /ballot/program/schedule-getHTTP route
Ballot.Program.ScheduleSet
Authorize or disable daily invitations for an exact saved program revision.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| program_id | required | |||
| enabled | required | |||
| local_hour | required | |||
| expected_program_revision | required | |||
| expected_schedule_revision | required |
- Output keyballot.result
- Classificationreal
- POST /ballot/program/schedule-setHTTP route
Ballot.Program.Validate
Validate canonical question meaning without writing.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| program | required |
- Output keyballot.result
- Classificationroute_handler
- POST /ballot/program/validateHTTP route
Ballot.Question.Create
Publish a standalone immutable question under its verified author without notification fanout.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| ballot | required |
- Output keyballot.result
- Classificationreal
- POST /ballot/question/createHTTP route
Ballot.Responses
List BallotResponse vertices for a Ballot.
- Output keyballot.result
- Classificationroute_handler
- GET /ballot/responsesHTTP route
Ballot.Settings.Delete
Delete a ballot_config key. Restores the seeded default on the next Ballot.boot (Ballot.boot only seeds via set_config_if_missing, so deleting a row lets the default reassert).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| config_key | required |
- Output keyballot.result
- Classificationreal
- POST /ballot/settings/deleteHTTP route
Ballot.Settings.Get
Read ballot_config — full settings map when no config_key, single key when supplied. Includes the system-driven daily-publish state (last_run_at, last_result diagnostics).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| config_key | optional |
- Output keyballot.result
- Classificationroute_handler
- GET /ballot/settingsHTTP route
Ballot.Settings.Set
Set a single ballot_config key/value. The key/value bag covers system-driven daily-publish config (daily_publish.enabled, daily_publish.provider, daily_publish.provider_input, daily_publish.hour_utc) plus any future per-app settings. Idempotent upsert.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| config_key | required | |||
| config_value | required |
- Output keyballot.result
- Classificationreal
- POST /ballot/settingsHTTP route
Ballot.Status
Ballot subsystem health / counts.
- Output keyballot.result
- Classificationroute_handler
- GET /ballot/statusHTTP route
Ballot.Submit
Submit a signed BallotResponse. Rep-weighted via accumulated `cre8/peer/{voter}/rep/{tag}` balances; each declared stance also commits a deterministic `ballot.respond` receipt (participation mint, replay-deduped), and re-affirmed stances mint coherence.aligned while reversals raise coherence.drift notifications.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| ballot_id | required | |||
| answers | required |
- Output keyballot.result
- Classificationreal
- POST /ballot/submitHTTP route
- ballot submitCLI command
Ballot.Tally
Rep-weighted ballot outcome: the sealed at-close tally for a closed ballot, or a live provisional projection for an open one.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| ballot_id | required |
- Output keyballot.result
- Classificationroute_handler
- GET /ballot/tallyHTTP route
Ballot.Upsert
Create or update a Ballot definition (questions, options, manifold). Governance-side primitive — Project charters reference Ballots that gate decisions.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| ballot | required |
- Output keyballot.result
- Classificationreal
- POST /ballotHTTP route
Ballot.ViewPatch
Live SSR patch for the Ballot workbench status strip.
- Output keyballot.result
- Classificationroute_handler
- GET /ballot/live/patchHTTP route
CLI commands · 2
ballot catalog
List position-creating ballots
ballot catalog
ballot catalog
ballot submit
Submit answers and emit a position
ballot submit --ballot daily-position
ballot submit --ballot daily-position
Schema and data model
Declared storage and kinds. Linked kinds open their app pages.
- Authorityhyper_with_sql_compat
- Preferred truthhyper
- App ownerBallot
- SQL projectioncompatibility_projection · DDL declarations: 3
- Ballot
- BallotResponse
- Ballot
- BallotResponse
- Notification
- Position
- None declared.
- cre8/peer/{voter}/rep/{tag}
- cre8/voice
- cre8/ballot/{ballot_id}/participation
- warningApp declares a Hyper graph model and SQL DDL; treat SQL as compatibility/projection until migrated. (hybrid_model)
| Table |
|---|
| ballot_runtime |
| ballot_response_runtime |
| ballot_config |
Capabilities and dependencies
- Matching
- Position
- Notification