Skip to content

PointSav Documentation

The engineering library for the PointSav platform — operating systems and services for regulated businesses that own their data, their AI, and their record-keeping outright. Where the monorepo holds the code, this wiki holds the reasoning: architecture, services, security, and the governance commitments that bind future development.

Deploy a knowledge instance

← All revisions

7c75aa67 · PointSav Digital Systems ·

feat(track-b): real Track B pipeline on Self-hosting guide group — Pool 1/2/3 extraction against origin/main found 3 of 4 guides had fabricated APIs/CLI (pointsav-gateway doesn't exist, doorman.toml doesn't exist, knowledge.toml schema was wrong), fresh-drafted all 4 against schema-guide.yaml and real source, new self-hosting category (kind: guide) in categories.yaml. Single-model (Fable/Opus session cap hit) — ES pairs' category: field updated, content parity deferred.

View the full record as of this revision →

@@ -0,0 +1,111 @@
---
schema: foundry-doc-v1
title: "Deploy a knowledge instance"
slug: deploy-knowledge-instance
short_description: "Deploys an instance of app-mediakit-knowledge from a local content path: write a knowledge.toml [site] + [[mount]] configuration, build the binary, and start it with the serve subcommand."
category: self-hosting
content_type: how-to
type: how-to
quality: complete
status: active
audience: "Engineers (hands on keyboard); customer operators"
last_edited: 2026-08-04
editor: pointsav-engineering
paired_with: deploy-knowledge-instance.es.md
---

## Prerequisites

- The `app-mediakit-knowledge` binary built from the monorepo (see [[install-toolchain]])
- One or more `media-knowledge-*` content repository clones on the deployment host
- A deployment port not occupied by another service (default `127.0.0.1:9090`)
- A terminal session on the host

## Purpose

A knowledge instance is a running deployment of `app-mediakit-knowledge`, the engine that serves the platform's documentation and project wikis. Deploying one means writing a `knowledge.toml` that names a `[site]` and at least one content `[[mount]]`, then starting the binary against it with the `serve` subcommand.

## Procedure

1. Locate or clone the content repository you want to serve:

   ```
   ls ~/Foundry/clones/project-editorial/media-knowledge-documentation/
   ```

   If it isn't cloned yet:

   ```
   git clone git@github.com:pointsav/media-knowledge-documentation.git
   ```

2. Write `knowledge.toml`:

   ```toml
   [site]
   title = "PointSav Documentation"
   brand = "pointsav"            # "pointsav" or "woodfine" — selects the token set
   bind = "127.0.0.1:9090"
   instance = "documentation"    # "documentation" | "projects" | "corporate"

   [[mount]]
   path = "/path/to/media-knowledge-documentation"
   role = "primary"              # the primary mount is editable; others are read-only
   ```

   `[site]` fields other than `title` all have defaults (`brand` → `"pointsav"`, `bind` → `"127.0.0.1:9090"`, `state_dir` → `/var/lib/local-knowledge/state`) — set them explicitly only when they need to differ. `[[mount]]` is repeatable; a second, read-only mount is how a single instance federates content from another archive (see [[use-knowledge-mounts]]).

3. Build the binary, if you don't already have one:

   ```
   cd ~/Foundry/clones/<your-archive>/pointsav-monorepo
   cargo build -p app-mediakit-knowledge --release
   ```

   The binary lands at `target/release/app-mediakit-knowledge`. Copy it to the deployment host if that's a different machine.

4. Start the instance:

   ```
   app-mediakit-knowledge serve --knowledge-toml knowledge.toml
   ```

   `--knowledge-toml` can also be supplied via the `WIKI_KNOWLEDGE_TOML` environment variable, which is the form a systemd unit typically uses. A sibling `check` subcommand (`app-mediakit-knowledge check --knowledge-toml knowledge.toml`) validates the configuration and content without starting a server — useful as a CI gate before deploying a config change.

## Expected outcome

The instance binds to the address in `[site].bind`, reads Markdown directly from every mounted path, and serves the wiki. Content edits in the repository appear on the next request — there is no build or reindex step between an edit and it showing up.

## Verification

Fetch the home page:

```
curl -s http://127.0.0.1:9090/ | head -20
```

The response should contain rendered HTML from the mount's `index.md`. Fetch a category page to confirm routing:

```
curl -s http://127.0.0.1:9090/category/architecture | grep '<title>'
```

If a page 404s, confirm the `path` in `[[mount]]` points at a directory that actually contains the expected category folder, and that `knowledge.toml`'s `check` subcommand passes cleanly first.

## Rollback

Stop the process (or `systemctl stop` the unit, if running as one). No state is written outside `state_dir`; removing or reverting `knowledge.toml` and restarting returns the instance to its prior configuration. The content repository itself is untouched by serving it — reverting a bad content edit is a normal `git` operation in that repo, not a deployment rollback.

## Next steps

- [[use-knowledge-mounts]] — mount a second, read-only content repository into this instance
- [[federate-archives-via-content-mounts]] — serve content from multiple archives through one instance
- [[self-host-a-deployment]] — the broader appliance-image deployment path this instance can run inside

## See also

- [[app-mediakit-knowledge]] — the wiki server architecture and the three-instance model
- [[use-knowledge-mounts]] — mounting content from multiple repositories into one instance
- [[install-toolchain]] — building the binary from the monorepo source
- [[self-host-a-deployment]] — the broader deployment procedure of which this is one component
- [[federate-archives-via-content-mounts]] — how to serve content from multiple archives in one instance
Important Information

Corporate structure. PointSav Digital Systems ("PointSav") is currently a trade name of Woodfine Capital Projects Inc. ("Woodfine"), planned to become a wholly-owned Woodfine subsidiary upon incorporation. PointSav does not itself offer, sell, or solicit any security. Any securities offering associated with Woodfine's real-property direct-hold solutions is made exclusively by Woodfine, and only by means of the applicable Private Placement Memorandum.

No investment advice. This wiki's content is provided for engineering, operational, research, and development purposes. Nothing on this wiki constitutes investment advice or a solicitation to invest in any Woodfine partnership or direct-hold solution.

Intellectual property. The PointSav name, trade name, wordmark, and marks, together with all current and future PointSav- and Totebox-branded products, services, and offerings — and the software, source code, documentation, design system, and all related materials — are proprietary to Woodfine and its affiliates, except for components identified as open source. No rights are granted except as expressly set out in a written license or agreement. The full trademark notice appears in the footer of every page on this site.

Open source components. Portions of the platform are made available under permissive open-source licenses identified in the accompanying repository. Use of those components is governed by their respective license terms.

No warranty; informational use. Content on this wiki is provided for general informational purposes only and does not constitute a representation, warranty, or commitment with respect to product functionality, availability, pricing, or roadmap. Some articles describe planned or intended features, capabilities, and milestones — language such as "planned," "intended," "targeted," "may," and "expected" marks this forward-looking content, which is subject to change and does not constitute a commitment regarding future performance.

Confidentiality. Where an article describes an operational or deployment detail that is not intended for public disclosure, that article is not published on this wiki. Content here is general-purpose engineering documentation, not customer-specific configuration.

Jurisdiction. Woodfine Capital Projects Inc. is organized in British Columbia, Canada. References to the Sovereign Data Foundation on this wiki describe a planned or intended initiative only, not a current equity holder or active governance body.

Changes to this notice. PointSav may update this notice from time to time; the version posted on this page governs.

Not a filing system. This wiki is not a securities filing system, an electronic disclosure repository, or a substitute for SEDAR+ or any other regulatory filing system. Formal securities filings are made through the applicable regulatory filing system, not through this wiki.

Full disclaimer. This notice supplements, and does not replace, the full Disclaimers article. In the event of any conflict, the full Disclaimers article governs.

Read the full disclaimer →