Structured argumentation with accountable approvals. Text-based, LSP-powered, built for iterative development.
Every GitHub Release ships the same version of every package, for x86_64 and aarch64 Linux, x86_64 and aarch64 macOS, and x86_64 Windows.
- Command line. Download
inka-v<version>-<target>.tar.gz(.zipon Windows) from the release and putinka,inka-lsp,inka-evidence-rustandinka-evidence-mergeon yourPATH. With a Rust toolchain,cargo binstall inka-clifetches the same archive, andcargo install --locked inka-cli(orinka-lsp,inka-evidence-rust) builds from crates.io. - VS Code. Install
inka-project.inka-vscodefrom the Marketplace or Open VSX; it bundlesinka-lsp. The release also carries the.vsixfor Install from VSIX…. - Graph viewer. Built into
inka:inka serveneeds nothing else.--assets <DIR>serves a bundle you built yourself instead. - Test evidence adapters.
pip install inka-evidence(pytest, PyPI) andnpm install --save-dev @inka-project/inka-evidence(Vitest, npm); the Rust adapterinka-evidence-rustis in the command-line archive.
SHA256SUMS on the release lists every asset, and each asset carries a GitHub build provenance attestation
(gh attestation verify <file> --repo ut-issl/inka). RELEASING.md describes how releases are cut.
An inka project is a directory holding inka.toml and an argument/ directory of *.inka files.
This repository ships two of them, so everything below runs as written from the repository root:
tests/fixtures/aocs (a satellite attitude-control argument) and tests/fixtures/dogfood (inka's
argument for itself).
You need a Rust toolchain for the commands, and Node.js for the graph viewer in step 3.
check loads a project and reports every structural problem in it — undefined references, duplicate
ids, dependency cycles, a missing objective, nodes no objective reaches. A clean project says
nothing and exits 0.
cargo run -p inka-cli -- check tests/fixtures/aocsFindings are printed as annotated source snippets. Errors exit 1; warnings alone still exit 0.
To get an inka binary on your PATH instead of typing cargo run -p inka-cli -- every time:
cargo install --locked --path crate/inka-cliThe rest of this section uses that binary.
export writes the argument to standard output as cytoscape.js elements JSON — inka's machine
interface to the graph. The viewer is one consumer of it; anything that reads JSON is another, so
the built-in UI is never the only way to read an argument.
inka export tests/fixtures/aocs > aocs.elements.jsonEach node carries its id, discharge mode, namespace, interpolated description, tags, whether it is
an objective root, evidence target, deadline and attached comments; each edge points from a parent
to one child and carries that child entry's comment. The output is deterministic, so
it diffs cleanly between runs. An argument that fails check exports nothing.
The viewer is a static front-end bundle under web/ that inka embeds at compile time. Build it
once, then build inka again so it picks the bundle up:
cd web
npm install
npm run build
cd ..
cargo build -p inka-cliThis writes crate/inka-cli/web-dist, which the crate's build script compiles into the binary (so run
cargo install --locked --path crate/inka-cli after this step, not before, to get an inka with the viewer). A
release binary already carries it.
serve hosts the viewer and feeds it the argument. It is strictly read-only: nothing it serves can
change the argument, approvals, or any other state.
inka serve tests/fixtures/aocsOpen http://127.0.0.1:8080. The whole argument is laid out top-down with the objectives on top;
click a node to focus it with its direct parents and children, click a namespace badge or a list
header to focus that namespace, hover a node for its full description, and press Esc to return to
the whole view.
Useful flags: --port (default 8080), --host (loopback by default, so an argument under review is
not published to the network), and --assets <DIR> to serve a bundle from disk instead of the
embedded one. An inka built without the bundle still answers GET /elements.json, which is the
same JSON step 2 writes.
init lays out a new project: an inka.toml, an empty values.toml, and a starter argument in
argument/objective.inka — an objective resting on one fiat, which check and fmt --check accept
as it stands.
inka init my-argument --phases BBM,EM,FMThe directory is created if it is missing. The name defaults to the directory's name (--name
overrides it), and the first of --phases becomes the current phase (M0 alone by default).
init only ever adds files: it fails without writing anything when any file it would create already
exists.
check asks whether the argument is well-formed; eval asks whether it currently holds. It
reports how many nodes are established and, for each one that is not, why not. It exits 0 only when
every node is established, and --json writes the same result for other tools.
inka eval my-argumentA fresh project establishes nothing, because no one has approved it yet. review shows the targets
waiting for a decision and records decisions on them:
inka review --path my-argument --as alice --list
inka review --path my-argument --as alice premise --approve
inka review --path my-argument --as alice goal --decline --comment "state a real objective"Without --list or a target, review walks the queue interactively. The queue runs from the leaves
up, one subtree at a time, so a block comes after everything below it. Every decision is appended to
approvals/<approver>.jsonl and nothing is ever rewritten. An approval covers the content it was
given for, so editing a block makes its approval stale, and its parents' too, since they rest on its
contract. Each block with a stale approval goes back in the queue.
fmt rewrites every argument file in the canonical layout, and fmt --check lists the files it
would change and fails if there is one, which suits CI.
inka fmt my-argumentFor editing, the VS Code extension runs inka-lsp. It gives diagnostics
as you type, completion, hover, go to definition, find references, rename, inlay hints, approval code
lenses, and formatting with exactly the output of inka fmt.
docs/— the concept, the specification, and the design of each outputweb/README.md— the viewer's contract withinka export, and how to develop itinka <command> --help— every flag of a command
This repository uses prek, a faster drop-in replacement for pre-commit.
prek install --hook-type pre-commit --hook-type pre-pushIf you prefer pre-commit, substitute pre-commit for prek in the command above.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.