Skip to content

v1.90.0.0 feat: make browser cookie imports explicit and safe - #2964

Merged
garrytan merged 61 commits into
mainfrom
garrytan/dia-cookie-fix-wave
Sep 25, 2026
Merged

garrytan merged 61 commits into
mainfrom
garrytan/dia-cookie-fix-wave

Conversation

@garrytan

@garrytan garrytan commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

Reliable, explicit cookie imports

  • Add macOS Dia discovery, current Local State profile names, directory disambiguation, and exact bare/dotted domain selection without guessing among accounts.
  • Share one import operation across CLI, --all, and picker paths. Track imported domains in the security guard, preserve partial/zero/error receipts, and avoid automatic mutation replay or repeated permission prompts.
  • Preserve storage by default. Explicit recovery clears only the captured origin's localStorage and target tab's sessionStorage; optional authentication verification requires a successful same-origin response and an exact visible identity assertion.
  • Bind picker documents to their authenticated target, reject stale windows and cross-origin mutations, and keep authentication credentials out of the page.
  • Replace the Windows native TCP fallback with source-bound, sandboxed, owned-process pipe supervision and bounded cleanup. Its qualification allowlist remains empty, so native extraction stays disabled.
  • Correct Aside-first readiness and installed-host reference lookup, update browser guidance, and complete the profile-label TODO.

Verification at e5f3ff4d

  • Current-head CI: 55 successful checks, 0 failures, 0 pending, 4 intentional skips. The PR is mergeable and remains unmerged.
  • Full free acceptance: 26,262 passed, 84 skipped, 0 failed across 1,036 files. Both strict shards completed with unchanged source and fresh build/test evidence. Earlier failed runs remain retained; no existing assertions, deadlines, or deletion retry counts were relaxed.
  • The model configuration is now dependency-free, so CI planning/reporting no longer loads the Anthropic SDK. The cold-start fixture no longer substitutes the provider module: a real package-free checkout regression exercises both entrypoints and proves the SDK is unavailable. All partial-module fixture controls pass without the temporary Office Hours workaround.
  • The last retry audit found a real index-state actor defect despite green CI: adjective stripping damaged assume-unchanged, and the preservation grammar missed qualified Git-index bits. The repaired callback recognizes qualified index state while still rejecting source/index mutations, ambiguity, and continuing work. The complete failed two-question native input replays with exact acknowledgments and immutable input; all historical tests remain intact. Both real index-flags scenarios now pass on attempt 1, with no actor error or retry, using CI's pinned Claude 2.1.251. The unsupported older local launcher was rejected before model execution and is retained separately, not counted as coverage.
  • The actor and adjacent free checks pass 251/251. The cold-checkout fixture also excludes nested installed packages instead of copying a 232 MB dependency tree; its original hook deadline remains unchanged.
  • Current-head native Windows: 15,675 passed, 207 skipped, 0 failed across 675 files. All six native delete-lease controls, both original real held-lock controls, all four launch/reset comparisons, the immutable owner-receipt control, and the PTY mismatch regression executed and passed. Linux platform skips are not counted as native proof.
  • Current paid CI: 106 passed final outcomes, 1 explicit unscored manual acceptance, 0 failed final outcomes; 94 executed and 13 reused, with 110 attempt records retained. Quality evidence comprises 12 newly scored passes and 13 exact-input reused passes, with no quality retry this run; the cookie refusal received its approved first-attempt manual acceptance. Three behavior cases used configured retries: two hit their existing turn cap; in the index-flags case, the selector correctly answered Skip / Leave it set, then rejected a later recovery question after the agent had changed the flag with git update-index --really-refresh. This is retained agent-failure evidence, not another false rejection of the original valid preservation choice. No actor relaxation, extra retry, or budget increase was used.
  • At d54baed0, one real cookie judge request completed with an explicit empty provider refusal on attempt 1: 0 automated passes, 1 manual acceptance, no automated score, 1 executed request, 0 reused results. Complete current prompt bytes, model, budget, thresholds, and request shape match that evidence, so it is retained with its original revision rather than resampled. The 25 unselected judges receive no coverage credit.
  • Build, generation, prompt parity, critical dependency audit, and credential scanning pass. Workflow lint now passes under the exact CI actionlint image with ShellCheck, not only the standalone local binary. The credential-blocking pre-push guard is enabled.
  • Read-only outside review of the new policy completed with no blocking findings. Its initial timeout remains retained; the same-session continuation supplied the verdict. Parent review kept model-mismatch rejection strict and added response-ID and model-override controls.
  • Integrated main at 730a1017, preserving both branches' fixture protections and diagnostics. Current-head checks and the native evidence above are verified. Nothing has been merged.
  • Windows cleanup now admits the two diagnostic profile resets through an identity-bound NTFS delete handle. It polls only sharing-admission error 32 within the original supervision/cleanup deadline, rechecks ancestors and file identity, makes one disposition call, closes the handle, and verifies absence. Persistent locks, other errors, changed objects, and unsupported filesystems remain failures; there is no deletion retry, read-only override, holder kill, or opaque fallback. The original affiliation-cache lock's holder is still not attributed. Native Windows verified this implementation at both 5460ce08 and the current head.
  • Seeded PTY observations no longer waste eight seconds before their existing owned-readiness and acknowledgment checks. The original case deadlines and stale/partial/mismatch controls remain intact; the deadline fixture now genuinely withholds acknowledgment rather than depending on the removed idle wait.

Explicit manual acceptance, never a fabricated score

The maintainer authorized this one exact-input exception. The approved complete prompt SHA-256 is 7f7f76f49912818d51f25c86d686aab6ad2c95ccdea60ac912c1e4c8b6936e5f, bound to claude-fable-5-1, 8,192 maximum output tokens, and unchanged 4/3/4 thresholds.

The ordinary request still runs. Only a first-attempt, explicit empty provider refusal with complete identifiers and matching current source/approval may receive manual acceptance. The record retains passed: false, no score, and the actual request. Reports separate manual acceptance from automated passes and failures; it cannot enter the score cache. Changed inputs/options, low scores, malformed evidence, generic errors, timeouts, prior failed attempts, duplicate claims, and every other failed case remain blocking. The write-token PR-comment job still executes no repository code.

Retained evidence and coverage limits

  • At 5460ce08, the released-holder control observed two admission probes and one disposition, and the owner receipt remained an actual array. The index actor's false-rejection defect discovered in that revision's retry history is repaired and independently verified above; its original failure remains retained.
  • At 7898b3a2, Ship, Eng, and design quality judges passed via their configured retries; their initial clarity-3 results remain recorded. Windows was the only failed check, with the two cases repaired and verified above.
  • At d15b9f70, native Windows CI passed 15,526 tests, 207 skipped, 0 failed across 670 files, including real held-file/held-directory lock controls and native launch controls. That revision's paid run passed all 84 selected gate behavior IDs and 25 scored quality cases; the remaining cookie case refused twice without a score. Later failures and repairs were validated separately rather than inferred from this older run.
  • The independent picker review found the cross-window target bug; actual callback and Chromium regressions now cover the repair. Visual QA verified storage preservation, explicit scoped reset, positive synthetic authentication, other-tab/other-origin preservation, and zero browser console errors.
  • Native Dia import remains unqualified. No further personal-Mac launch or Keychain mutation is included. Protected default-profile Windows encrypted extraction is also unqualified and remains disabled; supported legacy decryption and manual sign-in are separate paths.
  • CI selects 84 gate behavior IDs and 26 judges for this revision. 123 periodic behavior IDs remain explicitly deferred, and all-skipped placeholders receive no pass credit. Historical failures and refusals remain retained; neither a passing subset nor this manual exception establishes native import qualification.

Related community reports and proposals: #2939, #2938, #2701, #2658, #1057, #1114, #1128, #1129, #1136, and #1181. Useful behavior was integrated selectively; their branches were not merged wholesale.

Screenshots

Explicit recovery and verified synthetic sign-in, while preserving partial-import status:

Scoped recovery and verified synthetic sign-in

A stale picker is rejected before it can mutate another target:

Stale picker blocked before mutation

@capy-ai

capy-ai Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

d54baed0 passed local full acceptance (26,210 pass / 78 skip / 0 fail, 1,035 files) and the real cookie case recorded one first-attempt manual acceptance, zero automated scores/passes. Remote CI exposed two additional blockers: the dependency-free planner imported the Anthropic SDK through reporting, and the complete actionlint image flagged an unused shell variable. Both are reproduced; the repair removes the SDK dependency from the planning/reporting path and retains the strict acceptance policy. The earlier offline test had substituted the provider module, masking the dependency; that substitution is being removed and replaced with a real package-free checkout regression. No CI-green or merge claim yet.

@capy-ai

capy-ai Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Current head 5460ce08 has 55 successful checks, zero failed/pending checks, and 4 intentional skips. Native Windows verification passed 15,675 / 207 skipped / 0 failed across 675 files, including all six delete-lease controls, both original held-lock controls, all four launch/reset comparisons, and the PTY mismatch regression. Paid accounting is 106 passes + 1 explicit unscored manual acceptance, with all attempts retained.

The final retry audit nevertheless found one concrete remaining actor defect: attempt 1 of shared-libs-review-index-flags rejected the valid preservation description “Keep the assume-unchanged bit”; its configured retry passed. I’m repairing that narrow fixture defect and will verify a clean first attempt. This comment does not call the original refusal fixed merely because the retry made CI green. Nothing has been merged.

@garrytan
garrytan merged commit a84b0b5 into main Sep 25, 2026
61 checks passed
capy-ai Bot added a commit that referenced this pull request Oct 29, 2026
…aky pass (index flags, exploratory QA, cookie auth) (#3553)

* fix(review): shared-code evidence gathering is read-only (index-flags flaky, gate 40619718717)

The failing assume-unchanged trial ran git update-index --really-refresh while gathering evidence, which cleared the flag the checker reads. Step 1 now says the read is read-only and names that command; nearby prose tightened so the section stays byte-identical in size (no pin or ledger move).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test(qa-callers): admit ship Step 9's review-plan helper and place its Step 11 voices (late-input 40664336141, plan-checks 40707142223)

Gate edit: the caller interface admits the gstack-review-plan forms Step 9 names at the exact installed path; the ship prompt says the plan's adversarial-native and outside-voice lines are Step 11's, outside the Steps 8-9 excerpt. Free replays of both 40707142223 captures and the real plan for all four ship cases.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test(browse): real-Chromium cookie-auth positive and early-return rejection cases use the product default timeout

Gate edit approved by GStack Minder. The shared 400 ms came from a84b0b5 (#2964) as a fixture value no product path uses; --verify-auth callers run under MAX_TIMEOUT_MS 15000. Identity mismatch/missing/ambiguous cases resolve only at the deadline, so they keep the 400 ms bound; explicit timeout tests are unchanged.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test(review): read-only evidence test exercises the resolver on every host (test-of-test ratchet)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test: curate shared-libs-index-flags-readonly off the Windows subset

Its fixture launches bin/gstack-review-log, a bash script, directly; windows-latest
reports it not found in PATH (Windows Free Tests run 40727825859, shard 5).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs: changelog and test portfolio for the 2026-10-28 S6 flaky repairs

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test: keep the credential-rejection curation comment above its own entry

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* Revert "test: keep the credential-rejection curation comment above its own entry"

The swap changed an input the s6-docs-2 documentation audit hashed, and /ship
allows no third audit in one invocation. The misplaced comment is listed as a
review note instead.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test(qa-callers): admit review-army's specialist diff at the fixture merge base (screen 40737741454 ship-exploratory-unavailable)

The review plan dispatches the state-machines specialist, and review-army tells the
parent to write the merge-base sha into its diff command. Both screen trials failed
on that child's git diff <merge-base sha>. Also: cite the deadline loop beside the
identity_* cookie-auth cases (GStack Minder accepted the 400 ms narrowing).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test(qa-callers): the prompt's chaining rules name both DIFF_BASE forms

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

---------

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant