Skip to content

Document team memory with scoped credentials - #956

Merged
zlareb1 merged 2 commits into
mainfrom
docs/team-memory-access
Nov 19, 2026
Merged

zlareb1 merged 2 commits into
mainfrom
docs/team-memory-access

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 19, 2026

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Documentation (changelog entry is not required)

Changelog entry

The coding-agent connection guide shows separate scoped writer and viewer credentials sharing a team memory, then an out-of-scope namespace read.

Why

The connection guide explains client wiring, and the evaluation guide lists access-control checks. Readers still need concrete token scopes and request identities to reproduce an allowed cross-principal read and a denied namespace read.

Scope and risk

One documentation page adds operator minting, an authenticated HTTP walkthrough, expected responses and example cleanup. It distinguishes token subjects from memory identity labels, warns about point-read fallback, and requires comparing the returned identity. The example uses a disposable namespace and an absent-row write precondition.

These are commands for the reader to run, not captured live results. The HTTP check does not establish end-to-end operation in every coding client or qualify a production deployment.

Compatibility, rollout and rollback

  • Wire and defaults: unchanged. The walkthrough requires a server supporting the if_match_sha256: "absent" create-if-absent contract and admitting the write under its session-protection policy. Current server source supports that precondition; released v1.2.0 does not, so its released-image setup alone is insufficient. A refusal stops the check; the precondition is retained.
  • Operator steps: none for this documentation change. Running the walkthrough requires an authenticated deployment, its operator's signing-key environment, and disposable test credentials and namespace.
  • Rollback: reverting removes the instructions and changes no stored data.

Tests

  • Prettier checks the changed Markdown page.
  • The prose checker and git diff --check pass.
  • bash -n parses the four added shell blocks without executing them.
  • All added relative links and heading targets resolve in the source tree.
  • Token scope, role, identity and namespace-refusal contracts were checked against current and released source. The create-if-absent precondition was verified in current source and found unsupported by v1.2.0; the guide states that server prerequisite. These are source checks, not execution results.
  • Token minting, HTTP calls, cleanup, client operation and dynamic tests were not run. Full required PR CI must pass before merge.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated: Codex wrote the documentation and checked its commands against the source contracts.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • make format-check, make lint, make typecheck and make test-unit pass; required checks run in PR CI.
  • No generated input, migration, plugin or frontend change.
  • Docs describe the current contract and identify the walkthrough's operator prerequisites.
  • Repository text contains no internal deployment details or claimed live result.
  • Commits are signed off.

The create-if-absent precondition needs server support beyond released token and namespace-role handling. Keep no-clobber protection and stop on precondition or session-protection refusals.

Signed-off-by: zlareb1 <[email protected]>
@zlareb1
zlareb1 merged commit 75ce363 into main Nov 19, 2026
49 checks passed
@zlareb1 zlareb1 mentioned this pull request Nov 19, 2026
6 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant