Streamable HTTP endpoint validates neither Origin nor Host #39

Closed
opened 2026-11-19 21:45:35 +00:00 by svc-agent-writer · 5 comments

This was generated by AI during triage.

Filed under: operator word "go" sha256:4cd0e21a9a07

Summary

The served MCP endpoint accepts every Origin header and every Host header. The MCP Streamable HTTP transport requires Origin validation. The provider does not meet that requirement.

Requirement

The MCP transport specification, revision 2025-11-25, section "Streamable HTTP", Security Warning, says:

Servers MUST validate the Origin header on all incoming connections to prevent DNS rebinding attacks. If the Origin header is present and invalid, servers MUST respond with HTTP 403 Forbidden.

The attention contract tells an external provider to implement that transport (section "Wire artifacts and mapping" at mind-spec 3da6a26). The draft connectivity requirement MCN-005 in mind-spec also says that Host/Origin controls remain valid for the route.

Evidence

Checked at provider commit 3862272 with the locked dependencies: fastmcp 3.4.11, mcp 1.30.0, starlette 1.10.0.

Source reading:

  • The adapter builds the app with http_app(path="/mcp", stateless_http=True, json_response=True). It passes no host_origin_protection, allowed_hosts or allowed_origins.
  • fastmcp's default is http_host_origin_protection = False. With that value fastmcp installs no HostOriginGuardMiddleware.
  • fastmcp builds the session manager without security_settings. The mcp SDK then runs with enable_dns_rebinding_protection=False.
  • The repo's own ASGI boundary checks the bearer and the byte limits. It reads neither header.

Live probe on loopback, with a synthetic queue and a synthetic credential in temporary directories. Each request is an initialize POST unless the row says otherwise.

Request Status
Valid bearer, no Origin 200
Valid bearer, Origin: https://evil.example 200
Valid bearer, Host: evil.example:<port> 200
Valid bearer, both headers above 200
Valid bearer, Origin: null 200
Valid bearer, both headers above, tools/list 200
No bearer, Origin: https://evil.example 401
OPTIONS preflight from https://evil.example, no bearer 401, no Access-Control-* headers

Existing mitigation

Every request needs a bearer, including on loopback. A web page does not hold the token, and the preflight request fails. This lowers the severity. It does not meet the requirement.

Rulings

Piers made these rulings on 2026-11-20.

  1. Origin policy. The endpoint refuses every request that carries an Origin header. It keeps no list of allowed origins. messages-mind uses the same policy.
  2. Host allowlist surface. The operator names each additional allowed host with a repeatable serve option. The value is not stored with the queue.
  3. Order. The Host check and the Origin check run before the bearer check.
  4. Release chain. Packaged acceptance (#8) lists this issue under ## Blocked by.
  5. Implementation route. The control is a guard in the repo's own ASGI boundary. It checks Host first, then Origin. It uses neither fastmcp's guard nor Starlette's TrustedHostMiddleware.

Known risk of ruling 1: it locks out any client that sends Origin. Whether the Grok connector sends Origin is not verified. A list of allowed origins is an additive change, and it needs a new ruling.

Agent Brief

Category: bug

Summary: Validate Host and refuse Origin on every request to the MCP endpoint.

Current behavior: The endpoint serves an authenticated request whatever its Origin and Host headers say.

Desired behavior:

  • A request whose Host header is not on the allowlist gets HTTP 421.
  • A request that carries an Origin header gets HTTP 403. This applies to every value, including a loopback origin and null.
  • A request with no Origin header passes the Origin check. A non-browser client sends none.
  • Both checks run before the bearer check. An unauthenticated request with a refused header gets 421 or 403, not 401.
  • The default allowlist holds the loopback names only. The operator adds the ingress hostname with the repeatable serve option.
  • A refusal has a fixed body. It repeats no header value, and the log records no header value.
  • The control does not depend on a default of fastmcp or of the mcp SDK.

Key interfaces:

  • The serve command: one new repeatable option that names one allowed host for each use.
  • The app factory in the MCP adapter and the repo's own ASGI boundary: the request path that the control joins.
  • fastmcp offers host_origin_protection, allowed_hosts and allowed_origins on http_app. Its guard alone does not meet ruling 1. Read the notes below.

Acceptance criteria:

  • A served request with a valid bearer and no Origin succeeds.
  • A served request with a valid bearer and a foreign Origin returns 403.
  • A served request with a valid bearer and a loopback Origin returns 403.
  • A served request with a valid bearer and Origin: null returns 403.
  • A served request with a valid bearer and a Host that is not on the allowlist returns 421.
  • A served request with a Host that the serve option names succeeds.
  • A served request with no bearer and a refused header returns 421 or 403, not 401.
  • No refusal body contains a header value from the request.
  • Transport tests cover each case above against the real served app, so a dependency change cannot remove the control silently.
  • The README describes the control and the serve option.

Out of scope:

  • CORS support for browser clients.
  • A list of allowed origins.
  • Rate limiting.
  • Any change to the domain contract, the tool surface or the authentication model.
  • Ingress, TLS or tunnel configuration.

Notes for the implementer

  • fastmcp's guard accepts every loopback Origin when the Host is loopback, in strict mode too. It therefore does not refuse every Origin.
  • fastmcp's "auto" mode decides from the local address of the connection. In an in-process probe with a simulated non-loopback address, "auto" let a foreign Host through. That probe did not run under uvicorn in a container, so verify the packaged case directly.
  • The sibling minds use three different shapes. messages-mind allows listed hosts and refuses every request that carries Origin. mail-mind and people-mind allow listed hosts through Starlette's TrustedHostMiddleware, and source reading finds no Origin check in either. Those two were not probed.
> *This was generated by AI during triage.* Filed under: operator word "go" sha256:4cd0e21a9a07 ## Summary The served MCP endpoint accepts every `Origin` header and every `Host` header. The MCP Streamable HTTP transport requires `Origin` validation. The provider does not meet that requirement. ## Requirement The [MCP transport specification, revision 2025-11-25](https://modelcontextprotocol.io/specification/2025-11-25/basic/transports), section "Streamable HTTP", Security Warning, says: > Servers **MUST** validate the `Origin` header on all incoming connections to prevent DNS rebinding attacks. If the `Origin` header is present and invalid, servers **MUST** respond with HTTP 403 Forbidden. The attention contract tells an external provider to implement that transport (section "Wire artifacts and mapping" at mind-spec `3da6a26`). The draft connectivity requirement MCN-005 in mind-spec also says that Host/Origin controls remain valid for the route. ## Evidence Checked at provider commit `3862272` with the locked dependencies: fastmcp 3.4.11, mcp 1.30.0, starlette 1.10.0. Source reading: - The adapter builds the app with `http_app(path="/mcp", stateless_http=True, json_response=True)`. It passes no `host_origin_protection`, `allowed_hosts` or `allowed_origins`. - fastmcp's default is `http_host_origin_protection = False`. With that value fastmcp installs no `HostOriginGuardMiddleware`. - fastmcp builds the session manager without `security_settings`. The mcp SDK then runs with `enable_dns_rebinding_protection=False`. - The repo's own ASGI boundary checks the bearer and the byte limits. It reads neither header. Live probe on loopback, with a synthetic queue and a synthetic credential in temporary directories. Each request is an `initialize` POST unless the row says otherwise. | Request | Status | | --- | --- | | Valid bearer, no `Origin` | 200 | | Valid bearer, `Origin: https://evil.example` | 200 | | Valid bearer, `Host: evil.example:<port>` | 200 | | Valid bearer, both headers above | 200 | | Valid bearer, `Origin: null` | 200 | | Valid bearer, both headers above, `tools/list` | 200 | | No bearer, `Origin: https://evil.example` | 401 | | `OPTIONS` preflight from `https://evil.example`, no bearer | 401, no `Access-Control-*` headers | ## Existing mitigation Every request needs a bearer, including on loopback. A web page does not hold the token, and the preflight request fails. This lowers the severity. It does not meet the requirement. ## Rulings Piers made these rulings on 2026-11-20. 1. **Origin policy.** The endpoint refuses every request that carries an `Origin` header. It keeps no list of allowed origins. messages-mind uses the same policy. 2. **Host allowlist surface.** The operator names each additional allowed host with a repeatable `serve` option. The value is not stored with the queue. 3. **Order.** The Host check and the Origin check run before the bearer check. 4. **Release chain.** Packaged acceptance (#8) lists this issue under `## Blocked by`. 5. **Implementation route.** The control is a guard in the repo's own ASGI boundary. It checks `Host` first, then `Origin`. It uses neither fastmcp's guard nor Starlette's `TrustedHostMiddleware`. Known risk of ruling 1: it locks out any client that sends `Origin`. Whether the Grok connector sends `Origin` is not verified. A list of allowed origins is an additive change, and it needs a new ruling. ## Agent Brief **Category:** bug **Summary:** Validate `Host` and refuse `Origin` on every request to the MCP endpoint. **Current behavior:** The endpoint serves an authenticated request whatever its `Origin` and `Host` headers say. **Desired behavior:** - A request whose `Host` header is not on the allowlist gets HTTP 421. - A request that carries an `Origin` header gets HTTP 403. This applies to every value, including a loopback origin and `null`. - A request with no `Origin` header passes the Origin check. A non-browser client sends none. - Both checks run before the bearer check. An unauthenticated request with a refused header gets 421 or 403, not 401. - The default allowlist holds the loopback names only. The operator adds the ingress hostname with the repeatable `serve` option. - A refusal has a fixed body. It repeats no header value, and the log records no header value. - The control does not depend on a default of fastmcp or of the mcp SDK. **Key interfaces:** - The `serve` command: one new repeatable option that names one allowed host for each use. - The app factory in the MCP adapter and the repo's own ASGI boundary: the request path that the control joins. - fastmcp offers `host_origin_protection`, `allowed_hosts` and `allowed_origins` on `http_app`. Its guard alone does not meet ruling 1. Read the notes below. **Acceptance criteria:** - [ ] A served request with a valid bearer and no `Origin` succeeds. - [ ] A served request with a valid bearer and a foreign `Origin` returns 403. - [ ] A served request with a valid bearer and a loopback `Origin` returns 403. - [ ] A served request with a valid bearer and `Origin: null` returns 403. - [ ] A served request with a valid bearer and a `Host` that is not on the allowlist returns 421. - [ ] A served request with a `Host` that the `serve` option names succeeds. - [ ] A served request with no bearer and a refused header returns 421 or 403, not 401. - [ ] No refusal body contains a header value from the request. - [ ] Transport tests cover each case above against the real served app, so a dependency change cannot remove the control silently. - [ ] The README describes the control and the `serve` option. **Out of scope:** - CORS support for browser clients. - A list of allowed origins. - Rate limiting. - Any change to the domain contract, the tool surface or the authentication model. - Ingress, TLS or tunnel configuration. ## Notes for the implementer - fastmcp's guard accepts every loopback `Origin` when the `Host` is loopback, in strict mode too. It therefore does not refuse every `Origin`. - fastmcp's `"auto"` mode decides from the local address of the connection. In an in-process probe with a simulated non-loopback address, `"auto"` let a foreign `Host` through. That probe did not run under uvicorn in a container, so verify the packaged case directly. - The sibling minds use three different shapes. messages-mind allows listed hosts and refuses every request that carries `Origin`. mail-mind and people-mind allow listed hosts through Starlette's `TrustedHostMiddleware`, and source reading finds no `Origin` check in either. Those two were not probed.
Author
Member

This was generated by AI during triage.

Piers ruled on the implementation route on 2026-11-20. Ruling 5 in the issue body records it: the control is a guard in the repo's own ASGI boundary, with the Host check (421) before the Origin check (403), and both before the bearer check.

Reasons: fastmcp's guard accepts a loopback Origin when the Host is loopback, so it does not meet ruling 1. Starlette's TrustedHostMiddleware answers 400, not 421. messages-mind already uses the boundary-guard shape.

The human act that this issue reserved is done, so the ## Human act section is removed and the label moves to ready-for-agent. The agent brief in the issue body is the specification. The attention seat drives the SVD run.

One difference from messages-mind: this provider allows the loopback names by default. Do not make the host list a required setting.

> *This was generated by AI during triage.* Piers ruled on the implementation route on 2026-11-20. Ruling 5 in the issue body records it: the control is a guard in the repo's own ASGI boundary, with the `Host` check (421) before the `Origin` check (403), and both before the bearer check. Reasons: fastmcp's guard accepts a loopback `Origin` when the `Host` is loopback, so it does not meet ruling 1. Starlette's `TrustedHostMiddleware` answers 400, not 421. messages-mind already uses the boundary-guard shape. The human act that this issue reserved is done, so the `## Human act` section is removed and the label moves to `ready-for-agent`. The agent brief in the issue body is the specification. The attention seat drives the SVD run. One difference from messages-mind: this provider allows the loopback names by default. Do not make the host list a required setting.
Collaborator

⏸ SVD architect gate: dev/attention-mind-mcp#39 streamable-http-endpoint-validates-neither-origin-nor-host

Status: CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity standard · dispatch effort medium

Run: 20261119T220620Z-16f00bfd

Held because: CLEAN but 4 open risk(s) (3 verification · 1 decision) — HOLD-ALL parks everything. The risks, verbatim:

Open risks:

  1. Whether the Grok connector (or any target client) sends Origin is unverified; ruling 1 accepts the lockout. Post-merge check: send one live request from the connector to a served build and expect 200. A 403 origin_refused means a new ruling on a list of allowed origins is needed. [verification]
  2. Packaged/container case (#8): under uvicorn in the container behind ingress, with --allowed-host , a request through ingress must return 200, direct Host: evil.example must return 421 and Origin: null must return 403. Also confirm the Host value ingress forwards equals the configured name. [verification]
  3. The brief left three details open and the spec chose them: (a) the port is ignored when matching Host, so the option takes a bare host name; (b) a missing or duplicated Host gets 421; (c) the refusal codes are {"error":"misdirected_request"} for 421 and {"error":"origin_refused"} for 403. messages-mind's codes and port semantics could not be read (sibling repo outside the sandbox). Does the architect accept these, or name messages-mind's codes to copy for cross-mind uniformity? [decision]
  4. Websocket scopes still pass through Boundary unguarded (mcp_adapter.py:116-118, unchanged); this is safe only while fastmcp's http_app exposes no websocket route. Integration-verify should confirm a websocket upgrade to /mcp on the served app is refused, with or without a foreign Host; if not, guard websocket scopes in a follow-up. [verification]

Change: Add the guard to Boundary.call in src/attention_mind_mcp/mcp_adapter.py, right after the non-http pass-through (:116-118) and before the capacity check (:119) and the bearer check in _http (:202-209). The checks are: exactly one Host whose host part (port stripped, lowercased) is in LOOPBACK_HOSTS={localhost,127.0.0.1,[::1]} (spelling from binding.py:53) plus the operator hosts, else _reply(421,{"error":"misdirected_request"}); then any Origin header, else _reply(403,{"error":"origin_refused"}). Mirror the _http header-scan shape (:203-205) and the fixed-body _reply calls (:94-107, :120). Add a public allowed_host() normaliser. Boundary/create_app gain an additive allowed_hosts kwarg; http_app (:307) stays argument-identical (no fastmcp guard). cli.py serve gains a repeatable --allowed-host (dest=allowed_hosts, action=append, type=allowed_host, default=[]), mirroring --grant at :55, passed only to create_app at :109 and never to Store. Reader fixes: tests/test_queries.py drive() gets a loopback Host; the two test_foundation Boundary tests move base_url from http://test to http://127.0.0.1; running_server gains an extra=() kwarg. New unit and transport tests go in tests/test_foundation.py. README :52/:110 document the control and the option.

Files: src/attention_mind_mcp/mcp_adapter.py · src/attention_mind_mcp/cli.py · tests/test_foundation.py · tests/test_queries.py · README.md

Decision: accept the 4 open risk(s) above and dispatch this spec (svd:go), or park (svd:skip) / re-spec (svd:respec)?

Your call (when this issue is held at the gate via svd:hold):

  • add label svd:go — approve; Half-B dispatch accepts exactly this spec (open risks accepted)
  • add label svd:fire beside svd:go — approve AND authorise the Half-B fire from the phone; never on its own
  • add label svd:skip — park it; dispatch refuses it and the issue stays for a human
  • add label svd:respec — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context

Spec: /Users/piers/src/attention-mind-mcp/data/svd39/specs/2026-11-19-streamable-http-endpoint-validates-neither-origin-nor-host.md — next: codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/src/attention-mind-mcp/data/svd39/specs/2026-11-19-streamable-http-endpoint-validates-neither-origin-nor-host.md

label flip withheld (--no-label-writes); gate label is the orchestrator's act — attention

### ⏸ SVD architect gate: dev/attention-mind-mcp#39 streamable-http-endpoint-validates-neither-origin-nor-host **Status:** CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity `standard` · dispatch effort `medium` **Run:** `20261119T220620Z-16f00bfd` **Held because:** CLEAN but 4 open risk(s) (3 verification · 1 decision) — HOLD-ALL parks everything. The risks, verbatim: **Open risks:** 1. Whether the Grok connector (or any target client) sends Origin is unverified; ruling 1 accepts the lockout. Post-merge check: send one live request from the connector to a served build and expect 200. A 403 origin_refused means a new ruling on a list of allowed origins is needed. [verification] 2. Packaged/container case (#8): under uvicorn in the container behind ingress, with --allowed-host <ingress name>, a request through ingress must return 200, direct Host: evil.example must return 421 and Origin: null must return 403. Also confirm the Host value ingress forwards equals the configured name. [verification] 3. The brief left three details open and the spec chose them: (a) the port is ignored when matching Host, so the option takes a bare host name; (b) a missing or duplicated Host gets 421; (c) the refusal codes are {"error":"misdirected_request"} for 421 and {"error":"origin_refused"} for 403. messages-mind's codes and port semantics could not be read (sibling repo outside the sandbox). Does the architect accept these, or name messages-mind's codes to copy for cross-mind uniformity? [decision] 4. Websocket scopes still pass through Boundary unguarded (mcp_adapter.py:116-118, unchanged); this is safe only while fastmcp's http_app exposes no websocket route. Integration-verify should confirm a websocket upgrade to /mcp on the served app is refused, with or without a foreign Host; if not, guard websocket scopes in a follow-up. [verification] **Change:** Add the guard to Boundary.__call__ in src/attention_mind_mcp/mcp_adapter.py, right after the non-http pass-through (:116-118) and before the capacity check (:119) and the bearer check in _http (:202-209). The checks are: exactly one Host whose host part (port stripped, lowercased) is in LOOPBACK_HOSTS={localhost,127.0.0.1,[::1]} (spelling from binding.py:53) plus the operator hosts, else _reply(421,{"error":"misdirected_request"}); then any Origin header, else _reply(403,{"error":"origin_refused"}). Mirror the _http header-scan shape (:203-205) and the fixed-body _reply calls (:94-107, :120). Add a public allowed_host() normaliser. Boundary/create_app gain an additive allowed_hosts kwarg; http_app (:307) stays argument-identical (no fastmcp guard). cli.py serve gains a repeatable --allowed-host (dest=allowed_hosts, action=append, type=allowed_host, default=[]), mirroring --grant at :55, passed only to create_app at :109 and never to Store. Reader fixes: tests/test_queries.py drive() gets a loopback Host; the two test_foundation Boundary tests move base_url from http://test to http://127.0.0.1; running_server gains an extra=() kwarg. New unit and transport tests go in tests/test_foundation.py. README :52/:110 document the control and the option. **Files:** `src/attention_mind_mcp/mcp_adapter.py` · `src/attention_mind_mcp/cli.py` · `tests/test_foundation.py` · `tests/test_queries.py` · `README.md` **Decision:** accept the 4 open risk(s) above and dispatch this spec (`svd:go`), or park (`svd:skip`) / re-spec (`svd:respec`)? **Your call** (when this issue is held at the gate via `svd:hold`): - add label `svd:go` — approve; Half-B dispatch accepts exactly this spec (open risks accepted) - add label `svd:fire` **beside** `svd:go` — approve AND authorise the Half-B fire from the phone; never on its own - add label `svd:skip` — park it; dispatch refuses it and the issue stays for a human - add label `svd:respec` — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context <sub>Spec: `/Users/piers/src/attention-mind-mcp/data/svd39/specs/2026-11-19-streamable-http-endpoint-validates-neither-origin-nor-host.md` — next: `codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/src/attention-mind-mcp/data/svd39/specs/2026-11-19-streamable-http-endpoint-validates-neither-origin-nor-host.md`</sub> label flip withheld (--no-label-writes); gate label is the orchestrator's act — attention
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#39 streamable-http-endpoint-validates-neither-origin-nor-host completed integration verify.

  • PR: #40
  • Branch: feat/svd-dev-attention-mind-mcp-39-streamable-http-endpoint-v-64403f95
  • Commit: 99bbcf6554
  • Build: none
  • Test: red
  • Reader audit clean: True
  • Spec fidelity: True
  • Ready for merge: False
  • Check ci/woodpecker/pr/validation: pending https://ci.groupthink.asia/repos/76/pipeline/45/1
  • Checks: ci/woodpecker/pr/validation: pending (https://ci.groupthink.asia/repos/76/pipeline/45/1). Local: unit 427 passed, transport 66 passed, ruff and mypy clean.
  • Blocker: Verification command failed: python3 -m pytest --collect-only -q -m "unit or transport" (pytest collection errors: ___________________ ERROR collecting tests/test_commands.py ____________________)
  • Blocker cause: work for Verification command failed: python3 -m pytest --collect-only -q -m "unit or transport" (pytest collection errors: ___________________ ERROR collecting tests/test_commands.py ____________________); no denial signature; evidence: ___________________ ERROR collecting tests/test_commands.py ____________________
  • Warning: Remote check ci/woodpecker/pr/validation is still pending; the runner re-polls it.
  • Warning: Spec open risk 4 (websocket scopes pass through Boundary unguarded) was not verified live; confirm a websocket upgrade to /mcp is refused on the served app, or guard websocket scopes in a follow-up.
  • Warning: Spec open risks 1 and 2 (the Grok connector sending Origin, and packaged ingress Host) are post-merge verification items.
  • Warning: The self-review Unicode case-folding finding was fixed in the diff: allowed_host rejects non-ASCII before lowercasing.
  • Warning: I did not read PR comments or reviews in this invocation, so I make no claim about independent review.
  • Rework: 1 round(s), outcome declared-incomplete
  • Escalation: Round 1: dispatch-declared-incomplete: the worker declared its work incomplete; missing: The integration runner must execute the collection command in the locked project environment; its bare system-Python invocation remains broken.
  • Decision: resolve the blockers above and rerun integrate, or park this PR for a human?
spec-verify-dispatch Half B for dev/attention-mind-mcp#39 streamable-http-endpoint-validates-neither-origin-nor-host completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/40 - Branch: feat/svd-dev-attention-mind-mcp-39-streamable-http-endpoint-v-64403f95 - Commit: 99bbcf65541a78cc3363690924373085a5ebdcdf - Build: none - Test: red - Reader audit clean: True - Spec fidelity: True - Ready for merge: False - Check ci/woodpecker/pr/validation: pending https://ci.groupthink.asia/repos/76/pipeline/45/1 - Checks: ci/woodpecker/pr/validation: pending (https://ci.groupthink.asia/repos/76/pipeline/45/1). Local: unit 427 passed, transport 66 passed, ruff and mypy clean. - Blocker: Verification command failed: python3 -m pytest --collect-only -q -m "unit or transport" (pytest collection errors: ___________________ ERROR collecting tests/test_commands.py ____________________) - Blocker cause: work for Verification command failed: python3 -m pytest --collect-only -q -m "unit or transport" (pytest collection errors: ___________________ ERROR collecting tests/test_commands.py ____________________); no denial signature; evidence: ___________________ ERROR collecting tests/test_commands.py ____________________ - Warning: Remote check ci/woodpecker/pr/validation is still pending; the runner re-polls it. - Warning: Spec open risk 4 (websocket scopes pass through Boundary unguarded) was not verified live; confirm a websocket upgrade to /mcp is refused on the served app, or guard websocket scopes in a follow-up. - Warning: Spec open risks 1 and 2 (the Grok connector sending Origin, and packaged ingress Host) are post-merge verification items. - Warning: The self-review Unicode case-folding finding was fixed in the diff: allowed_host rejects non-ASCII before lowercasing. - Warning: I did not read PR comments or reviews in this invocation, so I make no claim about independent review. - Rework: 1 round(s), outcome declared-incomplete - Escalation: Round 1: dispatch-declared-incomplete: the worker declared its work incomplete; missing: The integration runner must execute the collection command in the locked project environment; its bare system-Python invocation remains broken. - Decision: resolve the blockers above and rerun integrate, or park this PR for a human?
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#39 streamable-http-endpoint-validates-neither-origin-nor-host completed integration verify.

  • PR: #40
  • Branch: feat/svd-dev-attention-mind-mcp-39-streamable-http-endpoint-v-64403f95
  • Commit: 99bbcf6554
  • Build: none
  • Test: green
  • Reader audit clean: True
  • Spec fidelity: True
  • Ready for merge: True
  • Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/76/pipeline/45/1
  • Checks: CI: ci/woodpecker/pr/validation green on 99bbcf6554. Local: unit 427 passed, transport 66 passed, ruff check/format and mypy clean. No blockers.
  • Warning: Behaviour change: serve behind ingress returns 421 until the operator adds --allowed-host ; release notes must say so.
  • Warning: Open risk (decision): port-ignored matching, missing/duplicate Host -> 421, and codes misdirected_request/origin_refused are spec choices awaiting architect acceptance.
  • Warning: Open risk (verification): clients that send Origin (e.g. the Grok connector) are locked out with 403; confirm post-merge.
  • Warning: Websocket check (open risk 4): the served app exposes only Route /mcp (no websocket route), so websocket scopes have nothing to reach; Boundary still passes websocket scopes unguarded. Not exercised with a live upgrade.
  • Warning: Subagent self-review (Unicode case folding on non-ASCII hostnames) was fixed in the diff: allowed_host rejects non-ASCII before lowercasing.
  • Warning: Spec files tests/test_foundation.py and tests/test_queries.py reader fixes were not re-diffed line by line; verified indirectly by full unit and transport suites passing. PR comments and reviews were not read in this invocation.
  • Decision: merge disposition is the operator's; run ready (codex-svd ship --run-id 20261120T013017Z-64403f95 available to a permitted seat)

label flip withheld (--no-label-writes); gate label is the orchestrator's act — attention

spec-verify-dispatch Half B for dev/attention-mind-mcp#39 streamable-http-endpoint-validates-neither-origin-nor-host completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/40 - Branch: feat/svd-dev-attention-mind-mcp-39-streamable-http-endpoint-v-64403f95 - Commit: 99bbcf65541a78cc3363690924373085a5ebdcdf - Build: none - Test: green - Reader audit clean: True - Spec fidelity: True - Ready for merge: True - Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/76/pipeline/45/1 - Checks: CI: ci/woodpecker/pr/validation green on 99bbcf65541a. Local: unit 427 passed, transport 66 passed, ruff check/format and mypy clean. No blockers. - Warning: Behaviour change: serve behind ingress returns 421 until the operator adds --allowed-host <ingress name>; release notes must say so. - Warning: Open risk (decision): port-ignored matching, missing/duplicate Host -> 421, and codes misdirected_request/origin_refused are spec choices awaiting architect acceptance. - Warning: Open risk (verification): clients that send Origin (e.g. the Grok connector) are locked out with 403; confirm post-merge. - Warning: Websocket check (open risk 4): the served app exposes only Route /mcp (no websocket route), so websocket scopes have nothing to reach; Boundary still passes websocket scopes unguarded. Not exercised with a live upgrade. - Warning: Subagent self-review (Unicode case folding on non-ASCII hostnames) was fixed in the diff: allowed_host rejects non-ASCII before lowercasing. - Warning: Spec files tests/test_foundation.py and tests/test_queries.py reader fixes were not re-diffed line by line; verified indirectly by full unit and transport suites passing. PR comments and reviews were not read in this invocation. - Decision: merge disposition is the operator's; run ready (`codex-svd ship --run-id 20261120T013017Z-64403f95` available to a permitted seat) label flip withheld (--no-label-writes); gate label is the orchestrator's act — attention
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#39 streamable-http-endpoint-validates-neither-origin-nor-host completed integration verify.

  • PR: #40
  • Branch: feat/svd-dev-attention-mind-mcp-39-streamable-http-endpoint-v-64403f95
  • Commit: 7c8d16963f
  • Build: none
  • Test: green
  • Reader audit clean: True
  • Spec fidelity: True
  • Ready for merge: True
  • Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/76/pipeline/46/1
  • Checks: ci/woodpecker/pr/validation green on 7c8d16963f; local unit 427 passed, transport 66 passed, ruff/format/mypy clean.
  • Warning: Open risk 4 (spec): websocket scopes still pass through Boundary unguarded (mcp_adapter.py scope type != http pass-through, unchanged). Not verified here that a websocket upgrade to /mcp is refused; confirm post-merge or guard in a follow-up.
  • Warning: Open risks 1-3 from the spec (Origin-sending connector lockout, packaged/ingress --allowed-host config for #8, architect acceptance of 421/403 codes and port-ignoring) remain post-merge follow-ups.
  • Warning: Spec fast filter -k "host or origin or asgi" does not select test_create_app_installs_guard_without_framework_defaults or test_served_default_allowlist_is_loopback_only; both exist and ran in the full unit/transport suites.
  • Warning: README doc criterion is doc-review only and was not independently reviewed by a test; PR comments and reviews were not read.
  • Decision: merge disposition is the operator's; run ready (codex-svd ship --run-id 20261120T013017Z-64403f95 available to a permitted seat)

label flip withheld (--no-label-writes); gate label is the orchestrator's act — attention

spec-verify-dispatch Half B for dev/attention-mind-mcp#39 streamable-http-endpoint-validates-neither-origin-nor-host completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/40 - Branch: feat/svd-dev-attention-mind-mcp-39-streamable-http-endpoint-v-64403f95 - Commit: 7c8d16963fbe7a6115c4b10ad598759becdee17c - Build: none - Test: green - Reader audit clean: True - Spec fidelity: True - Ready for merge: True - Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/76/pipeline/46/1 - Checks: ci/woodpecker/pr/validation green on 7c8d16963fbe; local unit 427 passed, transport 66 passed, ruff/format/mypy clean. - Warning: Open risk 4 (spec): websocket scopes still pass through Boundary unguarded (mcp_adapter.py scope type != http pass-through, unchanged). Not verified here that a websocket upgrade to /mcp is refused; confirm post-merge or guard in a follow-up. - Warning: Open risks 1-3 from the spec (Origin-sending connector lockout, packaged/ingress --allowed-host config for #8, architect acceptance of 421/403 codes and port-ignoring) remain post-merge follow-ups. - Warning: Spec fast filter `-k "host or origin or asgi"` does not select test_create_app_installs_guard_without_framework_defaults or test_served_default_allowlist_is_loopback_only; both exist and ran in the full unit/transport suites. - Warning: README doc criterion is doc-review only and was not independently reviewed by a test; PR comments and reviews were not read. - Decision: merge disposition is the operator's; run ready (`codex-svd ship --run-id 20261120T013017Z-64403f95` available to a permitted seat) label flip withheld (--no-label-writes); gate label is the orchestrator's act — attention
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dev/attention-mind-mcp#39
No description provided.