Skip to content

security(ai-native-memory): gate must re-derive query expectations from derived_from #175

Description

@dsmcewan

Blocker 2. gate.mjs compares submitted answers to stored expected values, never re-deriving from derived_from — a query pointing at a nonexistent/drifted contract still yields implementation_authority GRANTED. The authority read is also unconfined (../ escapes the repo). Fix: extract audit.mjs's re-derivation into a shared lib and enforce it at gate time; confine the authority read. Verified: gate.mjs:68-73,280-288.

Part of the v0.3.0 production quest (product-1). Verified at release commit fc0fa05.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions