Skip to main content
Glama

Sekundanten

For teachers and pupils: install version 0.0.31

From “What Sekundanten Is For” in methodology/foundation.md:

Sekundanten aims to support learning by scaffolding selected actions of the learner. It supports her in developing her understanding of subject content and making it last, her omdöme, and her capacity to direct and regulate her own learning when she works with AI; over time, it also aims to support how her relation to the subject and to herself as a learner develops.

These are aims, not effects: nothing here shows that working with Sekundanten brings them about, and nothing you say to her should claim it.

The local MCP server validates and delivers authored method texts to your AI chat. You choose a folder for your work and decide what to keep. The program saves when the AI says you decided to save; it does not ask you again. New Markdown texts start with information about the AI's understanding of who wrote each passage and any sources you named. This is not proof of authorship. Older saved texts can be read without their old header or markers. They are read only: when you ask, the AI can save the visible text as a new file, with the original left unchanged. See the saved-text format.

An imported file keeps its original bytes and normally gets a small .ps.json file beside it, recording when it was added and a file fingerprint, no content. A hand edit may be noted in the log only when something is saved later, and may not be noted at all. Reading adds no such event.

A course holds the work you do in that course. Courses set up from 0.0.19 on have method, context, manifesto (with earlier), saved (with intentions), notes, texts, material, finished, hand-ins, journal, reflections and _system (with logs). Earlier courses keep their Swedish folder names and work as before; nothing is moved or renamed. The study-folder level stays kurser, mallar, min-riktning, portfolio, Eget material and Osorterat. The course's journal is your own writing; Sekundanten's operations journal is separate, under the study folder's _system/own-work/journal.

You can ask the AI to create a folder in a course, optionally saying what kind of folder it is, and to list a course's folders by kind and date (up to 100 entries per folder, newest first among those it checks; for this list it checks up to 2,000 entries in a folder and opens up to 200 of your own folders, and says when it has left some out). The list tells you when there are more entries or a kind has no folder. Listing changes nothing. A folder without a kind works as before. If its kind cannot be recorded, the folder stays and the reply says so.

Eget material holds texts you want to use across courses and remains the default when no course is selected.

Each course protects its own reserved folders: _system, method, context and manifesto in a new course; _system, metod, kontext and manifest in an earlier one. Use the same Sekundanten version on every computer that shares a study folder. In a study folder set up by 0.0.20 or later (its mallar folder has subfolders such as processes), Sekundanten 0.0.19 can read files and can create a course, which then gets only ten method texts, but it refuses to save your work, at the study-folder level and in every course. Sekundanten 0.0.19 was a test candidate that was never released. This was tested with 0.0.19; earlier versions were not run and are expected to behave the same. In a study folder set up before 0.0.20, earlier versions read and save as before. There, versions before 0.0.19, including the released 0.0.16, can also save into the method, context and manifesto folders, and their subfolders, of courses created by 0.0.19 or later, which 0.0.19 and later keep closed. There is no tool for copying course work into Eget material yet. See the course saving guide.

For now, Sekundanten is only for pupils aged 18 and over. Connecting the service is the teacher’s act.

See the glossary for product words and the method's structure.

This is a test version and can contain faults. To report a problem, open an issue in this repository without learner data; for a security problem, follow SECURITY.md. It is intended for real study work; the teacher and pupil are responsible for the material they use. It is licensed under PolyForm Noncommercial 1.0.0.

Status and maturity

Sekundanten is a trial version below 0.1.0. Automated checks exercise method delivery, study-folder setup, reading, saving and logging on fabricated data. Local checks run on macOS; Linux and Windows results apply to their named versions and code. A manual Windows 11 test-suite run of 0.0.28's code passed. The 0.0.28 Windows test bundle was installed and used through Claude Desktop on Windows 11 Home with a standard account on 25 November 2026. This does not establish full readiness. No GitHub Windows run of 0.0.28 or NOVA trial is established. A test-suite pass does not establish client or bundle readiness. See the validation evidence for platform results and limits.

The full Windows 11 run of 0.0.29 on 26 November 2026 had four failures: three involving long or temporary-shaped course folder names in course-own-work, and one involving a course name of 64 emoji. 0.0.29 was not released. Both test files passed when run alone. An earlier full Windows 11 run of 0.0.30 code, before the test corrections, had 36 failures among 2,793 tests: 24 in packaging, nine in usage logging and three recurring course failures. The packaging fixtures now retain npm's original cache location while isolating service usage data. Usage tests now assert Windows paths, pointer placement, held-directory rename refusal and the separate usage folder's creation and timing.

A later full Windows 11 Home run under a standard account, without Python, of the 0.0.30 code (unchanged in 0.0.31) with the test corrections had 2,817 tests: 2,610 passed, 3 failed, 204 skipped and 0 cancelled; the basis suite had 448 tests, 0 failed and 93 skipped. The failures were the recurring course-own-work cases. That file passed when run alone (88 tests, 0 failed). The three failing cases concern course folder names on Windows, as in 0.0.29. It is not yet known whether the cause is in the tests or in Sekundanten. Until this is settled, use a short, ordinary course name on Windows and report a refusal in an issue. This is test-suite evidence for that code only and does not establish bundle or client readiness.

Route

Recorded tests on macOS and Windows

A: Claude Desktop bundle

macOS: not yet tested. Windows: tested with the 0.0.28 test bundle on 25 November 2026 (installed and used; not full readiness).

B: GitHub source installation

macOS and Windows: not yet tested.

Earlier observations without both a full version and a date are not counted in this table. Automated test-suite results are separate evidence and do not establish that an installation route works in the intended client.

Claude Desktop bundles on macOS and Windows

The release can provide an installation file for each platform. The Windows file ends -windows-test.mcpb and is for testing only. If a release has no attached installation file, ask your teacher to use the GitHub source installation.

  1. Ask your teacher to set up Sekundanten with you. It is for pupils aged 18 and over. The teacher follows the installer checklist and gives you the installation file for your computer.

  2. If you are updating: on Windows, first copy elsewhere any old usage-log files you want to keep: the usage-….jsonl files in the logs folder under your state folder (by default %USERPROFILE%\.local\state\sekundanten\logs) and its subfolders, and usage-export.jsonl if there is one. Sekundanten may delete them at its first start without copying them. Then, on every computer, uninstall the earlier Sekundanten extension, because installing over it can leave the old version running without a message.

  3. Open Claude Desktop Settings → Extensions and install the file there. On Windows, do not double-click the file; that does nothing. Both files are unsigned, so Desktop shows a publisher warning.

  4. Read the usage-log warning. Developer mode starts ticked in this test version: it keeps a local log of tool use and kinds of document change, without what you write or file names. Nothing is sent automatically. Untick it if you do not want this log.

  5. Quit Desktop completely and reopen it: on Windows use the tray icon → Quit (closing the window is not enough); on macOS choose Quit from the Claude menu or press Command-Q. Open a new chat and ask “Start Sekundanten and tell me its version.” Check that it says 0.0.31 and explains the logging choice. Then choose your study folder on the computer’s own disk.

Method texts in this release

Sekundanten gives the AI 36 method texts. Each keeps its own version and status, such as draft. Method-text versions are separate from the software version.

Data and privacy

Developer mode starts selected in the Desktop bundle’s installation settings in this test version. Read its usage-log warning; untick it if you do not want this log. New source-installation examples also choose it explicitly. It keeps a usage log without text, file names or paths; entries older than 30 days are removed when Sekundanten next starts or records activity. Sekundanten sends nothing automatically. Replies can carry a weekly reminder explaining how to ask for an export and send the file yourself. The local reminder contains no log-folder path. In a box, the administrator selects the mode, logging waits for your confirmation of the notice in the direct connection, and you can stop it there and remove your earlier usage entries. You can ask for a local usage-log export and choose whether to send it yourself. See the usage-log details.

The gatekeeper is the optional file-checking service for pupil data in material imports. It is not connected in this test version.

The connected AI can read files in your chosen workspace, apart from internal service files. With no gatekeeper running, otherwise valid material imports are accepted and marked unscanned, with the fixed notice in Swedish and English. The teacher and pupil are responsible for the real data they choose to use. This notice informs without blocking an import.

If you close the chat or the app while a save is being sent, it may never reach Sekundanten. If saving has already started, it may finish even though you see no reply. A missing reply therefore does not tell you whether the text was saved. Reopen the chat, ask the AI to read the file and check the same save id before deciding to save again. A confirmed reply means that the file was saved; the file in your folder remains after closing the chat or app. Text held only in the chat, including an unsent draft, can be lost when you close it, or in a crash or restart. Keep a separate copy of a draft you need to retain.

A program already running on your computer could deliberately swap a folder for a symbolic link between Sekundanten’s check and its write. Your text could then be written somewhere else. This requires a program deliberately making that swap. The gap is not fixed in this release.

After deletion, the file name stays in the event log until the older log file is replaced at a later rotation, and in an import’s or creation’s record until that operation is replayed; no document text stays in either.

Course creation, saves, edits and new folders are recorded in that course's _system/logs/events.jsonl. Other changes use the study folder's _system/logs/events.jsonl. All tool calls, including reads, still use the study folder's _system/logs/calls.jsonl. These logs hold acts, outcomes, codes, identities and relative paths, never document text, call arguments or replies. A file name may be logged: do not put pupils’ names in file names. Each event and call log rotates at a 1 MiB threshold and keeps one older file, replaced at rotation; several running copies can exceed the threshold, and no fixed aggregate size or age bound is enforced. Logs stay on your computer and are never sent out automatically. Your own view of the log lines will come later.

The list of delivered or shown method texts normally stays in the study folder's _system/logs/delivery.jsonl, separate from Eget material. An optional course selection on a method preparation or read puts that row in the course's _system/logs/delivery.jsonl instead. If the course cannot be verified or its log cannot be written, the text still arrives and the row falls back to the study log. The reply says whether it was tied to the course. This delivery log travels with the course folder if you share or move it. It records identifiers, versions and hashes, never method bodies or your text. Its older files are retained. The client settings under For developers put separate technical diagnostics in logs under the resolved state folder, outside the installation and known workspace roots. Your chat client and its model provider handle conversation and tool-result retention separately.

Photograph metadata, including Exif and GPS, is stored unchanged when you import a file. A photograph over 1 MiB is refused.

Imported names retain their extension only when it is on the fixed list of ordinary document, image, audio, video and data extensions, or matches the declared media type. Otherwise the declared type’s extension is appended (for example, k.zip.bin for an opaque k.zip import); names without an extension stay unchanged. Control and format characters, including bidirectional controls, are refused.

Related MCP server: learndeck

For developers

Teacher and installer checklist

Choose the installation file for macOS or Windows from the release page. Compare its SHA-256 with the value on that page: on macOS run shasum -a 256 <downloaded-file.mcpb>; in Windows PowerShell run Get-FileHash -Algorithm SHA256 <downloaded-file.mcpb>. If the values differ, do not open the file; download a fresh copy from the same release page and compare again. If it still differs, use the GitHub source installation.

Use Node.js 24 for production (24.11 minimum). Later major versions are allowed by the package but have not been checked. MCPB 2.1.2 says Claude Desktop includes Node.js, without promising Node 24. If Desktop’s built-in Node is older, install Node 24 and ensure Desktop launches that runtime; installing Node alone does not establish which executable Desktop uses. The compatibility declaration does not install or upgrade Node. If Desktop cannot select a suitable runtime, use the source installation with the full path of your Node 24 executable. See the runtime guidance.

Show the usage-log warning at installation and keep the person’s choice: Developer mode starts ticked; it can be unticked. Follow the five bundle steps, including a complete quit and a version and logging-notice check in a new chat. Both bundles use the local client route and keep diagnostics under the state folder. The Windows file is for testing only. A successful build or SDK smoke check does not establish that the extension works in Desktop.

The release build uses a checkout of its candidate. The maintainer can build there with npm run package for macOS and npm run package -- --platform win32 for Windows.

Developer installation from GitHub

Clone the repository and build it with the following steps. Read the usage-log warning. The generator in the launch guide enables developer mode on macOS and Windows and writes false on Linux; it accepts either explicit choice. On Linux, use "--developer-mode", "false" unless you deliberately turn the log on. Use false on any platform if you do not want the usage log:

  1. Install Node.js 24 for production (24.11 minimum). Later major versions are allowed by the package but have not been checked. On macOS, placement local-macos uses only the Node lock and refuses saving if its runtime check or native open fails; direct launches with the default --writer-lock auto may fall back to Python; Windows saving uses Node and does not need Python; Linux uses the Python helper. On Linux, check Python 3 with python3 --version. Linux also needs procfs mounted and access to /proc/self/fd: saving uses an open folder handle and refuses with WRITER_UNAVAILABLE if that route is unavailable. See the validation evidence for the Windows Server suite, the Windows 11 trial and Linux. Automated results apply only to their named candidates. Windows support is still being tested.

  2. On Windows, before you install or first start the new version, copy elsewhere any old usage-log files you want to keep: the usage-….jsonl files in the logs folder under your state folder (by default %USERPROFILE%\.local\state\sekundanten\logs) and its subfolders, and usage-export.jsonl if there is one. Sekundanten may delete them at its first start without copying them. Clone the repository and build it:

    git clone --branch v0.0.31 https://github.com/tikankika-projects/sekundanten.git sekundanten
    cd sekundanten
    npm ci --ignore-scripts
    npm run build

    The final sekundanten argument on the git clone line names the destination folder. If you choose another name, use it in the cd command too.

  3. Quit your AI client completely before editing its MCP settings. In Claude Desktop on Windows, use the tray icon → Quit; closing the window is not enough. On macOS, choose Quit from the Claude menu or press Command-Q. On Linux, stop every earlier Sekundanten copy before upgrading. Add Sekundanten to your AI client's MCP settings as a local connector named Sekundanten. The example below uses Claude Desktop's configuration format; see the client setup guide for its configuration location. Replace <installation> with the full path of the folder you just built, without ~ or shell variables. If your client cannot find node, use the full path of your Node executable:

    On Linux, set "--developer-mode", "false" in the JSON example below unless you deliberately choose to turn the usage log on. The example shows the macOS and Windows choice.

    {
      "mcpServers": {
        "Sekundanten": {
          "command": "node",
          "args": [
            "<installation>/dist/index.js",
            "--mode", "local",
            "--bundle", "<installation>/method-manifest.json",
            "--developer-mode", "true"
          ]
        }
      }
    }

    If your entry is still named sek, remove it after adding Sekundanten, keeping every other connector. In your own local AI-client entry, remove an installation-local --log-dir and the following folder path; diagnostics then use logs under the resolved state folder. Shell, bridge and box launches still need an explicit external diagnostics directory. On Windows, follow the log-copy step above before you install or first start the new version. Keep the warning about supplied log folders in mind. On macOS and Linux, the state default changed in 0.0.11, which was not released separately. If you are upgrading from 0.0.10 or earlier and want to keep the former ~/.local/state/sekundanten state folder, set SEKUNDANTEN_STATE_DIR to its full path as explained below. From 0.0.12 on, including 0.0.16 and 0.0.20, no state-setting change is needed. The Windows state default is unchanged. Keep using your study folder unless Sekundanten says at start that it uses an earlier save-record format. Only then set up a new folder and copy your material into it; leave old internal records and markers behind. There is no conversion or migration of earlier save history. Keep the old folder until you have checked the copies. Follow the upgrade procedure for an existing clone or ZIP installation.

  4. Start the client again, open a new chat and ask the AI to call sekundanten_start; check that server.version is 0.0.31. The AI is instructed to tell you Sekundanten is a test version and help you choose your folder. Keep any other entries in your client's settings.

  5. After upgrading Sekundanten in Claude Desktop, if the chat says a tool does not exist, open Settings → Connectors → Sekundanten. Set each tool group to Needs approval, then back to Always allow, and start a new chat. This brought the 9 hidden tools back in the upgrade trial.

On every platform, 0.0.13 names a connected study folder with recognised earlier save-record formats at start and in its folder descriptions. When you ask to set up a new folder, it proposes an unused sibling named after the old folder plus a number, such as Study 2. Check the path and confirm it, or choose another place. These checks and proposals leave the old folder unchanged. New call and method-delivery log entries are not written there; method support and file reading remain available, and separate technical diagnostics continue. Recognition is bounded: an inconclusive check does not label a folder as older. Folders with current format-2 records remain compatible even if their software-version label is 0.0.9 or 0.0.10; set up a new folder and copy your material only if Sekundanten says at start that the folder uses an earlier save-record format.

Windows support is still being tested. Follow the Windows set-up guide. Store-installed apps keep a separate copy of AppData, so the Windows state folder is under your user folder; SEKUNDANTEN_STATE_DIR may choose another folder outside AppData.

On macOS and Linux, the state folder is $XDG_CONFIG_HOME/sekundanten when XDG_CONFIG_HOME is set, otherwise ~/.config/sekundanten. On Windows it remains %USERPROFILE%\.local\state\sekundanten. SEKUNDANTEN_STATE_DIR overrides either default. Since 0.0.12 (including the changes from 0.0.11, which was not released separately), Sekundanten uses this macOS/Linux default without an override and ignores the old ~/.local/state/sekundanten folder: it reads and moves nothing there. The advice to set an override to keep that old folder applies to upgrades from 0.0.10 or earlier; from 0.0.12 on, including 0.0.16 and 0.0.20, no state-setting change is needed. A fresh state folder has no remembered parent or workspace, so choose them again. Keep the same resolved state folder on every connection that uses the workspace.

See Known limitations in 0.0.31 for remembered folder connections, save IDs and full folder paths. Save journals use text-free format 2 and current route evidence. Keep using your study folder unless Sekundanten says at start that it uses an earlier save-record format; only then create a new folder and copy your material, leaving old internal records behind. Earlier save history is not migrated or promised available. Keep the old folder while checking your copies. Replays never recreate deleted files.

What the server does

From “What Sekundanten Is For” in methodology/foundation.md:

Sekundanten aims to support learning by scaffolding selected actions of the learner. It supports her in developing her understanding of subject content and making it last, her omdöme, and her capacity to direct and regulate her own learning when she works with AI; over time, it also aims to support how her relation to the subject and to herself as a learner develops.

These are aims, not effects: nothing here shows that working with Sekundanten brings them about, and nothing you say to her should claim it.

The local MCP server validates and delivers authored method texts; the model interprets the situation with the learner. The production trial supports a chosen study folder, workspace reading, explicit saves of the learner's own work and bounded diagnostic logging. The selected-source and text-review experiments remain separate profiles. NOVA is an optional companion service that can read the learner's workspace.

Try the working server

Use Node.js 24 for production (24.11 minimum) and npm. Later major versions are allowed by the package but have not been checked.

npm ci --ignore-scripts
npm run check
npm run demo

Node 22 is below this release’s minimum requirement of Node 24.11; use Node 24 for production (24.11 minimum). Later major versions are allowed by the package but have not been checked. After building, the native Windows check is:

node --test tests/windows-smoke.test.mjs

The check uses fabricated data, a temporary home and state directory, and external temporary diagnostics. On pushes and pull requests to main, the prepared GitHub Windows workflow runs the full suite only on the newest Node 24, with a short start-up test at the declared Node floor. Manual dispatch can select Node versions and test files. The full-suite jobs list every skipped test and retain the results as artefacts; see the Windows test instructions. It is skipped on other operating systems. See the platform boundaries for Windows link, privacy and durability limits, and the saving requirements for platform-specific runtime requirements.

The demonstration launches the compiled server through an actual MCP stdio connection, discovers the three method tools, obtains a complete bundle and checks its diagnostic log. It prints the delivered fixture texts, versions, hashes, number of log entries and whether diagnostics were recorded. The texts are explicitly fabricated for software testing. No model service is called, and no learner conversation is tested.

To connect an MCP host to the same fixture, use node as its command and these arguments, replacing the installation placeholder with the repository's absolute path:

{
  "command": "node",
  "args": [
    "<installation>/dist/index.js",
    "--bundle",
    "<installation>/examples/delivery-fixture/manifest.json"
  ]
}

Absolute and relative --bundle paths both work; relative values are resolved from the installed package root, regardless of the client’s starting folder. For --log-dir, use a full canonical path to a private directory outside the package and all known workspace roots, without symbolic links. Checkout-local diagnostics are refused. Use the direct Node command in host configuration. The server reserves stdout for MCP messages. It reports start-up failures on stderr and exits unsuccessfully.

--route client is the default for an AI client; --route shell selects a direct shell consumer. --connection-mode local-stdio is the default; a bridge must explicitly use --connection-mode bridged. These are trusted launch options, independent of the existing local or box serving mode and the --client-label recording label. Requests, client metadata and labels cannot select or promote a route. Describe reports route and connectionMode.

--client-label accepts any provisioned label of 1 to 64 lower-case ASCII letters, digits and hyphens, starting with a letter. A malformed supplied label refuses start-up. Use a program label, never a person's name, account or credential. A supplied label wins over MCP clientInfo.name unchanged. The shell route and every box route require it. On a local client route only, it may be omitted: Sekundanten uses clientInfo.name, lower-cases ASCII A–Z, replaces each run outside ASCII letters, digits and hyphens with one hyphen, discards leading characters until the first ASCII letter and trailing hyphens, truncates to 64 characters and removes trailing hyphens again. If nothing remains, it uses unknown-client. This fallback is self-reported and its distinctness is best effort. The former --client option is no longer accepted.

Only the client route in local-stdio connection mode offers set-up, upgrade, context and course actions. Host questions additionally require the client's form elicitation capability. Shell consumers and bridges never advertise elicitation; even if they claim it, these actions are absent from their inventory and declarations. In this release, the shell reader is attach-only: connect it to a folder already prepared through the local client route, inspect its declarations and read its files. Interactive shell forms for editing, including operationIdField and bound follow-up actions, are deferred to a later release. The native reads, saves, operation lookup and material_add_sek tools remain callable by consumers that implement their request contracts; their presence does not establish support for an interactive shell form. Box mode remains read-only on either route. Before a folder is set up, shell describe says so; choose or create the folder through the local client route. Sekundanten's gate is not running on either route: imported files remain unscanned, and no gateOverride or override action is declared.

The shell route requires SEKUNDANTEN_SHELL_CREDENTIAL_FILE to name an external credential file by its absolute canonical path. The launcher provisions it locally; the operator provisions it on a box. Use a fresh cryptographically random credential for that route and session, at least 32 bytes excluding one trailing LF or CRLF, at most 4096 bytes including that newline. The service checks the file's form, permissions and place; it does not compare its contents with a trusted secret value. Under the current contract, anyone able to launch the program with --route shell can create a file that passes these checks. It supplies no person role or gate override. Never put the credential value in arguments, client configuration, logs or requests.

Keep the file owner-only, regular and without symbolic or hard links, outside the package, state folder, remembered allowed root and bound workspace. The service checks both a root supplied at launch and the remembered root, including a later choice made by another process. Before an allowed root has been chosen, it checks the package and state folder; keep the credential outside wherever she later chooses as well. The full file and permission checks run once before MCP. On Windows, remove ACL inheritance and grant access only to the current user; the trial guide gives the PowerShell commands. Windows PowerShell checks that ACL once at launch. Subsequent calls and workspace refreshes check the roots and unchanged file identity and metadata without reading its contents or running PowerShell. A failed session check says in Swedish and English that the credential is no longer valid and nothing was done, refusing each subsequent tool call and effect: none, before reads or saves.

An absent, invalid, short, oversized, linked, shared or misplaced credential refuses the requested shell launch before MCP with SHELL_CREDENTIAL_INVALID and fixed Swedish and English text. It exposes no inventory and does not downgrade the route; the client route is a separate launch. ps-launch.json now declares schema version 2, with describe_workspace_sek, the literal state name sekundanten, complete client and shell routes and external {logDir} provisioning. Its describeTool names the shell and box entry; local-client inventories omit it. Every shell route and every box route requires the declared file credential; only a local client route uses none. Box mode follows its provisioned state pointer and remains read-only, with no workspace argument. No local route argument contains a workspace location. On the shell route and in box mode, describe declares declareAmendment: "0.0.19" before and after set-up, with the gaps below. It supplies the configured serviceMode: "ordinary" or "developer" from src/service-config.ts, on the shell route and in box mode. The explicit install or launch setting selects it; set-up asks no mode question. The local/box serving mode is a separate setting.

The call log has no enforced total byte limit or retention period. On your own AI-client connection without a launcher, Sekundanten checks diagnostics against the package, the remembered parent and the connected study folder, but cannot observe every folder open in the AI client. Complete checks need an explicit, non-empty list of absolute visible folder paths. Sekundanten still accepts an empty list and checks only its known roots, so it cannot promise that diagnostics are outside an unreported client folder. No file or folder deletion operation is offered.

personView points at exact text supplied in the same reply. Shell and box describe replies select the description once connected or the set-up sentence before a folder exists; save replies select the saved-file sentence, and refusals select their existing plain reason. Folder declarations in describe remain available in its generic view. On the shell route, complete Markdown file reads offer a rendered body alongside unchanged content; native own-work reads retain source in document.content beside document.body. Client read replies carry no additional body or document hint. Only a parsed native SEK metadata mapping is omitted from the additional body representation; other Markdown renders the complete content. Frontmatter supplies no service facts. Source and technical fields remain reachable, and rendering must execute no HTML or script and fetch no embedded resources. Other files and partial reads use the generic view. These preferences need a compatible client; automated checks do not certify its renderer. Developers can inspect the declaration checks for the tested response fields and remaining gaps.

The multi-process checks exercise reads, concurrent saves, conflicts, replay, recovery and log rotation through separately launched local connections. They cannot complete the session-bound confirmation steps for workspace setup and upgrade. The separate server process test exercises competing confirmed initialisations and upgrades, pointer visibility, writer exclusion and killed writers. Concurrent rotation may replace older rows; there is no fixed aggregate retention guarantee. These checks do not certify an integrated AI client or read-only box release.

Choose placement local-macos for macOS (Node 24), local-windows for Windows (Node 24), local for Linux (Node 24 and Python 3), or box for the read-only box (Node 24). The schema has no operating-system selector or optional runtime: the operator chooses the matching placement. The local-macos and local-windows routes pass --writer-lock node-only; Windows always uses its Node backend. On macOS, an inconclusive or failed Node lock check, or a failed native open, refuses saving with WRITER_UNAVAILABLE instead of starting Python; contention retains WRITER_BUSY. Reading remains available. Direct launches default to --writer-lock auto, which may fall back to Python 3 on macOS. Technical diagnostics use a separate file for each running copy on every platform, without a cross-process lock or Python helper; box reads do not require Python. Windows saving uses a share-denying open and does not need Python. A scanner or another reader can hold the lock file for a moment, so wait and retry if the folder is busy. Cloud folders and network drives remain unsupported. See the Windows validation evidence.

On local method-delivery launches, the AI receives surfaces.instructions from the launched manifest. Local-client production instructions fetch the opening notice and version from sekundanten_start; its reply also supplies workspaceRef and dataLocationText. Experiments without start carry the supplied notice directly. Shell instructions still fetch the notice from describe_workspace_sek. Shell and bridged launches append one fixed sentence saying that set-up, upgrade, context and course actions are unavailable. Box launches retain their separate read-only guide naming describe, tree and file reads, directing an unconnected folder to the administrator, and giving the notice instruction and read-only restriction. The manifest supplies the guidance on discovery, set-up confirmation, saving her own text, files she places in Osorterat and method replies as one text block.

If the AI does not hold a file’s exact bytes from the client, it asks you to put the file in Osorterat yourself. The AI must never retype or re-encode a file. Strict base64 remains available for clients that send exact bytes. A file you place yourself has no entry in the event log; later reads can still appear in the call log. Saving your own text through own_work_create works as before.

Making content intelligible experiment

This separately labelled profile delivers the complete unchanged Foundation, Appropriation and Making Sense bodies together with actual wording from one operator-selected source. It does not change the production method declaration. The experimental declaration uses purpose experiment and an initial method bundle instead of the product Entry text. The same file, version, hash, dependency and body validation applies.

The method texts are under methodology/. Do not substitute text or update declared hashes to overcome a mismatch. The authored-method integration test skips when the texts are absent; that skip is not evidence of actual method delivery.

After building, select a whole UTF-8 .txt, .md or .markdown file of at most 1 MiB. Keep local source material under the ignored .dev-local/ directory and diagnostics outside the package and workspace roots. Each launch keeps its own file within the supplied directory. Launch from this checkout root with an explicit private diagnostics directory:

sekundanten_logs="${SEKUNDANTEN_STATE_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/sekundanten}/logs"
mkdir -p -m 700 "$sekundanten_logs"
chmod 700 "$sekundanten_logs"
node dist/index.js \
  --experiment making-content-intelligible \
  --source "$PWD/.dev-local/content.md" \
  --source-origin "Course material, chosen revision" \
  --log-dir "$sekundanten_logs"

Replace the source path and origin with the intended material. The file and its parent path must be free of symbolic links; use the canonical path where the operating system supplies an alias. The operator selects the source at launch, never through model-supplied tool arguments. The origin is an operator-provided description, not independently verified authorship. The launch hash identifies the selected bytes; source identity combines that hash, origin and whole-file scope. There are no partial bounds or hidden surrounding-content fetches. Select a file containing enough relevant context, or relaunch with a different whole source.

content_read takes an empty object and returns actual source wording, origin, identity, SHA-256, byte count and whole-file scope alongside the complete core method bodies and factual capabilities. Source wording is quoted subject material: instructions inside it do not override the trusted method, runtime limitations or the learner's request. The current question stays in conversation; changing it requires no goal form, attempt, ability label, assessment, save or component ceremony.

The source is checked against its launch hash on each content_read. A zero-byte file returns status empty and an empty body. A missing file returns SOURCE_MISSING; a changed file returns SOURCE_CHANGED; unsupported files and unreadable material return explicit invalid/unavailable errors. No stale source body is returned. Relaunch to choose a different revision. UTF-8 wording, a byte-order mark and line endings are preserved exactly.

In this profile support_discover supplies the core method bundle. support_prepare can supply omdome or judging-claims with their complete declared companions when the question calls for them. Code does not classify the question. Every dispatched experimental operation result identifies the pinned source and includes the factual capability declaration; pinned metadata on a method result does not establish current source availability. Use content_read to check and obtain it.

method_read_sek is available in local mode and both experiment profiles (including the workspace experiment). It is absent in box mode. Pass { "id": "foundation", "releaseIdentity": "<running manifest sha256>" }, or another deliverable identifier such as entry or making-sense. For a method text it returns exactly the requested body, with its selected public metadata, status, bytes, version and hashes. For one of the twelve production component declarations it returns the method texts it names, with the texts they depend on, omitting declaration bodies. For an all-declared catalogue, full texts in discovery, preparation and reads carry only valid, present header fields from this public set: kind, summary, status, delivery, delivery_reason, situation, not_when, method, method_version, method_status, method_texts, related_support, tools and exits. The author field and other header fields are omitted; the source files retain them. Lists continue to omit delivery and delivery_reason. relatedIds still names the requested item’s declared parent or method-text companions and authored exits; fetch any other text separately with another method_read_sek call. support_prepare supplies the declared dependency bundle with component declaration bodies omitted. totalBytes and delivery and diagnostic rows describe only the emitted bodies. Foundation and entry can be addressed individually using their catalogue identifiers. The read does not start a method. With an intact connected folder, each successful call appends one row marked use: "shown" to the study delivery log, or to the course delivery log when its optional course selection succeeds; without a connected folder, local production returns a bilingual setup refusal with no method body.

Methods are immutable snapshots verified at launch, with both original source and delivered-body hashes. Frontmatter and the tail beginning with State are excluded by the existing extraction; relevant bodies and references are otherwise unchanged. On-disk method changes do not reload that running snapshot. Restart to validate a revised method bundle.

The declaration makes the methods' unsupported retention claims visible: this experiment cannot save learner work, provide a journal, copy a conversation as a learner record or assess/grade understanding. Source paths, origin descriptions, source hashes and source bodies are excluded from local diagnostics. Host/provider retention is separate.

The SDK integration test demonstrates preparation and receipt by a test client over stdio. It does not demonstrate Claude Desktop, another learner host, NOVA, model receipt or method use in a reply. Host tool-result or context limits can prevent complete receipt of long inputs even after a successful server read. No desktop configuration is registered by this build.

Reviewing and reworking a text experiment

This separate profile takes the text to work on from the conversation. It uses the text-review experimental declaration, separate from both the inherited Making Content declaration and the product declaration. After building, launch from this checkout with an explicit private diagnostics directory outside the package and workspace roots. Each launch keeps its own file there:

sekundanten_logs="${SEKUNDANTEN_STATE_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/sekundanten}/logs"
mkdir -p -m 700 "$sekundanten_logs"
chmod 700 "$sekundanten_logs"
node dist/index.js \
  --experiment reviewing-and-reworking-text \
  --log-dir "$sekundanten_logs"

Do not pass --source, --source-origin or --bundle. The diagnostics path must be outside the package and known workspace roots and free of symbolic links. No content reader is registered. The tools are support_discover, support_prepare and method_read_sek, whose schemas accept no learner text, purpose, criteria, feedback, proposed revision or choice. Supply that material with its known origins in the conversation. The model interprets the situation; the server validates and delivers the declared method snapshots.

Discovery actually delivers the complete newly authored Reviewing and reworking a text application 0.0.6 alongside complete Foundation 0.2.2, Omdöme 0.0.3, Appropriation 0.2.3 and Evaluative Judgement 0.0.3 bodies. The experiment profiles pin the current drafts. The application source is a distinct authored product component method and retains its body in production and the experiments; the other twelve components are declarations whose bodies are omitted from production method replies. All source files retain their identities. The initial application depends on Evaluative Judgement and its required companion closure. Evaluative Judgement declares Omdöme and Appropriation as companions, both with Foundation. For a changed question, support_prepare can deliver Making Sense 0.2.1 with Appropriation/Foundation, or Judging Claims 0.0.3 with Omdöme/Foundation. No component-switch operation or compulsory attempt, comparison, form, revision or save is provided.

The experimental capability declaration accompanies every dispatched result, including preparation errors. It qualifies the unchanged methods' historical study-folder, saved-item, journal and conversation-copy statements: this server implements none of those learner records. It persists no conversational material and cannot accept or save a proposed edit. Host/provider conversation and tool-result retention remain separate. There is no grading, understanding certification, review endpoint, native/Nova connection or learner-store initialisation. A later chosen save needs a separately implemented operation and an actual receipt.

This repository tracks 36 method files: 23 existing authored method texts and 13 component files, among them the Reviewing and reworking a text application. The portable library inventory records source hashes, byte counts, versions, draft status and whether each text is an existing method or a new component; verify it with node tools/verify-method-library.mjs. The verifier never follows historical source references or imports source history. Library inclusion does not authorise delivery. Only the seven declared text-review methods are selectable here; unrelated files and missing record operations do not gate this profile. The application retains its own author, version, experimental draft status and source receipt.

For a client entry managed by the maintainer, use the direct absolute Node executable, the absolute dist/index.js path, --experiment reviewing-and-reworking-text, and an absolute private --log-dir outside the package and workspace roots. Add a new distinct server entry without replacing an existing Making Content trial. Building or preparing an entry does not register it. Successful SDK stdio delivery establishes receipt by the test client only; actual model receipt, response behaviour and host context limits still require a later conversation in the intended client.

Implemented operations

Tool

Input

Result

support_discover

Empty object

Build and release identity, capabilities, foundation and entry texts, declared method identifiers and situation descriptions.

support_prepare

id, discovered releaseIdentity, optional course

The selected method and its dependencies; for a component declaration, the method texts it names, with the texts they depend on. Declaration bodies are omitted; versions, hashes and byte counts remain exact.

method_read_sek

id, discovered releaseIdentity, optional course

One requested method text; for a component declaration, the method texts it names, with the texts they depend on, without declaration bodies; retains related ids and does not start a method.

The method tools return one text block containing the complete result as JSON, without a separate structuredContent payload. In developer mode the opening disclosure and a due usage reminder are separate text blocks alongside it; the complete JSON block stays unchanged. They accept no extract, transcript, answer, source path or URL. The optional course is a workspace-relative course folder such as kurser/Fabricated course, used only to choose the delivery log; it selects no text. When supplied, deliveryCourse: {course, tied} reports whether the row reached that course log. An unsafe or malformed course is represented by null rather than echoed; no course selection means no deliveryCourse field. A bad selection never blocks the method text. The software fixture and the unextended experiment profiles expose only their declared method and selected-content tools. Resources and prompts are not registered; the catalogue and delivery logic are separate from the MCP adapter so those routes can share it later.

A local production launch with --bundle method-manifest.json also exposes init_workspace_sek, upgrade_workspace_sek, init_context_sek, init_course, workspace_tree_sek, file_read_sek (with workspace_file_sek as a compatibility alias), sekundanten_start, the seven own-work tools, course_folder_create, course_overview, material_add_sek and operation_lookup_sek. The add tool imports a file into the connected Osorterat inbox when that destination is available; without a gatekeeper, valid imports are accepted and marked unscanned. The lookup tool reads an import’s, creation’s or edit’s recorded outcome by operation ID; before setup it returns PS_NOT_READY, meaning that no learner workspace is connected. Method delivery requires a connected workspace in local production; call init_workspace_sek first. Call init without a location first: the learner confirms the proposed root or chooses an existing permitted root, then a workspace beneath it, confirming each proposed path with its session-bound token. A bare confirm: true is refused. An operator may preset the root with --workspace-parent. Several confirmed workspaces are allowed; the latest choice becomes current and is remembered through the pointer in SEKUNDANTEN_STATE_DIR, which defaults to $XDG_CONFIG_HOME/sekundanten or ~/.config/sekundanten on POSIX, and %USERPROFILE%\.local\state\sekundanten on Windows.

On the direct local client route, usage_export_sek also offers the requested local usage-log copy, with logging on or off. It is absent on shell connections, bridges, boxes and experiments.

describe_workspace_sek stays listed and callable on the shell route and in box mode. On the local client route it is absent from both the tool list and tools/call. The local client obtains the connected workspace's opaque reference from sekundanten_start.workspaceRef (null before setup), or workspace.ref in the setup reply. Start also supplies the existing bilingual dataLocationText; present it with loggingNotice at setup.

On the local shell route, where method_read_sek is registered, describe_workspace_sek also declares the methods component labelled “Teori” (theory) and scope:methods, whose method.read operation names that tool. The component carries the catalogue's releaseIdentity and lists foundation, entry, then all other declared texts in manifest order, including components and the context script. Each item has its id, version and the loaded source body's first level-one heading as label (or its id if no such heading exists); parts also carry their parent's label as group. NOVA can use these declarations as metadata before workspace setup; reading a method body requires the connected workspace in local production. The listing still includes all 36 declared files; reading a component declaration supplies the method texts it names, with the texts they depend on, without declaration bodies. Once a local workspace is bound, describe writes one content-free call-log row. Box mode has no methods declaration.

Workspace listings declare an open action on each folder and file, and a continuation action when more entries remain. Compatible clients can use these actions on either route, including read-only box mode. A fully observed empty folder supplies “Mappen är tom.” and “This folder is empty.” for that listing alone; missing folders, incomplete coverage and empty continuation pages make no empty-folder claim. See workspace reading for the bindings and schemas.

Setup creates the six top-level folders and the declared template subfolders. It installs all 36 method library files (23 method texts and 13 components) and the two starting templates of "Min riktning" (my direction) into mallar (templates). The existing ten method destinations stay flat; the other 26 keep their paths below methodology/, for example mallar/processes/remembering/retrieving.md and mallar/components/examine-a-claim.md. Their versions are in workspace-layout.json, while the completion marker records each installed path and source hash. A new course copies the recorded method templates into method, keeping those paths. Existing study folders and courses are not changed and keep what they have; a new course in an older study folder copies only its recorded templates. This does not change the method delivery declaration. Workspace tree and file reads admit ordinary files and folders throughout the workspace, withholding service internals. The same executable's interim --mode box exposes describe, tree and file reads, follows the local pointer and provides no init or saving operation. Developer box mode additionally offers the two shell-only usage preference tools described below. After setup, offer step 2, init_context_sek; she may decline it. On her explicit yes, it creates the learner's two starting documents in min-riktning (my direction) and init_course creates one course folder under kurser (courses), each only on the learner's explicit yes. If the client has no host confirmation question, the AI passes the returned token back after asking the learner; the person's explicit yes is the safeguard. The token binds the request to the session and proposal, but does not prove that the person agreed. Host confirmation requests expire after five minutes. Any host result without an explicit accepted true, including decline, dismissal, failure or timeout, returns the proposal and a single-use token so the AI asks directly in the conversation. Earlier workspace facts remain valid. confirm: false records a refusal; a bare true stays refused. A shorter host call deadline still applies. The request is cancelled on timeout or tool-call cancellation, and a late yes cannot write, though dismissal of the host form is not guaranteed. While workspace setup or upgrade is running, another workspace setup or upgrade call immediately returns BUSY with effect: none; it can be retried after the first call finishes. See Workspace setup and reading and the launch guide.

own_work_create saves one text when the AI reports the learner's decision; own_work_commit updates saved work against its current revision. Neither asks the learner again or records an independent confirmation of that decision. Save events keep confirmedBy: null; a confirmed result establishes the file write. Native save journals hold identities and hashes; new commit and creation records also retain the original filename, file ref, receipt time and producing instance for durable receipts, with no document text; a deleted file’s record becomes a bare operation-ID tombstone only on replay or recovery of its operation. The own-work tools refuse with WORKSPACE_NOT_PROVISIONED until the learner's folder is connected. There are no learner-journal, practice or deletion tools.

Each running instance loads one immutable snapshot. Restart it to load a revised bundle. Unknown or unavailable identifiers and stale release identities return specific errors without a partial method body. Every preparation includes its required method dependencies while omitting component declaration bodies; previous delivery is not treated as proof that the current conversation contains them.

Technical details of saving and method texts

The method declaration explicitly declares and validates all 36 files in the library inventory: the three processes, two capacities, Becoming, their parts, Foundation, Entry, the context script and 13 components. Public metadata retains each text’s version and bare status token, such as draft. The release strip removes authored delivery, delivery_reason and tool-reference metadata from all 36 texts; those observations are absent from the released metadata. support_discover supplies Foundation and Entry and lists the other texts with their public kind, summary and bare status; component entries retain public situation and not_when where present. Preparing or reading one of the twelve component declarations supplies its declared method texts and their parents, without declaration bodies, including nested declarations. Reviewing and reworking a text is itself a method and keeps its body. exits are navigational references fetched separately. The explicit all-declared policy admits these declared texts; a file’s existence alone still enables nothing. Method-text versions are independent of the software version.

Saving a change replaces the saved file. Save records hold identities, hashes and outcomes, never copies of the text, even before confirmation. Repeating an earlier save never recreates a deleted file. A deleted file’s save record is reduced to its operation ID only when that operation is replayed or recovered; there is no background cleanup of those records. The creation and commit journals each allow at most 1,000 records and 32 MiB; a full journal refuses new operations. A crash can leave a temporary text file; later writes attempt to remove service temporaries. See the saving guide for recovery limits.

A crash after the prepared save record leaves no journalled text to restore. Explicit recovery confirms only a matching resulting file and operation marker, or records NOT_SAVED when the before revision remains and no pending publication is left. It never publishes the interrupted text. A fresh edit against the current file revision proceeds without a document-level block. Under the writer lock it first closes earlier prepared history as confirmed, not saved, or unconfirmed according to the bytes; uncertainty does not stop the new explicit save. An unconfirmed record remains an unknown outcome without a receipt. External lookup and recovery still require the original route. No older text is restored over the current document.

A process killed before the replacement can leave the new text in a hidden temporary file. The next saving process attempts to remove that temporary file; it does not publish its text. A new text is written and synchronised in a hidden temporary before an exclusive link publishes the complete file on every platform. A failed write leaves no visible partial file. A crash after that link can leave a complete file alongside its hidden temporary; a later save removes only a proven matching publication link and can confirm the existing file. It never replaces another file with that name. A drive that cannot make this exclusive link refuses the save with an explanation in Swedish and English; keep the draft and choose a folder on a drive that supports this saving method. After a newly confirmed workspace has been created, a one-off check in its private system folder tests this support and removes its scratch files. If support is missing, setup keeps the workspace and warns in Swedish and English that it can be read but new texts cannot be saved there. No capability check writes before your yes, and recognising an existing folder adds no check.

A prepared import can hold new imports BUSY for up to seven days; if replay finds a different partial file, it names that file as possibly incomplete, preserves it, and permits a new import id for a complete copy.

The native own_work_describe declares cooperating_local_writers_and_sequential_external_edits. A hand edit that lands between the final re-read and the replacement can be overwritten while the commit reports confirmed. On Windows the revision recheck is inside the replacement, before each rename attempt; that final gap still exists. Do not edit a file by hand while the AI is saving it.

Method manifests

The catalogue uses a JSON manifest beside its method files, or above them within the same directory tree. The fixture manifest shows the required fields. Each file declares its identifier, role, path, version, source hash, delivery status, dependencies, required operations, optional capabilities and author-only sections. All 36 production files are loaded and validated; the twelve component declaration bodies are excluded only when replies are assembled. The server keeps a fixed list of these twelve files in src/component-declarations.ts; the tests check it against the method files.

For the product and software fixture profiles, the foundation and entry must be ready before the server starts. Each experiment instead requires its foundation and initial method bundle to be ready within its separate declaration. The text-review manifest explicitly declares its experimentProfile; the unchanged earlier experiment manifest retains its Making Content contract. Parents depend on the foundation; parts also require a parent. An optional capability does not block an otherwise available text. Declaring a text ready is an editorial decision: the validator checks the declaration and files, not whether a pedagogical claim is true.

Frontmatter and the tail beginning with a declared State or Working Log heading are excluded. Headings inside fenced code examples are retained. Each emitted method body preserves its original UTF-8 content, spacing and line endings. Component declaration bodies are omitted in full; emitted bodies are neither summarised nor truncated. Individual files are limited to 1 MiB and a loaded bundle to 8 MiB; actual host delivery limits still need testing.

Check a bundle before connecting a host:

npm run build
npm run bundle:check -- examples/delivery-fixture/manifest.json
npm run bundle:check -- method-manifest.json

The last command validates the production bundle’s 36 explicitly declared inventory files, including the twelve declarations whose bodies are excluded from method replies. Their hashes and delivery declarations are reviewed together with the source.

What is logged

On the own local AI-client connection without a supplied directory, diagnostics begin only after the first agreed workspace choice has been recorded. Root selection, a proposed workspace and a refusal create no fallback log directory or file. A remembered workspace choice remains evidence on later starts, including when its target has gone. Experiments and supplied-directory launches keep their existing diagnostic behaviour. The default is logs under the resolved state folder: $XDG_CONFIG_HOME/sekundanten/logs or ~/.config/sekundanten/logs on POSIX, %USERPROFILE%\.local\state\sekundanten\logs on Windows, or logs under SEKUNDANTEN_STATE_DIR. A supplied --log-dir wins unchanged. Shell, bridged and box connections require an explicit directory. Diagnostics never belong under the package or a known workspace root. The launcher checks its explicit visible roots; the service checks the package, remembered allowed root and bound workspace, but cannot observe the AI client's MCP roots. If a root chosen later contains the diagnostics folder, further appends report unavailable and tool outcomes stay unchanged. Diagnostics are per-process: the own local fallback creates a UUID subfolder under logs for each launch. Every copy writes its own delivery-<UUID>.jsonl inside the supplied directory, so even two copies given the same directory retain separate rows. The declared launcher supplies distinct directories; the server also supports a shared supplied directory. The demo instead creates a separate temporary directory and prints the number of log entries and whether diagnostics were recorded.

Each technical delivery-<UUID>.jsonl contains timestamps, generated request and instance identifiers, the operation and outcome, build and release hashes, and prepared text identifiers, versions, hashes and sizes. It records preparation, not receipt, model compliance or learning. Raw arguments, method bodies and learner content are excluded. Requests rejected by the SDK before operation dispatch are not recorded in this log. Where registered, workspace describe, tree and file reads create no delivery-diagnostic or save-journal entry; they do append a call-log line once a local workspace is bound. After a production workspace is bound, method deliveries also append text identities and hashes to the study delivery log, or the selected course delivery log when that tie succeeds; explicit saves keep their separate private operation records, as described in the launch guide.

Local events.jsonl records successful tool changes: change and object identities, the revision where applicable, time, route, actor, origin, operation id, scan marking and a workspace-relative path. calls.jsonl records every tool call after binding, reads included: time, generated call id, a fixed tool name (or unknown_tool), outcome, bounded code, duration, result size and methodology identity. Successful file_read_sek, workspace_file_sek, own_work_read and named-entry workspace_tree_sek calls also record the workspace-relative path resolved by the service. Root listings, refusals and errors name no file. Method reads name no file here; their texts are recorded in the delivery log. Every newly issued receipt, native or family, and confirmed-change event carries caller: {route, client}; the call log records it too. Its route is fixed by --route client|shell (client by default); its client follows the launch label or local clientInfo fallback described above. The caller records the consumer's claim, authorises nothing and leaves the trusted learner actor unchanged. It stays outside the request digest. Lookup, recovery and identical replay require the same consumer route and actor authority. Another connection on that route and a restart retain the original caller, regardless of its client label. A different route or actor authority receives NOT_FOUND, effect: none, with no receipt, and the record stays untouched. An unseen id gives the same refusal on native reads, native recovery and family lookup; unseen or unadmitted recovery creates no writer lock or record. This cannot tell whether a request still in flight in another copy has changed the document: read the document separately. Prepared records stay unknown. Records without caller, or with retired ai or teacher route values, cannot establish current route authority: they also receive NOT_FOUND and stay untouched; no route is guessed or rewritten. In event lines, the separate top-level route field still names the tool; caller.route names the consumer route. Neither log holds arguments, replies or document text. File names may be logged: do not put pupils’ names in file names. No event or call log is created before binding, or in box or synthetic mode; event and call logging creates no folder before binding. Course creation, saves, edits and new folders use that course’s event log. Other changes use the study event log. All calls, including reads, stay at workspace level; course routing for calls is not implemented. A workspace whose marker has changed still gets call lines when its captured root identity remains valid.

Each event and call log rotates at a 1 MiB threshold and keeps one older segment, replaced at rotation. Several running copies can exceed the threshold; it is no aggregate size bound, and there is no age limit. After binding on the local shell route, describe_workspace_sek.callLog names exactly _system/logs/calls.jsonl and _system/logs/calls.1.jsonl, relative to the workspace. It omits maxBytes and retentionDays: the number of concurrent copies is not capped, so no fixed aggregate byte bound is enforced. This partial declaration does not satisfy the v0.0.19 call-log contract. The first read in an existing workspace may create the active file and its named ancestor directories; it changes nothing else. Copies rotating the same log at once can lose older lines. Delivery logs start a new file before passing 1 MiB and retain their timestamped archives; they have no aggregate size or age limit. A failed event line never fails the write; calls never wait for their log, and failed call lines stay silent. A crash during set-up can leave no event; a crash between event append and confirmation can leave duplicate lines with the same eventRef. A later save may record an observed hand edit to another file, without its text. Reads add no such event, and some edits are never recorded; this is not a complete edit history. Malformed call envelopes rejected before SDK dispatch do not reach the call wrapper. The partial declaration leaves the kit’s declare.call_log and flows.read_only rows unsatisfied; no full change-feed conformance is claimed. The local client has no describe declaration, so checks requiring that declaration have no client evidence; no client declaration conformance is claimed.

Each copy’s separate technical diagnostic log is capped at 1,000 records and 512 KiB. Entries older than seven days are removed on the next successful append. On the own local fallback, best-effort clean-up runs at start if a workspace choice is already recorded, or on first diagnostic use after a new choice. Supplied-directory launches run it at start. Clean-up inside the log directory actually in use removes other delivery-<UUID>.jsonl files, a stranded delivery.jsonl and crash-left .pending-<UUID> files whose modification time is older than seven days. Only the own local fallback also removes UUID subfolders when all their recognised diagnostic files are that old. A folder containing a usage segment is skipped by this unchanged diagnostic cleanup, so delivery diagnostics in a mixed folder can remain beyond seven days; their own successful append still applies seven-day row retention. It always keeps the current process’s file and leaves links, non-UUID folders, empty folders, nested folders and unexpected entries alone. An idle copy whose aged file is removed recreates it on its next append. Clean-up never delays or changes a reply; no deletion runs while all copies are stopped. The directory must be private, and the log is written with owner-only permissions. Remove the log after stopping the server if it is no longer wanted.

Concurrent writes within one instance are queued; separate launched copies use separate diagnostic files. Corruption, unsafe paths and write failures also leave a valid method response intact, with diagnostics.status: "unavailable". Restarting with the own local fallback creates a new subfolder and attempts the same startup clean-up described above. This diagnostic log is not an audit guarantee or a learner record.

The host and its model provider handle their conversation and tool results under their own arrangements. Local server logging does not establish that the host stores nothing.

Usage log in developer mode

The Desktop bundle starts with Developer mode ticked and its usage-log warning shown; untick it to turn it off. Source entries record the choice explicitly. The generator chooses true on macOS and Windows and false on Linux when no option is supplied; it accepts --developer-mode false to turn it off. On Linux, turn usage logging on explicitly with --developer-mode true. Omitted or literal false selects ordinary mode; other values refuse launch. This selects the declared service mode independently of the local/box serving mode and the client/shell route. It adds a developer notice to shell describe's selected summary, to the local sekundanten_start.loggingNotice and to init replies' loggingNotice, and supplies the short start notice as a separate text block on the first local client tool reply after a study folder is connected, once per connection. It explains how to turn developer mode off; it is absent before connection, from box replies and from server instructions. Other logging-notice fields keep their longer disclosure. A due reminder is another separate reply block. Offered operations keep their existing admission and validation rules. --developer-mode true with --experiment is refused. The separate synthetic --workspace harness has no usage log.

The launch declaration has ordinary placements local-macos, local-windows, local and box, with literal --developer-mode false, and matching local-macos-developer, local-windows-developer, local-developer and box-developer placements with literal true. Their route, credential and runtime requirements are otherwise identical. The bundle manifest uses a boolean user_config.developer_mode, default true, and substitutes its value into the same option. No chat question chooses local developer mode.

Usage logging has its own Node-only lock on every platform, independently of the document writer’s --writer-lock policy. macOS uses the Node kernel lock and refuses acquisition if its capability check or open fails, without falling back to Python. Windows uses the Node share-denying lock. Linux uses a Node abstract Unix socket that the kernel releases when its holder dies. Its content-free .usage.lock file stays in the private log parent. Appends, expiry and removal allow at most 1,000 ms to acquire it; reminders check whether they are due before taking the lock, bypass pending appends, allow 50 ms to acquire the lock and are omitted on contention. A failed reminder attempt backs off in memory for 60 seconds. Without the lock, whether busy or unavailable, a copy records no usage rows or reminders and performs no expiry or removal; removal remains unconfirmed. Usage rows exist only where a copy held the lock, or held the older mutex of an earlier 0.0.27 build. A box refusal is final and is stored durably before waiting for the usage lock. An append holds that lock until all its segment I/O has settled. If it observes the refusal after writing, it closes the append handle and attempts to restore the earlier length through a separate writable handle; if that fails, it attempts to remove that segment in the administrator's declared one-person box slot. Removal waits for the store's queued work before acquiring the same lock. A successful stop confirms that recognised usage rows are gone and no pending writer can publish a row afterwards: earlier writers have settled, and later writers check the durable refusal under the lock. An append's earlier recorded result does not prove a row remains after a successful stop. If lock acquisition or removal fails, the stop reply says removal is incomplete; rows may remain, the durable refusal stays, and removal is retried on later starts and stop choices. A timeout never establishes successful removal. All copies sharing a log parent must use the same usage-lock protocol.

All copies using one usage-log folder must run on the same computer. Do not share that folder between computers, or between containers or sandboxes with separate networking. Do not share the log folder between a computer and a virtual machine on it (including Windows Subsystem for Linux), or between virtual machines. On Linux, stop all earlier copies before upgrading. If export keeps failing, ask your installer to stop all copies using that log folder and try again. If it still fails, your installer may need an administrator to check whether another account's program is holding the lock. Another account on the same Linux computer can deliberately block usage logging, export and clean-up by occupying its lock name, though it gains no access to the log.

On Linux, usage operations share an abstract Unix socket named from a hash of the log parent’s device and inode, with no path or person identifier in its name. The kernel releases ownership when the holder dies, including after SIGKILL; a later copy can log, export, expire and remove usage without manual lock removal. The private empty .usage.lock file stays. Earlier .usage.lock.held entries are ignored and left untouched, including links. The old and new protocols do not exclude one another. Abstract sockets have no file permissions, and active names are visible in /proc/net/unix; a secret mixed into a reused name would not prevent another account from occupying it between holders. Copies sharing a log parent must share the same network namespace. Document saving on Linux keeps its existing Python writer lock. See Node’s abstract-socket support, Linux’s socket permissions and socket listing.

On Windows, usage paths refuse UNC and device prefixes before access. Node resolves the nearest existing parent of an absent location too; a mapped drive reported as UNC or a device path is refused. The service runs no PowerShell or other drive query and cannot infer a remote mapping that Node does not report.

When no log directory is supplied on Windows, missing or refused LOCALAPPDATA leaves usage logging unavailable, with no fallback to the old folder. Stop earlier copies before upgrading. Startup maintenance removes only recognised private usage segments, pending files, legacy lock names, the export and its own temporaries from the old state folder’s logs and direct UUID children. No old rows are copied. Export and 30-day expiry read only the new parent. Diagnostics, pointers, preferences, reminder and maintenance bookkeeping, the persistent lock and unrelated files stay. Unsafe or inaccessible entries stay too; cleanup is retried at later starts. On Windows, do not supply the old default logs folder, or a folder inside it, as --log-dir in any entry that shares this state folder. A launch that supplies it skips the clean-up, but any later launch without --log-dir, even after the other copy has stopped, removes the recognised usage files and the export there without copying them. Before upgrading, change such an entry to another folder and keep any export you need elsewhere. Other supplied log directories and macOS/Linux locations keep their existing behaviour.

One JSONL row describes a connection, dispatched tool call or actual document publication. The fixed fields are:

Row

Fields

Every row

at, kind, session, route, client, serviceVersion

connection.open

No additional fields

connection.close

end, calls (zero included)

call

tool, outcome, code, durationMs, resultBytes

edit

act, documentKind

at is UTC ISO time. Seconds and milliseconds are zero on every edit and on calls to own_work_create, own_work_commit, material_add_sek, init_context_sek, init_course and init_workspace_sek, even when the call refuses or changes nothing. Other entries retain milliseconds. Neighbouring entries, order and durations still show a sequence. session is random for each connection; no persistent person, document or workspace identifier is recorded. No row holds arguments, replies, text, file or folder names, paths, refs, course names, accounts or network addresses. Usage logging accepts only a software version in x.y.z form; a build with any other serviceVersion, including a prerelease version, records no usage rows. Other service operations continue. Tool names and outcome codes come from fixed service vocabularies. Unknown names/codes use fixed fallbacks. Credential refusals are observed without changing the refusal. Malformed envelopes rejected before tool dispatch are outside the observer.

The closed usage client list is claude-desktop, nova, unknown. Currently only the exact MCP name NOVA, evidenced in the repository's client-name test, maps to nova. Claude Desktop currently yields unknown; its real MCP name still needs a trial before an evidenced mapping can emit claude-desktop. All other claims yield unknown. The usage classifier never copies a free-text name or provisioned launch label. Receipt and workspace-log caller.client retains its separate existing rules.

The closed documentKind list and mapping are:

documentKind

Fixed service meaning

own-work

A native saved text created or changed by the own-work tools

material

One imported file; its supporting sidecar is excluded

template

A newly installed workspace template copy

method

A newly installed course method copy

riktning-kontext

The starting context document created by context setup

manifest

The starting manifesto document created by context setup

unknown

A created document whose declared service kind has no recognised mapping

Kinds are fixed by publication sites or the service's own declaration, never by a person's text, metadata, folder kind or file name. act is added, changed, moved or deleted. Current tools produce added/changed document entries; there is no learner-document move or deletion operation. Replays, no-change results, recovery confirmations, internal records, usage exports and folder creation add no document edit. Minute rounding follows the tool's ability to change a document, independently of whether that call writes one.

The files are usage-<random code>.jsonl in the existing log directory. On macOS and Linux, the own local fallback uses logs/<process UUID>/ under the resolved state folder, with that logs as the shared maintenance parent. On Windows, default usage files instead use %LOCALAPPDATA%\sekundanten\logs\<process UUID>, with that logs as the shared maintenance parent; workspace-choice state, pointers and technical diagnostics keep their existing state-folder locations. SEKUNDANTEN_STATE_DIR does not change the Windows usage default. A supplied local --log-dir is the maintenance parent for that directory and its UUID process children. Distinct supplied roots have separate bounds. Box mode uses the explicitly provisioned parent below and a distinct UUID child per running copy. Segments are at most 512 KiB; recognised usage segments under one parent total at most 16 MiB, removing the oldest segments first. These are Sekundanten's own size bounds. At every start, including in ordinary mode and after a Linux holder has been killed, a best-effort pass begins after the transport connects and removes rows older than 30 days by at, including from earlier process subfolders. While recording activity, full expiry runs at most once an hour; each append checks byte bounds using file sizes. No expiry runs while all copies are stopped. If you switch developer mode off, the files remain until the next start removes the old rows; you may delete the log folder yourself after stopping Sekundanten. An idle process has no expiry timer. Usage files have their own retention; the seven-day diagnostic pruner ignores them and skips mixed process folders as described above. Unusable recognised usage segments and unsafe segment links are removed individually. Directory or maintenance failures can make usage recording unavailable; the log is best effort and is not an audit guarantee.

No usage row is written in ordinary mode. Locally, no usage row is written before a recorded workspace choice, including when an explicit log directory is supplied. Once eligible, a connection can have open/close entries with no tool call. EOF is observed as closed, a handled stop signal as stopped, a terminal pipe error as lost, and other observed closure as unknown. These describe the local pipe, including on a bridge; they do not establish a remote browser's reason for leaving. A crash, uncatchable kill or power loss can leave no close row, and restart invents none.

A due reminder is a separate text block in a reply, at most once in seven days across the parent's connections and restarts. Local reminders explain how to ask for a usage export and send the file yourself, without naming a folder or including a path. Box reminders say that the administrator can read and forward them. The service sends no log automatically. You can ask for a local usage-log export and choose whether to send the copy yourself. .usage-reminder.json is separate bookkeeping, outside usage rows, and is marked before a reminder block is attached; a failed mark omits the block, and a reply without content leaves it due. The strict private .usage-maintenance.json separately records when full expiry last ran, and is written only when a usage segment was seen. The standing notice is in shell describe's selected summary; local setup's loggingNotice also explains developer logging. Logs remain personal data even without content. These entries show service activity, not what reached the model or what someone learnt.

Export a usage log

When you want a copy, ask the AI to export your usage log. On a local direct client connection, usage_export_sek accepts an empty object and replaces one file, usage-export.jsonl, in Sekundanten’s own usage-log folder, outside the study folder. It sends nothing. There is no destination, recipient or text argument. It is available with developer mode on or off, including before a study folder is chosen, so you can copy retained rows after turning logging off. Shell connections, bridges, boxes and experiments do not offer it. The service cannot prove that the person, rather than the AI alone, asked; sending the file is the person’s own act.

The copy contains only validated usage rows from the last 30 days, with their fields and values unchanged. It excludes diagnostics, preferences and any earlier export. It holds at most 16 MiB; if more rows remain, it keeps the newest that fit and reports truncated. It uses the shared usage lock, waits for preceding queued usage work and replaces the file atomically with owner-only permissions on POSIX; Windows uses the private folder’s access rules. A failed export means completion could not be confirmed. A failure before publication keeps the earlier export; a failure after publication can leave a new complete copy whose outcome could not be confirmed. Exporting never changes the source rows. The export copy has its own 16 MiB allowance alongside the source segments. Startup and activity maintenance attempt to expire its rows as well. Export-copy expiry is best effort: a copy that cannot be rewritten may keep rows past 30 days until later maintenance succeeds; recognised interrupted export temporaries are cleaned under the same lock. Nothing expires while Sekundanten is stopped.

The result object has exactly status (exported, empty, truncated or failed), file (always usage-export.jsonl) and entries (the row count), with no path. A separate text block explains the status in your language. empty means no current rows were found: an existing usage folder gets an empty copy, but an absent folder stays absent. failed means completion could not be confirmed: a failure before publication keeps the earlier export; a failure after it can leave a new complete copy whose outcome could not be confirmed. Exporting never changes the source rows. You can try again later. On Linux, a killed holder releases its usage lock automatically; no lock-folder removal is needed before retrying.

If export keeps failing, ask your installer to stop all copies using that log folder and try again. If it still fails, your installer may need an administrator to check whether another account's program is holding the lock. All copies using one log folder must run on the same computer; do not share it between computers, or between containers or sandboxes with separate networking. Do not share the log folder between a computer and a virtual machine on it (including Windows Subsystem for Linux), or between virtual machines. On Linux, stop all earlier copies before upgrading. Another account on the same Linux computer can deliberately block usage logging, export and clean-up, though it gains no access to the log.

To find the file yourself:

  • On macOS, in Finder choose Go → Go to Folder and enter ~/.config/sekundanten/logs for the default installation.

  • On Windows, enter %LOCALAPPDATA%\sekundanten\logs in File Explorer’s address bar. Claude Desktop from the Microsoft Store may keep its separate AppData copy under %LOCALAPPDATA%\Packages\<Claude package>\LocalCache\Local\sekundanten\logs instead; replace <Claude package> with the Claude package folder. This Store location has not yet been checked on a Windows computer; ask your installer to confirm it.

  • On macOS and Linux, if the installer chose SEKUNDANTEN_STATE_DIR, use logs inside that folder; a set XDG_CONFIG_HOME instead puts the default under its sekundanten/logs. Windows usage logging uses Local AppData independently of the workspace-state override. With an explicit --log-dir, use that supplied folder. Ask your teacher or installer which location they selected.

Choose usage-export.jsonl and send it yourself if you wish. The copy stays locally until replaced, expired or removed. The tool supplies no path to the model.

A private box slot for one person

The administrator must provision one private state folder, its recorded workspace pointer and one private canonical log parent for each person, covering that person's client and shell connections. Supply an external credential as before. Do not share or reuse a person's state or log parent for another person. The service relies on this explicit administrator declaration; it builds no identity index and infers no person from a client label, credential name or workspace title.

In that state folder, provision the owner-only regular file usage-log-provision.json (no links, at most 4 KiB):

{
  "format": 1,
  "onePerson": true,
  "logParent": "/absolute/private/usage-parent"
}

The parent must already exist, be private and canonical, and lie outside the package and known workspace roots. The launcher must allocate a fresh lower-case UUID child path for each running copy and supply that direct child's full canonical path as --log-dir. Sekundanten creates the child on its first log write if it does not already exist; a launcher that creates it beforehand must make it private. Any other path shape disables box usage logging. Both routes use the same person's state and log parent. On POSIX, use mode 0700 for the directories and 0600 for the provisioning file. On Windows, usage files rely on the user profile’s access rules; the box and usage tests ran in the last full Windows 11 Home run of the 0.0.30 code (unchanged in 0.0.31) under a standard account, without Python (2,817 tests: 2,610 passed, 3 failed, 204 skipped and 0 cancelled; basis: 448 tests, 0 failed and 93 skipped), apart from the skips recorded in the validation evidence. Missing or invalid provisioning, a changed parent or a non-UUID process directory disables box usage logging and offers no usage action.

In developer box mode, shell describe supplies I have read the notice and Stop usage logging actions. Their service-issued tokens are bound to the connection, single-use and valid for 15 minutes. The person confirms the notice in the direct shell interface; a model's statement supplies no evidence. A box client has no usage preference tool or action and writes no usage entries until the notice has been confirmed in the shell. Confirmation is retained in usage-log-choice.json in that person's state folder.

Stop usage logging durably stops collection, drops queued writes, removes that person's recognised usage segments and crash-left .usage-pending-* files across process folders and offers no later reminder or question. Diagnostics and other people's separate slots stay intact. Refusal survives reconnects and restarts and cannot be reversed by acknowledging an old notice. If removal cannot be confirmed, the reply says logging has stopped and clean-up will be retried at the next opportunity; the person can ask the administrator for help. Every later choice call and start retries removal, including starts in ordinary mode. Keep the choice file in place. The box remains read-only for learner material; its two extra tools change only usage preferences and usage storage.

The actual Desktop boolean substitution, the MCP names used by Desktop and NOVA, display of the separate reply block and the direct notice/stop interaction still require the intended-client trial. Automated SDK/stdio and bundle checks establish only their tested software behaviour.

Development and verification

npm run check runs strict TypeScript checks and the automated tests. Tests launch the compiled artefact through the official MCP SDK and exercise complete bundles, eligibility, versions, path boundaries, author-section removal, content preservation, retention, concurrent logging and failure handling. The SDK and development dependencies are pinned in the lockfile. Build identity covers the package metadata, lockfile, compiled production modules, both experimental declarations, product declaration, new component source, workspace layout, init basis (the shared workspace set-up component vendored under vendor/init-basis/) and marker registry, and identity generator. Release identity separately hashes the exact selected declaration bytes. The text-review transport and whole-library tests run without a skip when the prepared local snapshots are present. npm run check also runs the vendored init basis's Node-runtime tests (npm run test:basis); Python and cross-runtime cases belong to the init basis's own suite and are not run here. On macOS, placement local-macos uses only the Node lock and refuses saving if its runtime check or native open fails; direct launches with the default --writer-lock auto may fall back to Python; Windows saving uses Node and does not need Python; Linux uses the Python helper.

The real stdio process test starts four servers on one state folder. It checks competing creates, commits and imports, their exclusion under a held writer lock, replay without duplicate saves, settled lookup during another process's save, pointer changes, concurrent set-up, and recovery after writers are killed both before preparation and after a prepared record is written. It asserts that log rotation happened before checking valid JSON lines and loss within the stated bound. Its installed templates and saved files are fabricated. It runs wherever the suite runs, without a platform skip; Linux uses the Python lock; Windows uses the Node backend. Native Windows transactions remain unproven, and the manual Linux trial remains pending; see the platform evidence.

Implementation is divided between src/catalogue.ts (validated snapshots), src/server.ts (MCP adaptation), src/diagnostics.ts (local diagnostic writes) and src/index.ts (start-up), with src/selected-source.ts supplying the operator-pinned source contract. The mechanical refusal conditions are listed in GATES.

The product trial uses the reviewed method bundle; observations in the intended learner hosts are still needed. Passing the software tests does not establish model behaviour, host compatibility or educational usefulness. Independent code review remains separate from these automated checks.

Workspace setup uses version 0.4.26 of the shared set-up component with Sekundanten's layout from workspace-layout.json. The earlier text-review workspace experiment remains available with an explicit --workspace-parent; production setup no longer requires that operator preset. At the start without a connected workspace, init_workspace_sek is step 1. After it succeeds, offer init_context_sek as step 2 only if either context document is missing; she may decline it. Each step writes only on her explicit yes. Course creation remains a separate choice. Method tools require the connected workspace; context remains optional.

Own-work tools and the developer route

The production local launch includes the own-work tools for saving and editing texts in the learner's confirmed folder. Developers can also use the separate --workspace route with newly seeded synthetic workspaces. That developer route has no method delivery. On a development computer, use fabricated data only.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI-assisted learning through structured courses with Socratic guidance, evaluating user answers against rubrics and managing learning progress locally.
      Apache 2.0
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables an active learning tutor that runs in MCP clients like Codex or Claude Code, letting the AI create and manage lessons, read student attempts, and give feedback while the student practices in a local browser panel.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to programmatically create, validate, store, and hot-swap interactive quizzes and study bundles into a desktop learning application, with analytics and local REST integration.
      MIT