Skip to content
1 viewer
View

Ballot reference

4 pages, 35 routes, 34 connections and 2 CLI commands, generated from the declarations of Ballot 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 · 5

Declared views
PageView idRoleRouteOrderParentEntityNavigation
Ballotballot.answerdetail/view/ballot/answer/{ballot_id}0ballot.authorBallothidden
Listballot.authorcustom/view/ballot/questions0in navigation
Invitationsballot.questionscustom/view/ballot/invitations60ballot.authorin navigation
Question toolsballot.programscustom/view/ballot/programs61ballot.authorin navigation
Workbenchballot.workbench/view/ballot/workbenchin navigation
5 rows

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.

Ballot.Back input
FieldTypeRequiredDescriptionAllowed
ballot_idrequired
backingrequired
2 rows
Calls and output
  • Output keyballot.result
  • Classificationroute_handler
  • POST /ballot/backHTTP route

Ballot.Catalog

List available ballot templates / catalog entries.

Calls and output
  • 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.

Ballot.Close input
FieldTypeRequiredDescriptionAllowed
ballot_idrequired
1 row
Calls and output
  • Output keyballot.result
  • Classificationreal
  • POST /ballot/closeHTTP route

Ballot.Discover

Browse published questions ranked by recent distinct respondents or creation time.

Calls and output
  • 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.

Ballot.Generate.FromPositions input
FieldTypeRequiredDescriptionAllowed
scopeoptional
window_secsoptional
top_koptional
limitoptional
target_peer_idoptional
geo_celloptional
ring_radiusoptional
7 rows
Calls and output
  • Output keyballot.result
  • Classificationreal
  • POST /ballot/generateHTTP route

Ballot.Get

Fetch one Ballot definition by id.

Ballot.Get input
FieldTypeRequiredDescriptionAllowed
ballot_idrequired
1 row
Calls and output
  • Output keyballot.result
  • Classificationroute_handler
  • GET /ballot/detailHTTP route

Ballot.Preview

Compute ballot tally / projection without committing.

Ballot.Preview input
FieldTypeRequiredDescriptionAllowed
ballot_idrequired
answersrequired
2 rows
Calls and output
  • Output keyballot.result
  • Classificationroute_handler
  • POST /ballot/previewHTTP route

Ballot.Program.AnswerInspect

Inspect this recipient's interrupted answer and stored position evidence.

Ballot.Program.AnswerInspect input
FieldTypeRequiredDescriptionAllowed
invitation_idrequired
1 row
Calls and output
  • Output keyballot.result
  • Classificationroute_handler
  • POST /ballot/program/answer-inspectHTTP route

Ballot.Program.AnswerPreview

Preview an answer without publishing a position.

Ballot.Program.AnswerPreview input
FieldTypeRequiredDescriptionAllowed
invitation_idrequired
1 row
Calls and output
  • Output keyballot.result
  • Classificationroute_handler
  • POST /ballot/program/answer-previewHTTP route

Ballot.Program.AnswerRecover

Acknowledge an exactly recorded answer without re-emitting a position.

Ballot.Program.AnswerRecover input
FieldTypeRequiredDescriptionAllowed
invitation_idrequired
attempt_idrequired
2 rows
Calls and output
  • 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.

Ballot.Program.AnswerSubmit input
FieldTypeRequiredDescriptionAllowed
invitation_idrequired
1 row
Calls and output
  • 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.

Ballot.Program.DeliveryEnable input
FieldTypeRequiredDescriptionAllowed
confirm_inboxrequired
1 row
Calls and output
  • Output keyballot.result
  • Classificationreal
  • POST /ballot/program/delivery-enableHTTP route

Ballot.Program.Dismiss

Set an invitation aside without emitting or retracting positions.

Ballot.Program.Dismiss input
FieldTypeRequiredDescriptionAllowed
invitation_idrequired
1 row
Calls and output
  • Output keyballot.result
  • Classificationreal
  • POST /ballot/program/dismissHTTP route

Ballot.Program.Get

Read an owned question program.

Ballot.Program.Get input
FieldTypeRequiredDescriptionAllowed
program_idrequired
1 row
Calls and output
  • Output keyballot.result
  • Classificationroute_handler
  • POST /ballot/program/getHTTP route

Ballot.Program.InvitationGet

Read the recipient immutable question snapshot.

Ballot.Program.InvitationGet input
FieldTypeRequiredDescriptionAllowed
invitation_idrequired
1 row
Calls and output
  • 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.

Ballot.Program.Invitations input
FieldTypeRequiredDescriptionAllowed
limitoptional
offsetoptional
2 rows
Calls and output
  • Output keyballot.result
  • Classificationroute_handler
  • POST /ballot/program/invitationsHTTP route

Ballot.Program.Invite

Claim recipient attention budget and attempt enrolled Notification channels.

Ballot.Program.Invite input
FieldTypeRequiredDescriptionAllowed
program_idrequired
1 row
Calls and output
  • Output keyballot.result
  • Classificationreal
  • POST /ballot/program/inviteHTTP route

Ballot.Program.Plan

Check recipient eligibility without delivery.

Ballot.Program.Plan input
FieldTypeRequiredDescriptionAllowed
program_idrequired
1 row
Calls and output
  • Output keyballot.result
  • Classificationroute_handler
  • POST /ballot/program/planHTTP route

Ballot.Program.PreferencesGet

Read authenticated recipient question preferences.

Calls and output
  • Output keyballot.result
  • Classificationroute_handler
  • POST /ballot/program/preferences-getHTTP route

Ballot.Program.PreferencesSet

Save authenticated recipient enrollment and attention preferences.

Ballot.Program.PreferencesSet input
FieldTypeRequiredDescriptionAllowed
preferencesrequired
1 row
Calls and output
  • Output keyballot.result
  • Classificationreal
  • POST /ballot/program/preferences-setHTTP route

Ballot.Program.Save

Save a versioned author-owned question program.

Ballot.Program.Save input
FieldTypeRequiredDescriptionAllowed
programrequired
1 row
Calls and output
  • Output keyballot.result
  • Classificationreal
  • POST /ballot/program/saveHTTP route

Ballot.Program.ScheduleGet

Read the author-owned daily question schedule.

Ballot.Program.ScheduleGet input
FieldTypeRequiredDescriptionAllowed
program_idrequired
1 row
Calls and output
  • 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.

Ballot.Program.ScheduleSet input
FieldTypeRequiredDescriptionAllowed
program_idrequired
enabledrequired
local_hourrequired
expected_program_revisionrequired
expected_schedule_revisionrequired
5 rows
Calls and output
  • Output keyballot.result
  • Classificationreal
  • POST /ballot/program/schedule-setHTTP route

Ballot.Program.Validate

Validate canonical question meaning without writing.

Ballot.Program.Validate input
FieldTypeRequiredDescriptionAllowed
programrequired
1 row
Calls and output
  • 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.

Ballot.Question.Create input
FieldTypeRequiredDescriptionAllowed
ballotrequired
1 row
Calls and output
  • Output keyballot.result
  • Classificationreal
  • POST /ballot/question/createHTTP route

Ballot.Responses

List BallotResponse vertices for a Ballot.

Calls and output
  • 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).

Ballot.Settings.Delete input
FieldTypeRequiredDescriptionAllowed
config_keyrequired
1 row
Calls and output
  • 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).

Ballot.Settings.Get input
FieldTypeRequiredDescriptionAllowed
config_keyoptional
1 row
Calls and output
  • 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.

Ballot.Settings.Set input
FieldTypeRequiredDescriptionAllowed
config_keyrequired
config_valuerequired
2 rows
Calls and output
  • Output keyballot.result
  • Classificationreal
  • POST /ballot/settingsHTTP route

Ballot.Status

Ballot subsystem health / counts.

Calls and output
  • 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.

Ballot.Submit input
FieldTypeRequiredDescriptionAllowed
ballot_idrequired
answersrequired
2 rows
Calls and output

Ballot.Tally

Rep-weighted ballot outcome: the sealed at-close tally for a closed ballot, or a live provisional projection for an open one.

Ballot.Tally input
FieldTypeRequiredDescriptionAllowed
ballot_idrequired
1 row
Calls and output
  • 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.

Ballot.Upsert input
FieldTypeRequiredDescriptionAllowed
ballotrequired
1 row
Calls and output
  • Output keyballot.result
  • Classificationreal
  • POST /ballotHTTP route

Ballot.ViewPatch

Live SSR patch for the Ballot workbench status strip.

Calls and output
  • 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.

Declared storage
  • Authorityhyper_with_sql_compat
  • Preferred truthhyper
  • App ownerBallot
  • SQL projectioncompatibility_projection · DDL declarations: 3
Hyper vertex kinds read
Hyper vertex kinds written
  • Ballot
  • BallotResponse
  • Notification
  • Position
Hyper edge kinds written
  • None declared.
Asset namespaces read
  • cre8/peer/{voter}/rep/{tag}
  • cre8/voice
Asset namespaces minted
  • cre8/ballot/{ballot_id}/participation
Model warnings
  • warningApp declares a Hyper graph model and SQL DDL; treat SQL as compatibility/projection until migrated. (hybrid_model)
SQL tables
Table
ballot_runtime
ballot_response_runtime
ballot_config
3 rows

Capabilities and dependencies

Depends on
  • Matching
  • Position
  • Notification

Structure review · 1

Warnings · 1