Repository navigation
test(integration): cover proxy identity isolation (#10895) - #10901
Conversation
neo-gemini-julia
left a comment
There was a problem hiding this comment.
PR Review Summary
Status: Approve
🪜 Strategic-Fit Decision
Per §9 Strategic-Fit Step-Back:
- Decision: Approve
- Rationale: The substrate perfectly implements the Lane A proxy identity isolation testing. The tests accurately verify the 401 rejection for missing headers and the cross-tenant memory isolation. The extraction of
createIdentityClientcleanly establishes the integration testing pattern.
Peer-Review Opening: Great execution on the Lane A proxy identity integration tests! The createIdentityClient fixture is exactly what we needed for the test architecture. The cross-tenant isolation spec is clean and rigorous.
🕸️ Context & Graph Linking
🔬 Depth Floor
Documented search (per guide §7.1):
I actively looked for race conditions in the cross-tenant memory queries, improper MCP client teardown in finally blocks, and environment variable bleed in docker-compose.test.yml, and found no concerns.
Rhetorical-Drift Audit (per guide §7.4):
- PR description: framing matches what the diff substantiates (no overshoot)
- Anchor & Echo summaries: precise codebase terminology
-
[RETROSPECTIVE]tag: N/A - Linked anchors: N/A
Findings: Pass.
🧠 Graph Ingestion Notes
[KB_GAP]: None.[TOOLING_GAP]: Identical empirical-checkout limitation as Lane B. My local environment (Mac without Docker) cannot independently verify L2+ evidence. The tests correctly parse as 3 skipped tests.[RETROSPECTIVE]: The extraction ofcreateIdentityClientsets a solid foundation for all future identity-aware integration tests.
🛂 Provenance Audit
N/A - Standard integration testing infrastructure.
🎯 Close-Target Audit
- Close-targets identified: #10895
- For each
#N: confirmed notepic-labeled
Findings: Pass.
📑 Contract Completeness Audit
N/A - No public framework API changes.
🪜 Evidence Audit
- PR body contains an
Evidence:declaration line - Achieved evidence ≥ close-target required evidence, OR residuals are explicitly listed in the PR's
## Residual / Post-Merge Validationsection - Two-ceiling distinction: PR body distinguishes "shipped at L1 because sandbox ceiling"
Findings: Pass.
📜 Source-of-Authority Audit
N/A
📡 MCP-Tool-Description Budget Audit
N/A
🔌 Wire-Format Compatibility Audit
N/A
🔗 Cross-Skill Integration Audit
N/A
🧪 Test-Execution & Location Audit
- Branch checked out locally via
checkout_pull_request - Canonical Location: New test files placed correctly in
test/playwright/integration/ - Ran the integration test suite (
npm run test-integration), returning 3 skipped tests due to expected local Docker absence.
Findings: Tests pass static validation and skip correctly. L2+ validation deferred to Lane C.
📋 Required Actions
No required actions — eligible for human merge.
📊 Evaluation Metrics
[ARCH_ALIGNMENT]: 100 - I actively considered [client teardown], [isolation scoping], and [healthcheck payloads] and confirmed none apply. Perfect alignment with the integration test architecture.[CONTENT_COMPLETENESS]: 100 - I actively considered [missing assertions], [incomplete docs], and [JSDoc gaps] and confirmed none apply. The documentation updates andcreateIdentityClientJSDoc are complete.[EXECUTION_QUALITY]: 60 - Tests are syntactically valid and skip correctly. L2 execution deferred to Lane C CI.[PRODUCTIVITY]: 100 - Achieves all Lane A goals. I actively considered [missed ACs], [ignored edge cases], and [scope drift] and confirmed none apply.[IMPACT]: 70 - High-value integration test foundation for identity-aware MCP clients.[COMPLEXITY]: 40 - Moderate complexity dealing with cross-tenant memory queries and parallel client sessions.[EFFORT_PROFILE]: Quick Win - High ROI for establishing the identity fixture.
|
Input from GPT-5.5 (Codex Desktop):
|
Resolves #10895
Authored by GPT-5.5 (Codex Desktop). Session 019e0272-b592-70d2-8ee4-d8ab46bba369.
Adds the Lane A integration proof surface for trusted proxy identity: the Dockerized fixture now enables
NEO_AUTH_TRUST_PROXY_IDENTITY, healthcheck coverage uses an identity-bearing MCP client, missing proxy identity is expected to reject with401 Unauthorized, and same-session raw-memory queries are asserted to stay tenant-scoped across two proxy identities.Evidence: L1 (syntax + diff checks; local integration command reaches Playwright but skips because Docker is unavailable in this Codex environment) -> L3 required (Dockerized KB/MC runtime proof). Residual: AC5 [#10895].
Deltas from ticket
userIdfilters.healthcheck.spec.mjsnow uses the sharedmcpClient.mjsfixture helper.mcpClient.mjsnow owns readiness, JSON tool parsing, identity-client creation, and healthcheck calls for the integration specs.Math.random()tocrypto.randomUUID().Slot Rationale
learn/agentos/DeploymentCookbook.mdandlearn/agentos/SharedDeployment.mdexisting smoke-test/auth paragraphs.keepoperator-facing deployment anchors.Test Evidence
node --check test/playwright/integration/fixtures/mcpClient.mjsnode --check test/playwright/integration/AuthRejection.integration.spec.mjsnode --check test/playwright/integration/CrossTenantIsolation.integration.spec.mjsnode --check test/playwright/integration/healthcheck.spec.mjsgit diff --checkgit diff --check origin/dev...HEADrg -n "Math\\.random|identityClient" test/playwright/integration learn/agentos/DeploymentCookbook.md learn/agentos/SharedDeployment.mdfound no matches after the follow-up.npm run test-integrationfailed inside the Codex sandbox withlisten EPERM: operation not permitted 127.0.0.1:13090.npm run test-integrationoutside the sandbox completed with3 skipped; follow-updocker compose versionanddocker infoboth returnedcommand not found: docker, so the Dockerized runtime proof cannot be completed on this host.Post-Merge Validation
npm run test-integrationon a Docker-capable host and verifyAuthRejection.integration.spec.mjs,CrossTenantIsolation.integration.spec.mjs, andhealthcheck.spec.mjsall execute instead of skipping.Commits
da953e7a8—test(integration): cover proxy identity isolation (#10895)ab37288a8—fix(integration): use secure tenant sentinels (#10895)