Repository navigation
Append a snapshot of the seat config to configs.jsonl when it changes - #134
Merged
Merged
Conversation
At each start, the host builds a snapshot from the live definitions: the model, the thinking level, the instructions, the guidance, the policies, and the tools of each specialist, the people, the runtime limits, and the package versions. It appends the snapshot as one line with `at` and `hash` when the hash differs from the last line. The file records the login state only, and no credential. schemas.md describes the file. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CMQWkjZ4dsuKpddaACQsSM
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CMQWkjZ4dsuKpddaACQsSM
andreisavu
marked this pull request as ready for review
October 8, 2026 16:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Andrei · project thread
Before: the data directory shows what the seats did (
activations.jsonl, #131) but not what they were configured with. A change of model, effort, instructions or tools leaves no record.After:
configs.jsonlholds timestamped snapshots of the seat config. At each start the host builds a snapshot from the live definitions and appends it only when its hash differs from the last line, so each line is one config change. A line holds, for each specialist, the model, the thinking level, the instructions, the guidance, the effective respond and summary policies (with their source), and every tool with its description and parameters. It also holds the people, the runtime limits, the package versions, the workstation host, and the login state aspresentormissing. No credential is written.schemas.mddescribes the file and how to find the snapshot in force for an activation.How:
src/host/config.tsmakes a plain JSON projection of theAgentDefinitionobjects the host seats (functions dropped, cycles marked), hashes the canonical JSON with sha256, and compares it with the last line.openRoomsreturns the definitions andhostingOf(runtime).limits.openLabwrites the snapshot beforeschemas.md. One line is about 120 KB, mostly tool schemas.Tests:
test/host-config.test.tscovers the first line, no line on an unchanged restart, a second line on a change, a corrupt last line, and that no function source or key value reaches the file.pnpm checkpasses.🤖 Generated with Claude Code
https://claude.ai/code/session_01CMQWkjZ4dsuKpddaACQsSM
Generated by Claude Code