EKOSdocs
Docs / Guides Build

People as a Source

Record what people know — files they send, what they say, answers to open questions — with who, where and when, as evidence a person saved, never a model.

Some meaning exists only in people's heads: what status = 7 means, why a column is in cents. EKOS cannot recover that from code, but it can ask for it and record the answer with its provenance (RFC 0253, 0254; new in v1.5.0). Three pieces:

Piece What Who writes
Inbox files and links people send, compiled as the source inbox anyone may send; a writer accepts
Testimony what a person said, in their words, with who, channel, link and time only that person (or an operator recording a workshop answer, under their own name)
Open questions what nobody has explained yet, derived at ekos commit nobody: they are computed

A model never writes any of them. In the chat a model may propose; what is saved is the person's own text, or a proposal the person saw and accepted, attributed to them.

Open questions

ekos commit derives questions from what EKOS cannot settle alone, deterministically and with no model call:

Type Asked when
meaning_of_value the code uses a value no source explains
unexplained_values the data holds values no code names (Profiling a Database)
dead_code code handles a value the data has not held for a long time
which_is_right two sources disagree and nobody has decided
is_this_a_reference an inferred reference's verdict is unclear
what_is_a_row no key was found for a table
logic_vs_data a transformation handles some values; the data holds others
still_true a person's note is on an entity that has changed since
ekos questions list                              # open ones, highest priority first
ekos questions list --type unexplained_values --table orders
ekos questions show <id>                         # context, evidence, answers
ekos questions show <id> --reveal                # the unexplained values, live
ekos questions export --format docx --out workshop.docx   # md, csv, json, docx or xlsx

A question's status is computed on every read: open, answered (a testimony answers it), closed (its origin was decided in review) or obsolete (its origin is gone). Questions that block a review subject come first.

Revealing values. --reveal runs one aggregate query on the live database and shows the top values with counts. The result is never stored or logged. A personal column gives counts only, and a value held by fewer than [questions] min-cell rows (default 5) is shown as <5 rows without the value.

Who is asked. Each question has ranked addressees: owners you configure, then the authors of the code that uses the subject, ticket participants, document authors, and the project's reviewers as the fallback:

[questions]
reviewers = ["ann"]
per-person-per-day = 5           # the most questions in one person's digest (default)

[[questions.owners]]             # strongest signal first
pattern = "C_ORDER*"
people = ["ivana@example.com"]

ekos questions digest gives each person their next questions. reassign --to, decline ("not me": the question moves to the next person) and mute <pattern> (no questions about matching tables for this person) take the rest.

Testimony

ekos testimony add --as ivana --text "7 is a cancellation by the customer" \
    --about "orders.status = 7" --meaning "cancelled by the customer" --channel slack --permalink "https://…"
ekos testimony add --as ann --on-behalf-of "Ivana P." --answers <question-id> --text "…"   # a workshop answer
ekos testimony list --about orders
ekos testimony withdraw <id> --as ivana          # a new version; the newest wins
  • Text is redacted before it is held. Withdrawal never deletes: the ledger is append-only.
  • Testimony is evidence, not a decision. Answers cite it as "According to Ivana (Slack, 2026-11-10): …", and the review shows it next to the item it concerns.
  • A stated meaning that differs from what the code says becomes a testimony_mismatch conflict; the code's label is never overwritten.
  • [testimony] decides-for = ["ann"] lists people whose saved meaning is also their review decision on that item.
  • --probe attaches an aggregates-only probe the statement relied on; it is re-run and its counts stored as evidence.

The inbox

ekos inbox add spec.pdf --as ivana                        # stored for the next build
ekos inbox add https://wiki.example.com/page --as ivana   # fetched once as an HTML snapshot
ekos inbox add scan.png --as ivana --pending              # held until a writer accepts it
ekos inbox list --status pending
ekos inbox accept <id> --as ann                           # human-only
ekos inbox purge <id> --as ann                            # deletes the original

Originals live in <state>/inbox/, outside the ledger; ekos build compiles the accepted ones as the source inbox, through the local-documents connector: PDF, Word, HTML, Markdown, e-mail, and images, spreadsheets and slides through local OCR (Indexing Enterprise Applications). Every string is scrubbed of e-mail addresses and payment card numbers before the usual secret redaction.

  • [inbox] require-accept = true holds everything until accepted; by default only material from people without the write role waits.
  • A link is fetched over http(s), at most 3 redirects, and refused when the host resolves to a loopback, private or link-local address unless it is in [inbox] allow-hosts. Files are capped by [inbox] max-file-mb (default 25).
  • purge deletes the original. The compiled, redacted text stays in the ledger, and the command says so. Only inbox originals can be erased; plan for that if you must honour erasure requests.

In the web console

  • Inbox page: pending material, accept, purge (with the id typed).
  • Questions page: filter, reveal values live, record an answer heard elsewhere as the operator's own testimony, reassign, and "not me" for the addressee.
  • What people said on every entity panel.
  • Chat, Tell mode: say what you know. The model, with read tools only, proposes a card whose every line quotes your words; a line it cannot quote is dropped. Only the author's Save records it, with their own or edited text. Files and lone links go to the inbox.

Recording testimony needs the reviewer role, which an API token never holds.

Chat channels

Telegram (long polling), Slack (Socket Mode or the signed Events API) and Microsoft Teams (Bot Framework, JWT checked) run over one core in the console. Local mode works with Telegram and Slack without a public endpoint.

  • Linking. An unlinked account gets only the instructions: /ekos link returns a one-time code to enter on the console's Channels page while signed in.
  • Projects. Owners bind a channel or group to a project.
  • Permissions are the linked person's. In a group, an answer goes privately unless every member may see the whole project. A button counts only from the account it was sent to.
  • Digest. channels_digest_cron sends each person their questions with Answer and Not me buttons.
  • Secrets are named by variable, from the environment or the keychain; the service starts only when a channel's secrets are present. Nothing is sent from a public deployment.

For agents (MCP)

ekos_questions (what is not known, with status, priority and addressee) and ekos_testimony (what people said, by entity, author or question) are read-only and scoped. They exist so an agent can say what is not known before stating a conclusion. No MCP tool records testimony or answers a question.

Not yet: a run against live Telegram, Slack or Teams workspaces (the adapters are tested against the platforms' documented message shapes); turning a proposed description, synonym or rule into an annotation; quoting attachments in a proposal; a Slack modal or Teams task module for Edit (it is an /ekos edit message); voice messages.