Skip to content

Extract OCC resource-route integration cases into TypeScript - #5431

Merged
freeqaz-openai merged 1 commit into
mainfrom
quality/type-occ-resource-route-cases
Nov 11, 2026
Merged

freeqaz-openai merged 1 commit into
mainfrom
quality/type-occ-resource-route-cases

Conversation

@freeqaz-openai

@freeqaz-openai freeqaz-openai commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Move three OCC resource-route integration cases into a strict TypeScript module. The owning suite still registers the cases in their original order and supplies the existing injected controller fixtures.

  • Preserve the resource response, Stop audit, and deletion checks.
  • Preserve the raw request checks that reject payloads on bodyless routes before IAM or audit activity.
  • Preserve Namespace isolation, revision-read permission and revocation, and the audit record for the exact denied target.

Verification

  • The owning tests/integration/occ-api.test.mjs file passed all 136 cases on base 228632a1, candidate 398269f0, and the candidate composed with main 69f1e911. Ordered results matched with zero skips. The focused base and candidate runs each passed the three extracted cases.
  • Workspace validation, TypeScript, targeted lint and formatting, and CI test selection and inventory passed locally.
  • Hosted Checks and Conformance 1 passed all 3,992 cases on tested merge 1d09dc2e. The owning OCC API file matched all 136 local results in order, with zero skips and successful file and lane cleanup. Hosted job

@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@freeqaz-openai
freeqaz-openai marked this pull request as ready for review November 11, 2026 07:59
@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner November 11, 2026 07:59
@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 11, 2026
@clawsweeper

clawsweeper Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR moves three OCC resource-route integration cases into a strictly checked TypeScript module while retaining their original suite registration.

Example: A revision-only reader loses its read permission before requesting an AgentRevision.

  • Before: The JavaScript case checks a 403 response and an audit event identifying the exact denied revision.
  • After: The extracted TypeScript case preserves those checks and runs from the same owning suite.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, apparently correct test extraction supported by source comparison and successful hosted validation; detailed execution logs were unavailable for independent inspection.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only extraction requires no separate shipped-runtime demonstration; source comparison preserves the scenarios, and hosted job metadata confirms success for the reviewed head.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Contributors lack strict TypeScript checking for three existing OCC resource-route scenarios.
Reason: The maintainer-authored direction extends the established typed-fixture approach while preserving existing behavior coverage.

Merge readiness

✅ Ready for maintainer review

Keep open for normal maintainer review: this maintainer-authored PR preserves the existing scenarios while adding strict TypeScript coverage, and no actionable defect was found.

Priority: P3
Reviewed head: 398269f09e343ce3ca63155e4945ae913ee243cb

Before merge

None.

Findings

None.

Agent review details

How this fits together

The OCC API integration suite supplies authenticated controller fixtures to resource-route scenarios, which exercise HTTP responses, Namespace isolation, IAM decisions, and audit records.

flowchart LR
  A[OCC integration suite] --> B[Typed resource scenarios]
  B --> C[Existing controller fixtures]
  C --> D[OCC HTTP handlers]
  D --> E[Native IAM and platform state]
  D --> F[Responses and audit records]
Loading

Technical review

Best possible solution:

Retain the focused extraction with the existing fixture owners, scenario assertions, and suite registration.

Do we have a high-confidence way to reproduce the issue?

This PR is a test extraction rather than a reported product bug; no target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

The extraction uses existing fixtures, preserves observable assertions, and explicitly includes the new module in strict typechecking without introducing a parallel production path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against b30d3def3d6c.

Provenance checked

  • OCC resource-route scenarios and fixture boundary keeps the original intent (03b443c: The earlier extraction established a strictly checked injected fixture while retaining scenario assertions in the owning suite.)
  • Agent stop and deletion assertions keeps the original intent (feat(agents): complete Agent deletion lifecycle #204: Lifecycle coverage distinguishes accepted asynchronous teardown from completed deletion and preserves attributable Stop audit evidence.)
  • Revision authorization before lookup keeps the original intent (cf79032: Unauthorized callers must receive an audited denial without learning whether the requested target exists.)
  • Test TypeScript configuration keeps the original intent (03b443c: Explicit inclusion makes extracted fixture modules participate in the test typecheck.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Free Wortley: Raw commit 03b443c adds tests/integration/occ-api-injected-fixture.ts:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 03b443cc051a; files: tests/integration/occ-api-injected-fixture.ts)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Change scope Production +0/-0; tests and test configuration +523/-399 The net growth adds types and runtime narrowing around moved scenarios without adding production machinery.

Labels

Label changes:

  • add P3: This is test-maintenance work with no production behavior change or demonstrated urgent regression.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is test-maintenance work with no production behavior change or demonstrated urgent regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 11, 2026, 3:11 AM ET / 08:11 UTC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant