Anchorage API reference
    Preparing search index...

    Variable GOAL_REQUEST_CONTEXT_KEYConst

    GOAL_REQUEST_CONTEXT_KEY: "mastra:goal" = 'mastra:goal'

    requestContext key @mastra/core surfaces the current objective under WITHIN a turn. MIRRORED by value: 'mastra:goal' lives in core's dist/agent/goal/objective.js, which the package exports map does NOT expose (there is no @mastra/core/agent/goal subpath, and neither @mastra/core/tools nor @mastra/core/agent re-exports it), so importing it would mean a forbidden deep dist/ import. Signals take the same mirror-not-deep-import stance for core's XML-name validation. This surface never writes this key; it is reserved here only so the no-collision test pins that it does not collide with the runtime's #requestContextFor base keys. The mirror is defensive-only (nothing here ever writes the key), and the test suite pins it BOTH ways: the no-collision pin against the runtime base keys, and a dist drift-pin reading core's objective.d.ts declaration — so a core bump that changes the value fails a test loudly instead of silently diverging.