Skip to content

Implement the ADR 0148 actor cache interface and in-memory backend #9271

Closed

Description

@ifireball

What is missing

ADR 0148 permits bounded reuse of actor data for entity CEL, but Fullsend needs a cache API and implementation for that reuse.

What should happen

  • Define a Fullsend actor identifier, analogous to the entity identifier in the entity model, to scope cache entries.
  • Define a cache interface with Get(actorID) returning the normalized entity’s actor object or a miss; Put(actorID, entry); and Invalidate(actorID).
  • Provide a thread-safe in-memory implementation.
  • Preserve ADR 0148’s scope, expiry, and invalidation rules. Reuse only provider-verified authorization data; entity-specific facts and CEL decisions must remain current.

Context

This implements the actor cache primitive for ADR 0148. Related, distinct work: #8724 and #8414.

Activity

  1. fullsend-ai-triage commented on Nov 10, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 12:40 PM UTC · Completed 12:42 PM UTC

    Commit: ef7c61e · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.23

  2. added
    feature
    triaged
    on Nov 10, 2026
  3. fullsend-ai-triage commented on Nov 10, 2026

    @fullsend-ai-triage

    Triage summary

    This is a well-scoped new-feature request with no blockers and no in-flight PR/MR. The normative contract already pins down most design details, so implementation can start without further input.

    Design guidance from the contract (Authorization Contract v2, "Bounded CEL actor-verdict cache"):

    • The actor identifier/key must bind provider, tenant, canonical repo/project, immutable actor ID, verified actor kind, effective policy and revision, and permission source. It also binds ref, OWNERS/OWNERS_ALIASES revision, or bot-registry revision where applicable. A login or entity ID is not a valid key.
    • Entries store only the verified role or verified absence. They never store harness threshold results, CEL decisions, or label-transition grants.
    • Expiry is absolute, measured from lookup start, capped at five minutes, and never extended by a hit. Failed, incomplete, or unverifiable results must not be stored. Without a configured platform max age, cross-check reuse stays disabled.
    • Invalidation must work independently of TTL for known role, membership, OWNERS, bot-registry, or policy changes.
    • The cache must not be used for event admission or model-bound content admission.

    Existing code to build on: normevent.Actor already carries ID, kind, role, bot role, and role-verified fields. No actor cache code exists yet, so this is a new package.

    Suggested test case (conceptual):

    with fake clock and max age = 5m:
      Put(key, verifiedRole@t0)      -> Get(key) at t0+4m hits
      Get(key) at t0+5m              -> miss (hits did not extend expiry)
      Put(failed/unverified entry)   -> rejected, Get misses
      keys differing in any dimension -> distinct entries
      Invalidate(key)                -> only that entry misses
      max age unset                  -> every Get misses
      concurrent Get/Put/Invalidate  -> clean under -race
    

    The related issues #8724 and #8414 are closed and cover distinct work. Wiring the cache into the entity-CEL path is outside this issue's scope. This is a feature, so automatic promotion to code does not apply; a maintainer can apply the ready-to-code label when ready.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  4. ifireball commented on Nov 10, 2026

    @ifireball
    MemberAuthor

    /fs-code

  5. fullsend-ai-coder commented on Nov 10, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 12:52 PM UTC · Completed 1:03 PM UTC

    Commit: ef7c61e · View workflow run →

    Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $1.77

  6. added a commit that references this issue on Nov 10, 2026
  7. self-assigned this
    on Nov 10, 2026
  8. added 2 commits that reference this issue on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featuretriaged

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions