Skip to content

protocol: grow the scope vocabulary for sensitive verbs (set_model / rotate / rename / export / import) #111

Description

@saucam

From the protocol audit (P2). 9 scopes gate 24 verbs; several sensitive verbs piggyback on generic scopes: session.set_model (cost implications), session.rotate, session.rename all ride session:send; session.export (full transcript + memory egress) rides list-class scope. Least-privilege delegation becomes load-bearing when the conductor starts delegating scopes (PR #51 design: owner → conductor → children).

Plan: add finer scopes (e.g. session:configure, session:export) with the legacy scope treated as implying them for back-compat (existing tokens keep working); update WATCHER_SCOPES/OPERATOR_SCOPES presets; audit every hasScope site in session-manager.ts against a documented verb→scope table (belongs in PROTOCOL.md, see the spec issue).

Metadata

Metadata

Assignees

No one assigned

    Labels

    auditSurfaced in a code auditenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions