Skip to content

S3 — Analysis policy adapter (capability check) #6

Description

@tada5hi

Part of the node-message-broker build-out (Track B, Hub Plan 013 Phase 4). See .agents/plans/001-message-broker.md (local working doc).

Goal: enforce that the calling analysis may use the broker (analysis policy lives node-side; the Hub is analysis-agnostic).

Steps

  • Implement IAnalysisPolicy.assertMayUse(analysisId, token) (adapters/analysis/analysis-policy.ts): assert the analysis client holds ANALYSIS_SELF_MESSAGE_BROKER_USE — from verified token claims or via server-core introspection. Throw ForbiddenError otherwise.

Depends on: S2 (core client, if introspection is used).

Acceptance: allows a token with the capability; rejects one without; rejects a token whose analysis ≠ path :id.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions