feat(flowsafe): Track F — goals (M-005)#29
Merged
Merged
Conversation
…a:goal reservation) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
anchorage-showcase | 6c80e92 | Jul 17 2026, 05:45 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wave 5/7 of the long-running-agents program (plan M-005, DL-018/DL-007/DL-006). Smallest track: the goal objective surface over Track C's already-merged
mastra_thread_statedomain — no new table, no schema-guard/purge/TTL change, additive-only, opt-in.What ships
@proofoftech/flowsafe/goals(new subpath):createObjectiveRouter— role-gated + audited set/get/update/clear (PUT/GET/PATCH/DELETE /api/threads/:threadId/goal) over the thread-scoped goal record (GOAL_STATE_TYPE 'goal'), persisting through core's OWNwriteObjective/readObjective/clearObjectiveso the stored shape is byte-identical to what the durable goal step reads viaresolveGoalStore(DL-018 premise proven on workerd).assertNoClientMemoryIds→ field allowlist → maxRuns cap; audited on accept and EVERY post-auth denial (pre-auth 401 un-audited).DEFAULT_GOAL_MAX_RUNS(50); Track F starts NO runs — run budgets stay at the existing seams.GOAL_REQUEST_CONTEXT_KEY('mastra:goal') reserved: mirrored (NOT exports-reachable in core 1.50.0 — verified against the exports map), no-collision-pinned against the#requestContextForbase keys AND drift-pinned against the core dist declaration (a core bump changing the value fails loudly).buildObjectiveRouterincreateFlowsafeWorker(mirrors Track C'sbuildSignalRouter); absent ⇒ byte-identical hosts.spike:verifyon real workerd+D1: route-write → durable read-path round-trip; cross-tenant 404 + over-cap 400 both audited; objective survives kill+restart.Verification
spike:verify(scenario ladder A–M) — all green, run twice (implementer + independent orchestrator re-run).system_ids, prototype-pollution bodies, maxRuns boundary sweep, capability hygiene, spike-restart integrity).judgeModelIdrejection, explicit write-serialization documentation (update is a non-atomic RMW at the Worker — core-parity, within-tenant).Follow-up notes (reviewer LOWs, deliberately not fixed here)
error.message— the shared convention across all four routers; candidate for one cross-cutting hardening pass, not a per-track divergence.request.text()read (same as signals; bounded by the platform request limit).purgeTenant).🤖 Generated with Claude Code