W7-P delta: production gateway and strict Flue artifact boundary - #513
Merged
Conversation
|
2027 auto-runs evals against preview deployments of your docs. To enable this, install one of:
Once a preview is deployed, open a new PR and we'll run the eval automatically. Evaluating agent experience using 2027.dev · View dashboard |
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.
Review unit
This is the
opencomputerW7-P delta against the existingflue-nativeevergreen. It owns the CLI artifact boundary and the permanent managed-model gateway.The evergreen base has been advanced through the requested latest-
mainreconciliation. This PR contains the focused implementation commit5c465a6plus the round-2 review closure7a284e4; its head is the exact code tested below.No production resources, configuration, or secrets have been changed by this PR.
Why
The real Flue build emits a noisy Wrangler resolution object containing local paths and capabilities the platform neither needs nor wants to accept. At the same time, the W6 gateway still carried acceptance-rig naming and fallback configuration. This delta makes both boundaries explicit before the permanent production topology is provisioned.
What changed
flue_wranglerdescriptor instead of forwarding the raw build-generated Wrangler object..js/.mjsfiles; ignores only known Wrangler metadata,.vite/**, and source maps, while rejecting symlinks, special files, and every unexpected regular file instead of silently shipping a broken Worker. Legitimate.flue-vitemodules remain included.oc-agent-gatewayand pins the explicit production Worker identity tooc-agent-gateway-prod; default deployment is non-production/fail-closed.TEST_OR_KEYfrom the gateway contract entirely, so tests and production both fail closed through the same org-scoped key seam; also removes budget-default behavior from production.agt_[0-9a-f]{24}agent identity at the gateway boundary.sessions-api.Invariants to review closely
sessions-apiindependently validates the descriptor and archive before upload.flueremains where it describes the runtime/adapter contract; it does not name the permanent gateway or platform topology.FLUE_REGISTRY→FlueRegistryremain intentional Flue ABI conformance gates. A real beta.9 build was checked under Node 22.19 and matches them; a runtime bump must update the reviewed profile rather than silently widening it.Round-2 review closure
.jsruntime modules plus the known ignored Wrangler/Vite/source-map metadata.agt_*identity, and the exact Flue compatibility/registry ABI pins.Deliberately not added
Verification
Cutover contract
This PR is one side of a coordinated maintenance cutover; it does not provide a mixed-version compatibility window. The old and new gateway/token/header contracts must not be deployed out of order. The runbook requires dark Worker provisioning, a frozen intake window, the
sessions-apiswitch, and redeploy of every retained agent before traffic reopens. W6 Durable Object state is not migrated across namespaces; surviving session state aborts the cutover.Cross-repo contract
Companion deltas:
sessions-api#74 andoc-runtimes#8. The complete contract, review acknowledgements, rollout order, rollback coordinates, and acceptance matrix live in W7-P of working doc 022.