Skip to content

v0.9.4

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Nov 06:27
e70f39a

Linmas 0.9.4

Linmas 0.9.4 adds managed Claude Code MCP registration, extends MCP proof creation to sealed Codex Security scans, hardens proof bundle publication, and tightens the specialist skill output contract.

Fixed

  • The Claude provider reports authMode: "apiKey". This fixes capsule validation for CLI reviews with --capsule and MCP reviews through linmas_review_execute.
  • Scoped install and uninstall report the path when an existing Linmas lock blocks the operation.

Hardened

  • MCP proof creation checks that the source files still match the inspected files and binds sealed scan hashes to the exact bytes included in the bundle. It checks the staged bundle's limits and verifies its integrity before publishing.
  • The proof bundle writer checks ownership before deleting locks, destination claims with a known identity, or staging directories recursively. If it cannot obtain the identity of a newly created directory, it attempts only an empty-directory removal. The workspace and destination parent must stay stable during the call.
  • MCP proof tools reject workspace roots and inspected proof directories that report inode 0. The CLI and MCP bundle writer also reject a destination parent whose filesystem reports inode 0.

Added

  • linmas_proof_create accepts a capsule file or a sealed Codex Security scan directory as source_path. Both prepare and execute check the source tree and compute the unsigned bundle size. Source trees and staged bundles are limited to 32 MiB and 4,096 entries each. Invalid sealed scans return CONTRACT_VIOLATION with reason SEALED_CODEX_SCAN_INVALID. Other source access failures, including invalid UTF-8 path names, use INVALID_PATH. Exceeded limits use INPUT_TOO_LARGE, and cleanup failures use ARTIFACT_WRITE_FAILED. See the MCP error contract.
  • Scoped linmas install previews the Claude Code MCP entry and registers it after confirmation through claude mcp add-json. It maps project scope to Claude's project scope and Linmas global scope to Claude's user scope. The managed runtime lives under .agents/linmas-mcp. Project registration writes a machine-specific path to .mcp.json, and Claude Code may ask for project approval.
  • Scoped linmas doctor reports the Claude MCP registration and runtime status. When the last managed Claude skill in a scope is removed, uninstall attempts to remove the owned registration and runtime. It preserves foreign entries and retains the managed runtime when cleanup cannot verify ownership or finds another entry referring to its server path. See Install managed skills.

Changed

  • Specialist skills ask for Open questions between Findings and Recommended deterministic checks. Findings require all contract fields and exactly one of Critical, High, Medium, Low, or Info as severity. Partly supported risks use Needs validation. Unsupported assumptions go under Open questions as questions.
  • Specialist review responses must state “Human review disposition is pending.” until a person chooses a disposition. The official choices are A fix_requested, B continue_with_note, C manual_review_required, and D custom_instruction. In the chat fallback, the agent presents the applicable choices and waits. Choice A is omitted when there are no findings.
  • The router names at most one lead and one alternate. If domain, target, and goal are all unknown, it asks for clarification and gives no recommendation. The compliance reviewer gives effort ranges with explicit assumptions. Exploit-validation plans stay within explicitly authorized scope, including any state changes. Retest recommendations are for the code owner.
  • Contributors open pull requests from short-lived branches to main. CI pins third-party actions by full commit SHA, limits job duration, and cancels superseded PR runs. Text checkouts default to LF.

Upgrade notes

  • Scoped Claude Code linmas install --yes now attempts MCP registration. Pass --no-mcp for skills-only installation or --dry-run to preview. An existing foreign linmas MCP entry is preserved and confirmed setup exits 1. Registration or verification failures can also exit 1 even though the skills were installed. A first-time setup with unambiguous configuration can exit 0 with only the skills when the Claude CLI is missing or cannot be launched. With an existing record and intact runtime, the fallback to exit 0 applies when claude is absent from PATH or the spawn reports ENOENT.
  • Alternate Claude user configs or unreadable config directories block global MCP setup and cleanup. A confirmed setup or a blocked cleanup exits 1 and preserves existing MCP data. linmas doctor reports this configuration as unverified and exits 0. Uninstall can also exit 1 if removal cannot be verified or another entry still references the runtime.
  • Once MCP proof writing starts, the tool waits for in-flight filesystem work and cleanup. It can return after timeout_ms, and a rename already in progress can still publish the bundle.
  • Downstream consumers of specialist responses should allow the new Open questions section and pending-disposition line. These are instructions to the agent. Linmas does not enforce this prose format on host responses.

Install or upgrade with Node.js 24 or newer.

npm install --global linmas@0.9.4
linmas --version

Automated verification used offline tests. The usage guide records a manual MCP registration smoke test with Claude Code 2.1.332 on Linux and Node.js 24 at project scope. User scope was exercised with a simulated Claude CLI only. Registration on macOS and Windows remains untested. Scoped install and uninstall apply fail closed on Windows. No live provider review was run, and MCP form elicitation in Claude Code remains unverified. Release-preparation feedback reports that some Claude Code answers still present unverified impact as fact despite the tightened skill instructions.