Repository navigation
feat(authority): enforce delegated capability sets - #673
Merged
Merged
Conversation
jhrozek
force-pushed
the
feat/authority-evaluator-clean
branch
2 times, most recently
from
August 20, 2026 13:13
41faf3d to
a81978e
Compare
2 of 3 tasks
jhrozek
force-pushed
the
feat/authority-evaluator-clean
branch
from
August 20, 2026 15:06
a81978e to
282b330
Compare
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
…trees Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
jhrozek
force-pushed
the
feat/authority-evaluator-clean
branch
from
August 20, 2026 19:56
282b330 to
a02cbf4
Compare
# Conflicts: # llms.txt
# Conflicts: # llms.txt
jhrozek
added a commit
that referenced
this pull request
Aug 24, 2026
…744) The hole: two jsonlstore tests expected the store root to be symlink-resolved. `normalizeStoreRoot` has only ever called `filepath.Abs` — absolute plus lexical Clean, no symlink resolution — and #673 changed no production line in this package; it edited test files only, running `filepath.EvalSymlinks` over the *expectations*. On Linux `t.TempDir()` is already canonical so the two agree and CI stays green. On macOS `/var` is a symlink to `/private/var`, so `TestStoreNormalizesRootAndConfinesInventoryNames` and `TestSessionStorageContinuity_Scenario1_AtomicCrashRecovery/temporary _replacement_shares_destination_directory` both fail on `main`. The fix: revert both expectations to the un-resolved path, which is what the store actually produces, and document the invariant on `normalizeStoreRoot` so a future macOS flake is not "fixed" by swapping in EvalSymlinks on the production side. The invariant preserved: the store root is the path the operator configured, normalized lexically. Every resolver-derived path, flock identity and diagnostic hangs off it, so resolving symlinks there would silently rewrite all of them. Proof: the two tests above now pass on macOS and remain unchanged in meaning on Linux — they assert `filepath.Abs` semantics directly. Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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.
Summary
Closes #371.
This adds a durable, monotone delegated-authority boundary behind
port.AuthorityEvaluator:executeboundary. Tool disclosure is guidance only; stale or forged calls cannot bypass evaluation.mcp__github__list_issues. Filesystem policy receives a normalized physical target rather than raw arguments.localis the default exact-set evaluator;noopis an explicit opt-out; opt-in Cedar can add operator-owned denials but cannot grant an omitted capability.Compatibility
Normal main-session tools continue to work: root authority is minted from the same assembled catalog. The notable migration case is an explicit specialist with an inline-only MCP server: its tool was not carried by the parent root, so
localnow denies it. Move that server into the main configured MCP catalog and reference it from the specialist, or use--authority-evaluator=nooptemporarily while migrating.Documentation
Verification
cd engine && go test ./governance ./port ./session ./tool ./agent ./adapter/authorityconformance ./adapter/localauthority ./adapter/noopauthority ./adapter/sessnap ./adapter/eventsource ./adapter/memfsgo test ./internal/app ./internal/adapter/cedarauthority ./cmd/mecatedtask api:checktask docsinternal/adapter/serverretains the known flakyTestFireDelivery_Scenario6_RemoteTUIRendersDeliveryLivetemp-directory cleanup failure; it is unrelated to this change.