feat: compile and enforce declared model policy#89
Merged
Conversation
claw now checks GitHub releases once per 24h and prints a notice at the end of any command when a newer version is available. Skipped for dev builds. Cache lives at ~/.claw/.claw-update-check. Added ## Update section to README documenting the install.sh update path.
Adds `claw update` which pipes install.sh through sh — same verified install path as the initial install. Update notices now say "run: claw update" instead of the raw curl.
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.
Problem
This change moves model/provider authority to the infrastructure layer instead of leaving it to individual runners.
The immediate driver was cllama model-policy work, but the merged branch also carried adjacent CLI and spike-harness changes that were needed to make the behavior testable and usable end to end.
What Changed
Compile model policy during
claw upinternal/cllama/modelpolicy.goclaw upnow emits per-agentmodel_policymetadata into cllama context from the ClawfileMODELdirectivescllamaa compiled allowlist/failover view of what each agent is allowed to useDocument the trust-boundary decision
Wire in the proxy enforcement change
cllamasubmodule to the policy-enforcing version from feat: enforce declared model policy in cllama cllama#4cllamaenforcesImprove rollcall spike coverage
cllama/under test instead of accidentally reusing a stale cached imageImprove update UX while this branch was open
These changes also landed on the same merged branch:
claw updateclaw updateFiles of Interest
internal/cllama/modelpolicy.gocmd/claw/compose_up.gocmd/claw/compose_up_test.gocmd/claw/spike_test.gocmd/claw/spike_rollcall_test.goexamples/rollcall/Dockerfile.picoclaw-basecmd/claw/update.gocmd/claw/update_check.godocs/decisions/019-model-policy-authority-and-declared-failover.mdTesting
go test ./...go test ./...incllama/go test -tags spike -v -run TestSpikeRollCall -timeout 45m ./cmd/claw/...Depends On