Repository navigation
test: move core coverage to owner boundaries - #124184
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 10:37 AM ET / 14:37 UTC. ClawSweeper reviewWhat this changesMoves regression coverage from test-only helper exports to the CLI, Gateway usage, Docker health-probe, and model-request boundaries that own the behavior. Merge readinessKeep open for maintainer review: the cleanup is coherent and no correctness or security defect was found, but exact-head checks are still running and the PR carries the protected maintainer label. Priority: P3 Review scores
Verification
How this fits togetherThis touches core test seams around Gateway usage ranges, CLI-to-Gateway timeout conversion, Docker liveness probing, and diagnostic trace propagation. Runtime inputs flow through these owners to user-visible requests and health checks, while the tests assert their observable outputs rather than private helpers. flowchart LR
A[Runtime inputs] --> B[Owner boundaries]
B --> C[Usage range and CLI timeout]
B --> D[Docker health and model tracing]
C --> E[Gateway and CLI outcomes]
D --> E
E --> F[Boundary regression tests]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -36, Tests -74, Other +2. Total -108 across 9 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the smaller owner-boundary tests and land once the current head is green and receives the required maintainer look. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR is behavior-neutral cleanup, and the relevant evidence is owner-boundary regression coverage rather than a reported user failure. Is this the best way to solve the issue? Yes. Deleting test-only seams while asserting the CLI, Gateway, health-probe, and outbound-request outcomes is the most maintainable test shape. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9663cc7edcc3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
32e349f to
ba4db4b
Compare
|
Land-ready proof for
Production/tooling delta: +6/-40, net -34. Tests: +46/-120, net -74. Total: +52/-160, net -108. No behavior, docs, config, schema, protocol, dependency, or changelog change. |
|
Merged via squash.
|
* test: move core coverage to owner boundaries * ci: lower plugin SDK surface budget
What Problem This Solves
Removes obsolete core test helpers and direct private-helper tests after their behavior moved to stronger owner boundaries.
The cleanup covers four connected patterns:
testApiafter production range resolution moved to calendar-part logic;Why This Change Was Made
The meaningful regressions remain protected at the boundaries that can actually affect users:
resolveDateRangeand Gateway handlers;agentCliCommandand the actual Gateway request;/healthzprobe URL.Removing the orphan traceparent export shrinks the public Plugin SDK by one export and one callable export, so the matching hard ceilings are reduced rather than preserving dead API or raising an allowance.
User Impact
No behavior change. Core production/test APIs are smaller, and tests are less coupled to private implementation details while preserving the original calendar, timeout, tracing, and Docker health regressions.
Evidence
core,coreTests,scripts, andtoolingchanged gate passed through the documented trusted-source local fallback because no Crabbox/Testbox provider was ready. Typechecks, formatting, lint, dead-export scans, Plugin SDK surface/export checks, plugin boundaries, import cycles, database/sidecar/security guards, and architecture checks passed.git diff --checkpassed.Production/tooling delta: +6/-40, net -34. Tests: +46/-120, net -74. Total: +52/-160, net -108. No docs, config, schema, protocol, dependency, or changelog change.
AI-assisted: yes.