test(e2e): provide large real-origin input for approved fetch files - #147
Merged
dlddu-k3s-homelab-k3s-mcp[bot] merged 2 commits intoSep 15, 2026
Conversation
dlddu-k3s-homelab-k3s-mcp
Bot
deleted the
reconcile/rct_20260915-0001-session-platform-e2e-mock-policy
branch
September 15, 2026 09:29
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.
Problem and result
The real fetch origin returns a 226-byte document, so it cannot supply the >100,000-byte input needed for approval-gated scenario 6(a)'s file result. This adds an opt-in
/large-doc[/<session-key>]endpoint serving a deterministic 131,072-byte HTTP response./doc, itsDOCUMENToverride, and per-session access-log behavior remain compatible.Reconciliation task:
tbm_session-platform-e2e-mock-policy/rct_20260915-0001.Plan and scope
tbm_session-platform-scenario-e2e/rct_20260912-0005in the blocker ledger, including resolution direction, owner, prerequisite and review date (first commit).The final diff is limited to
deploy/fetch-origin.yamlanddocs/test/e2e.md. This establishes harness input readiness. Scenario 6's approved fetch, shared-volume assertions and snapshot/restore coverage remain follow-up work; #127, #130 and #142 keep their existing ownership and approval workflows.Validation
server.js, checked Node syntax, and served it over real HTTP using Node v22.20.0./docand keyed paths return 226 and 29 bytes respectively; bare and keyed/large-docreturn 131,072 bytes with matchingContent-Length, exceeding the currentmaxInlineBodyBytesvalue of 100,000.017332cb71752e5bba87a15f650c6c9d882967df97fb35761edb266437fb88df.git diff --checkpass. Seam counts remain 7 registered / 20 accounted / 0 violations; scenario mapping remains37 = 0 + 3 + 34 + 0.deploy/change triggers the existing kind E2E workflow; its result must be checked for this PR head before merge.Risk: low; a fixed 128 KiB allocation and an additive path in the kind test origin. Rollback is a reviewed revert of this PR, preserving any later consumer handoff in the blocker ledger.