Skip to content

fix: recognize both observed decoders for two OCE sign-in test fixtures - #2168

Merged
freeqaz-openai merged 4 commits into
mainfrom
fix/oce-enrollment-native-admission-20261106
Nov 6, 2026
Merged

freeqaz-openai merged 4 commits into
mainfrom
fix/oce-enrollment-native-admission-20261106

Conversation

@freeqaz-openai

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

Copy link
Copy Markdown
Contributor

What Problem This Solves

ClawSweeper held an OpenClaw Enterprise enrollment review when TruffleHog reported a synthetic URL in the sign-in chart test as PLAIN. A later scan of identical inputs reported the neighboring fixture as PLAIN too. The previous rule would refuse that scan. Hosted scan

User Impact

The classifier recognizes PLAIN and ESCAPED_UNICODE for each of the two fixtures in the two inspected versions of the file. Credential verification stays enabled. Changed file contents, unknown findings and verified credentials still block admission.

Why This Change Was Made

The decoder label varied while the source bytes stayed the same. All eight fixture, file and decoder combinations have now been observed. Each match still requires the reviewed URI digests, complete source line, file hash, path, mode, committed provenance and finding metadata.

Documentation Impact

The README describes the updated rule. The proof guide distinguishes the historical fixture scans from the complete-range captures and explains how to reproduce the comparison. Proof guide

Real Behavior Proof

On Linux AMD64, direct Python launches of TruffleHog 3.99.4 scanned the same 47 staged inputs with verification enabled. Three unchanged streams were replayed through the real classifier. The baseline refused both streams containing a head-file PLAIN finding and accepted the stream with both head fixtures reported as ESCAPED_UNICODE. The proposed classifier accepted all 12 findings and rejected all 60 altered-input controls. For each head fixture, the two decoder witnesses came from distinct streams. Range results

The local production entry point, scanAgentInput, staged the inputs, but its Node-launched scanner received SIGKILL before producing output. The cause is unresolved. The target PR still needs a complete hosted review after the policy reaches the runner. Affected PR

Evidence

Six negative replay CLI cases exited 1 with empty stdout and a fixed diagnostic, including the case that omitted the new line-1477 witness. The three historical captures also replayed successfully, with 63 refusal controls. The full pnpm run check passed on 9665df62 with 7,061 passed, 22 skipped and zero failures or cancellations. The source and dependency graph stayed unchanged. The canonical review covered all seven changed files in one pass and found no actionable P0–P3 issues.

@clawsweeper

clawsweeper Bot commented Nov 6, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal priority bug or improvement with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR accepts both observed native decoder labels for two exact sign-in fixtures while preserving their existing source and credential checks.

Example: TruffleHog reports the fixture at head-file line 1477 as PLAIN in blob 708e8b9af0e78f0c4d6a41a7883155f9e08fbe4e.

  • Before: Main refuses the finding as source_not_reviewed.
  • After: The classifier accepts the exact reviewed fixture while continuing to refuse altered source or verified credentials.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, narrowly scoped policy repair with credible native capture and classifier replay evidence, limited by the absence of successful production-caller proof.
Proof confidence 🦐 gold shrimp (3/6) The supplied maintainer-authored classification places this PR outside the ordinary contributor proof gate; native TruffleHog captures and real-classifier replay support the changed rules, but do not establish successful production-caller or hosted admission.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: An Enterprise review stops when the native scanner assigns PLAIN to an otherwise qualified synthetic fixture.
Reason: The supplied maintainer direction and independently verified observations support this narrow extension of the existing fixture policy.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it repairs an observed admission failure still present on main, with no actionable code findings.

Priority: P2
Reviewed head: 9665df621e704988fb5d8fe4544bac9615c271a0

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied evidence does not show successful native admission through scanAgentInput; its local subprocess received SIGKILL.
Agent review details

How this fits together

Review admission stages committed inputs, runs TruffleHog, and classifies exact synthetic findings before allowing agent execution.

flowchart LR
  A[Committed review inputs] --> B[Source staging]
  B --> C[Native TruffleHog scan]
  C --> D[Exact fixture classifier]
  D --> E[Refuse admission]
  D --> F[Continue agent review]
Loading

Technical review

Best possible solution:

Extend the existing exact-attribution rules only for the newly observed combinations and retain every unrelated admission boundary.

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

Main explicitly excludes the head-source hash from PLAIN attribution, and the supplied native captures report those findings; no target code was executed during this review.

Is this the best way to solve the issue?

The patch repairs the existing policy owner with source-verified metadata exceptions rather than adding a competing admission path.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Sign-in decoder qualification changes intended behavior with a stated reason (b6018c7: Qualify only combinations observed in native captures, deliberately excluding both head-file PLAIN combinations.)
  • Exact-attribution admission checks keeps the original intent (c338967: Recognize reviewed synthetic findings through exact native attribution while rejecting unknown, duplicate, mismatched, or partially authorized findings before model launch.)
  • Historical replay refusal controls changes intended behavior with a stated reason (b6018c7: Prove that unobserved head-file PLAIN combinations remained refused; the new range replay supplies native witnesses and replacement refusal controls.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned production change: The introduced diff adds the already reviewed head-source hash to both PLAIN attribution rows and updates their existing validator; scanner execution and verification remain unchanged. (src/agent-input-scan-fixtures.ts:307, 9665df621e70)
  • Existing intentional boundary: fix: recognize the two reviewed sign-in URL fixtures during input scanning #2167 qualified six observed combinations and deliberately refused head-file PLAIN findings; this PR supplies observations for the two remaining combinations. (src/agent-input-scan-fixtures.ts:302, b6018c739249)
  • Independent fixture verification and dependency scope: The replay consumes this repository's exact source as its oracle, establishing the dependency-policy signal. Both pinned blobs, complete-source hashes, URI hashes, and complete-line hashes match the policy. The root AGENTS.md was fully read; no ancestor policy exists under tests for this file. (tests/integration/sign-in-chart-parity.test.mjs:1477, 3e29a60b00d2)
  • Native capture and replay evidence: The committed results report unchanged native streams over the complete staged range, baseline refusal of both head-PLAIN streams, candidate classification, and refusal of altered-input controls. The guide explicitly records that the local Node-launched scanner failed with SIGKILL. (docs/proof/oce-sign-in-fixtures/range-results.json:1, 9665df621e70)
  • Preserved refusal owner: The existing classifier still checks verification status, native metadata, complete source hashes, literal witnesses, committed roles, paths, modes, and duplicate findings before admission. (src/agent-input-scan-fixtures.ts:1232, 9665df621e70)
  • Repository policy: The complete root AGENTS.md was applied; no nested policies, matching maintainer notes, or pr-simplify skill were present. The change includes the required single-bullet changelog fragment, and the checkout remains clean. (AGENTS.md:1, 9665df621e70)

Likely related people:

  • Free Wortley: Raw commit b6018c7 adds src/agent-input-scan-fixtures.ts:298 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b6018c739249; files: src/agent-input-scan-fixtures.ts)
  • Vincent Koc: Raw commit c338967 adds src/agent-input-scan-fixtures.ts:14 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c33896727985; files: src/agent-input-scan-fixtures.ts)
  • Peter Steinberger: Raw commit 0a46047 adds src/agent-input-scan-fixtures.ts:5 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0a46047ef6a6; files: src/agent-input-scan-fixtures.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.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.

Label justifications:

  • P2: The failure blocks a bounded review-admission scenario involving two exact inspected source versions.
  • 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.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Record a successful native scanAgentInput run for the pinned range to demonstrate admission through the shipped caller.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-06T15:11:51.067Z sha 1ce34a5 :: needs maintainer review before merge. :: none

Reviewed November 6, 2026, 10:19 AM ET / 15:19 UTC (Revision 2).

@freeqaz-openai freeqaz-openai changed the title fix: recognize the observed PLAIN decoder for one OCE sign-in fixture fix: recognize both observed decoders for two OCE sign-in test fixtures Nov 6, 2026
@freeqaz-openai
freeqaz-openai marked this pull request as ready for review November 6, 2026 15:15
@freeqaz-openai

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 6, 2026
@freeqaz-openai
freeqaz-openai merged commit d2194ca into main Nov 6, 2026
37 checks passed
@freeqaz-openai
freeqaz-openai deleted the fix/oce-enrollment-native-admission-20261106 branch November 6, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. 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