Repository navigation
Correct NotebookLM auth method: full CDP extraction, not cookies-only - #214
Merged
Merged
Conversation
… (WSLg resolved; sync run 2026-08-19) Co-Authored-By: Claude Opus 4.8 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
Pull request overview
Updates the NotebookLM sync runbook and automation harness to use the only working authentication approach on the WSLg host: extracting the full native nlm profile (cookie list + csrf_token + session_id) from a live NotebookLM session over CDP/Playwright, instead of the previously documented cookies-only import flow.
Changes:
- Reworked
scripts/nlm_auth.pyto extract and write the full nativenlmprofile (cookie list + metadata withcsrf_token/session_id) and verify auth vianlm notebook list. - Added
--cdp-urlsupport to connect to an already-running, already-signed-in headed Chrome over localhost CDP. - Updated
docs/notebooklm-sync-open-item.mdto document the full extraction method, explain why cookies-only is insufficient, and record the 2026-08-19 run history/resume steps.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| scripts/nlm_auth.py | Replaces cookies-only/manual import with full profile extraction (cookie list + csrf/session) and adds CDP-connect option plus real verification. |
| docs/notebooklm-sync-open-item.md | Rewrites the operational runbook to match the working auth method and records the successful run/resume procedure. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This was referenced Sep 5, 2026
brettheap
added a commit
that referenced
this pull request
Sep 5, 2026
design.md and tasks.md added prose for the OQ-6/orchestrator-pin rulings using bare `PR #NNN` / `#NNN` for Omnigent-Install PRs (#213, #129, #143, #40, #214). Bare numbers auto-link to this repository on GitHub, not Omnigent-Install, so every one is rewritten to the fully qualified `opensoft/Omnigent-Install#NNN` form. Addresses two unresolved Copilot review threads on PR #704. Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_015MK1pF6qwboDavWqxLbZN8
brettheap
added a commit
that referenced
this pull request
Sep 6, 2026
…ngs: the orchestrator pins, and OQ-6 lands first (#704) * Amend implement-omniworker-install-repo for Brett's two boundary rulings: the orchestrator pins, and OQ-6 lands first Lane: openxfactory-3 (openXfactory-3) Three `Amended 2026-09-05:` notes on design.md and one new unchecked box in tasks.md § 6. No ratified sentence is rewritten; every existing box keeps its text and its state. WHAT THE RETIREMENT MEASURED, AND WHY THE PACKET NEEDED AMENDING Omnigent-Install PR #213 attempted tasks 6.1 and could not finish it. Design § D2.1 assigns `workers/`, the host-side `scripts/` and the JUDGED docs to OmniWorker-Install; § D2.2 assigns the manager-review runtime, the compose and Kubernetes topology and the omnigent-install-manifest realization to Omnigent-Install. Both assignments stand. What neither table measured is that the second set READS the first set at run time -- in thirty-nine places. #213 measured it by removing the whole copied tree in its own branch and re-running every validator: ten of the twelve repository validators are green on that repository's main, and removing all 120 candidate paths broke all ten, including all three the Dartwing workflow runs by name. The consumers are manager_review/runner.py, agents/manager-review/seat-*.yaml, both compose stacks, k8s/local/worker-lanes.yaml, config/omnigent-install-manifest.yaml and its render-verify arm, eleven validators and eight test modules -- every one of them § D2.2 material. The path-by-path inventory is docs/omniworker-split.md in that PR, and it is the requirements source cited by each note below. RULING 1 -- "Orchestrator pins OmniWorker-Install" D2 gains the measurement and the ruling. OmniWorker-Install is CANONICAL for the worker profiles, the schemas (including workers/schemas/artifact-worker-heartbeat.schema.json), the heartbeat publisher and the other Part 1 material; the orchestrator CONSUMES them through a commit-plus-digest pin -- the estate pattern this repository already runs twice, contracts/openxwallet-pin.yaml and contracts/openreposhape-pin.yaml. Nothing is re-homed back across the boundary. That one mechanism closes four of the five items docs/omniworker-split.md recorded as owed. D3 gains a TENTH step between the copy and the retirement -- 8b PIN -- and step 9 now depends on it. The ratified "Copy-first migration" requirement already imposes that order in words § D4 read as being about consumers OUTSIDE the repository ("the source path MUST NOT be deleted from Omnigent-Install until every declared consumer has been re-pinned and verified"); it binds the ones inside it identically, and thirty-nine paths have them. Step 9 also splits by consequence: #213 landed the 50 paths whose consumers had all left with them, and the 70 Part 1 paths that remain are step 9's whole content. RULING 2 -- OQ-6, "Land it in Omnigent-Install first, then copy" D5 gains the OQ-6 amendment beside the OQ-7 one it already carries: sequence (a), now the rule for BOTH in-flight changes rather than a one-off. add-worker-acr-push finishes and lands there -- measured 2026-09-05, its repository work is already merged (Omnigent-Install PR #129 509b7d65 for the schema, the cpc-omni01 manifest block and the four test cases; PR #143 5b5592e4 for the hostapp delta that consumes them), nine of its thirteen tasks are ticked, and the four that remain are a HUMAN/VAULT gate, a live-host confirmation, one notification and its archive -- not code. Its landed packet and that hostapp delta are then copied to OmniWorker-Install as PR #40 was, with the `code_surface:` amendment owed IN THE COPY. Consequence, recorded in both files: Omnigent-Install PR #213 is HELD until add-worker-acr-push lands. #213 retires schemas/worker-host-manifest.schema.yaml and tests/test_worker_host_manifest.py, two of the four paths that change declares as its code surface; retiring them while it is active there would re-home it as a side effect of a file deletion -- what § D5's rule and the ADDED requirement both forbid. The hold is sequencing, not a defect in #213. TASKS § 6 New unchecked box 6.0 -- realize the pin and re-point all 52 staying consumers, one class per PR, before 6.1 deletes anything. Its packet is Omnigent-Install add-omniworker-install-pin (PR #214, authored by this lane; Brett ratifies). The section note records why 6.1's remaining scope is the 70 Part 1 paths, and the OQ-6 hold on #213. VALIDATION OPENSPEC_TELEMETRY=0 openspec validate implement-omniworker-install-repo --strict Change 'implement-omniworker-install-repo' is valid OPENSPEC_TELEMETRY=0 openspec validate --all --strict 95 passed, 1 failed -- IDENTICAL to origin/main at 7eedc7a, verified in a clean worktree of origin/main in the same session. The one failure is change/disposition-codexfactory-declared-renames ("Change must have at least one delta"), pre-existing and untouched here. python3 -m pytest tests/review_lane_pin tests/sequenced_after -q 235 passed, 2 skipped, 22 subtests passed Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01KMAtfAAnXd8aH3e3TMZbQk * Qualify cross-repo PR references in the boundary-rulings amendment design.md and tasks.md added prose for the OQ-6/orchestrator-pin rulings using bare `PR #NNN` / `#NNN` for Omnigent-Install PRs (#213, #129, #143, #40, #214). Bare numbers auto-link to this repository on GitHub, not Omnigent-Install, so every one is rewritten to the fully qualified `opensoft/Omnigent-Install#NNN` form. Addresses two unresolved Copilot review threads on PR #704. Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_015MK1pF6qwboDavWqxLbZN8 * Take Copilot round 2: casing, a permanent link, § spacing design.md: match the document's own existing "dartwing" casing (lines 68, 69, 88 predate this PR) rather than "Dartwing"; and swap the inventory link's branch ref (which Omnigent-Install #213 will delete on merge) for the qualified PR reference, since docs/omniworker-split.md is itself PR-authored there. tasks.md: "§D2.2" -> "§ D2.2", matching every other lettered design-section reference in the file (numbered task sections like §3.1/§4 stay unspaced, which is the file's own separate convention). Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_015MK1pF6qwboDavWqxLbZN8 * Record Brett Heap's ratification of the boundary-ruling amendments The four dated amendments this PR adds to implement-omniworker-install-repo (design § D2 retirement measurement, the ten-step sequence under "Orchestrator pins OmniWorker-Install", § D6 OQ-6 "land it in Omnigent-Install first, then copy", tasks § 6 pin step) each carry the ratification in their opening line, and the proposal header gains the Amended: line the add-nightly-dashboard-refresh precedent uses. Brett Heap, in-session, 2026-09-05 ~23:37Z, verbatim: "ratify and merge 704, 214 and 18". Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01BaDMFCnTFuTGmY17vxP2Zo * Qualify the Omnigent-Install #213 reference in the Amended: line Copilot round 3: "Omnigent-Install #213" auto-links to openxFactory's PR #213; the fully qualified opensoft/Omnigent-Install#213 matches the other amended notes. Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01BaDMFCnTFuTGmY17vxP2Zo --------- Co-authored-by: Brett Heap <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
brettheap
added a commit
that referenced
this pull request
Sep 8, 2026
…apped, consumers re-pinned, retirement landed (#213) (#803) * Tick implement-omniworker-install-repo's twelve archive-gate boxes on evidence and five named successors On Brett Heap's word of 2026-09-08 ~12:2xZ, in session, verbatim "archive implement-omniworker-install-repo", recorded on openxFactory #591; and under his ruling of 2026-09-06, verbatim "Tick on the recording". Twelve of the fifteen boxes that were open at that word close here, and each one NAMES ITS KIND rather than leaving a reader to infer it. ON THE EVIDENCE, verified with gh/git on 2026-09-08 and not copied from earlier notes. 1.2 and 7.4: docs/omniworker-naming.md has read `Status: ratified` since this change's own landing squash 76434aa, unchanged by the two 2026-09-08 amendment passes (#784 6c9e362, #789 9581ed9). 7.1: OmniWorker-Install created 2026-09-05T16:15:48Z, private, main, seed c5d0f1f6; suites green at the new location (#1 eb0c9675, #2 d617e68e) and main green through #3 33eed467, #5 54daeb3c, #6 322ee4da, #7 187d75b6; the boundary validator's planted-secret cases all caught, plus #2's control that the same bytes outside an exempt path are still flagged. 7.2: xFactory #268 2f767ac8, OpsxFactory #228 6a0d9467, CloudPC-Install #17 bba9da8a all MERGED, with 4.5 and 4.6 called out as discharged WITHOUT an edit rather than counted silently. 8.1: xFactory #274 648c8bd3, the governed admission record, separate from the pin as the requirement demands. 8.2: OpsxFactory #233 83a91c58 ratified by #235 3e4cd248. ANSWERED BY THE ACT, which is 1.3's and 7.5's substance: OQ-2 (the seam accepted and mechanized through ${OMNIWORKER_ROOT}, Omnigent-Install #217 4f82cbd8), OQ-3 (the host still checks out the orchestrator, CloudPC-Install #17), OQ-4 (root schemas/, forced by hard-coded consumer paths), OQ-8 (the archive stays whole, recorded verbatim in Omnigent-Install's docs/omniworker-split.md), OQ-10 (PRIVATE, verified live). OQ-6 and OQ-7 were already RULED and are cited to design § D5's dated amendments. ON NAMED SUCCESSORS, five issues filed at this archive, all UNCLAIMED: #794 (OQ-1 — the execution-lane-enablement runbook stayed with the orchestrator BY DEFAULT, not by decision), #795 (OQ-5 / § 8.3, the runner label), #796 (OQ-9 / § 8.4, the three enumerations), opensoft/xFactory #346 and opensoft/CloudPC-Install #19 (the two halves of § 6.3, which cannot run until Part 2 lands). 6.3's note carries the measurement that made them necessary: no post-retirement run of any of the four lanes exists, ideation-organizer-worker has NEVER run, and the cataloger's red is PRE-EXISTING. 7.6 ticks as what it is — the archive's own gate statement — with the merged-plus-green evidence summarized per repository, and with what the gate does NOT claim stated in the same breath: two successor-named operator acts and § 5.2's DISPOSED clause. NOT DONE HERE. No box's ratified requirement sentence is rewritten; the state changes and the note is appended, which is this packet's own in-place amendment convention (#704, #773). 6.1, 7.3 and 8.5 are LEFT OPEN deliberately — they turn on opensoft/Omnigent-Install #213, which is not yet merged — so `proposal-support archive` still refuses this tree with "change has incomplete tasks", by design. No archive is performed by this commit, no spec delta is promoted, no README row moves and the sweep ledger is untouched. Task 2.3 stays [~]: its owed half is Brett Heap's web act, already named twice in the packet, and it does not block the archive gate. Refs #591, #680 Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_013pt7yAnJ2TUhvMfxuuFujR * Close the last four boxes on Omnigent-Install #213's landing and one named successor (2.3) On Brett Heap's word of 2026-09-08 ~12:2xZ, "archive implement-omniworker-install-repo", and his word of ~12:10Z, "merge 213" — both recorded on openxFactory #591. Taken as a separate commit from the archive so proposal-support's output is the only thing in that one, which is the precedent 26c2661/3c06bf75 set. 6.1 CLOSED. Part 1 was Omnigent-Install #235 bbba916d (2026-09-07T12:12:15Z); Part 2 LANDED as Omnigent-Install #213 -> merge commit 9c9c9355 (2026-09-08T13:05:48Z, from head 6feafc2d) under a Rule 6 window, because it re-homed openspec/changes/add-worker-enrollment-broker-integration/ out of that repository. The OQ-6 hold recorded in the ratified text is SUPERSEDED by Brett's word, and the supersession is stated rather than glossed: add-worker-acr-push was byte-identical to main at the merge (tree 7bb94b12) so nothing was re-homed by side effect in that directory, but two of its four declared code_surface paths no longer exist in the repository that hosts it. The code_surface: amendment that leaves owed is design § D5's named cost of sequence (a); it is recorded on the PR and in that repository's docs/omniworker-split.md, and this packet neither performs nor discharges it. 7.3 MET ON ONE HALF, SUCCESSOR-NAMED ON THE OTHER, and the note refuses to conflate them. The retirement is merged in full (#235 + #213). The post-retirement re-run is NOT green because it has not run and could not have: § 6.3 sequences it after Part 2, which landed today. It closes on xFactory #346 and CloudPC-Install #19. 8.5 PERFORMED, and on the act that actually performed it rather than the one this box guessed. Read live at Omnigent-Install@main: the four scope items are gone and a paragraph names, links and quotes the boundary for OmniWorker-Install, doc index included. That landed in #235 bbba916d with Part 1 — a day before #213 completed the retirement — so the "if retirement is deferred" contingency never fired. 2.3 moves [~] -> [x] AS A RECORDING, NOT A DISCHARGE, on the coordinator's instruction and the tick-on-the-recording rule. Successor: #800. Its two existing OWED notes are left exactly as they stand. Three clauses of four were always done (ruleset 22342039, the two App secrets, the session-open-pr.yml mirror — that repository's only workflow). The fourth is measured in BOTH directions: the installation is repository_selection: all and a down-scoped `repositories: OmniWorker-Install` / `contents: read` token was really minted in CI (run 34041914618, re-proved 34042785728) — but authoring needs contents: write plus pull_requests: write, no run has asked for either, and all six OmniWorker-Install pull requests are authored by brettheap. Six PRs in, the route has never been exercised, which is the exact failure mode the box's last sentence names. Every one of the 40 boxes is now [x]; `openspec validate implement-omniworker-install-repo --strict` is clean through the pinned CLI. No ratified requirement sentence is rewritten anywhere in this commit. Refs #591, opensoft/Omnigent-Install#213 Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_013pt7yAnJ2TUhvMfxuuFujR * Archive implement-omniworker-install-repo: the OmniWorker install boundary promoted into repo-boundary-governance canon On Brett Heap's separate word of 2026-09-08 ~12:2xZ, in session, verbatim "archive implement-omniworker-install-repo", recorded and claimed on openxFactory #591. THE EVIDENCE, CITED RATHER THAN ASSERTED. The packet's front matter declares target_release: repository-bootstrap and a code surface spanning FIVE repositories, two of them operator estates, and says what that means: under release-realization it archives on merged-plus-green realization evidence and never on landing. Ratified 2026-09-05, "ratify 680 and merge 16", PR #680 at head 9186661; ratifying commit 76434aa. Per repository: OmniWorker-Install created 2026-09-05T16:15:48Z private/main/seed c5d0f1f6, copy-first in #1 eb0c9675 and #2 d617e68e, suites and boundary validator green, main green through #3 33eed467 / #5 54daeb3c / #6 322ee4da / #7 187d75b6; Omnigent-Install pinned it across twelve groups (#214 544c6319 .. #235 bbba916d), archived that packet (#237 07bdc9c3), re-pinned routinely (#246 16963099) and retired in two parts, Part 1 bbba916d and Part 2 #213 -> 9c9c9355 on Brett's "merge 213"; xFactory #268 2f767ac8 (pin) and #274 648c8bd3 (the governed admission record, a separate act as the requirement demands); OpsxFactory #228 6a0d9467 and the fleet re-attestation #233 83a91c58 ratified by #235 3e4cd248; CloudPC-Install #17 bba9da8a and #18 349d539d. PERFORMED THROUGH THE PINNED CLI, never a bare openspec archive: python3 scripts/proposal-support.py . archive implement-omniworker-install-repo --date 2026-09-08 --yes, resolving @fission-ai/[email protected] from the content-addressed pin cache, integrity verified, no registry fetch. Archived as openspec/changes/archive/2026-09-08-implement-omniworker-install-repo/. ORIGIN RETAINED fired inside the archive (declaration unchanged since the ratifying commit 76434aa) and the retention arm passed against the archived path. NO SUPPORTING DOCS: the change has no supporting-docs folder, so nothing was packaged and nothing needed to be. WHAT WAS PROMOTED, COMPARED RATHER THAN EYEBALLED. One ADDED requirement, "OmniWorker install repository boundary", appended to openspec/specs/repo-boundary-governance/spec.md: 6,391 bytes, sha256 ad04308bd63ca30de4c1566f5b0a983d2a3ef274af1ff80370b62b9a844ca80a, extracted programmatically from delta and canon and hashed identical on both sides. 90 added, 0 removed; git diff --numstat and git diff -w --numstat are identical, so 0 lines changed by whitespace and no existing requirement is touched -- in particular "Install repository scope" is left alone, which is this capability's established collision-avoidance. The capability goes 9 -> 10 requirements. No file is added under openspec/specs/, so no codexFactory floor advance is owed. THE FROZEN FILES ARE PURE RENAMES. git diff -M reports 100% similarity and 0 changed lines on .openspec.yaml, design.md, proposal.md, tasks.md and specs/repo-boundary-governance/spec.md; tasks.md's two lawful tick commits (071dbe0, 2b9625c) land BEFORE this one so they are separable from the serializer's output. The README OpenSpec Records row moves active -> archived; proposal-support does not move it. WHAT THE ARCHIVE ADMITS RATHER THAN SMOOTHS. Section 6.3's post-retirement re-run has NOT run and cannot have -- the packet sequences it after a Part 2 that landed the same day -- so 7.3 says so and it closes on xFactory #346 and CloudPC-Install #19. Section 2.3 moved [~] -> [x] as a RECORDING, not a discharge (#800). Section 5.2's pre-act emptiness confirmation stays DISPOSED, not discharged. And the OQ-6 hold was SUPERSEDED, not satisfied: add-worker-acr-push was still active in Omnigent-Install when #213 landed -- byte-identical to main at the merge, tree 7bb94b12, so nothing was re-homed by side effect -- and its code_surface: amendment is owed in that repository, not here. NOT DONE HERE: no register is edited (contracts/manifest.yaml, contracts/README.md, contracts/releases/** untouched), no release is cut, no version is allocated or reserved, no tag is pushed, no scripts/ or tests/ code moves, and the per-change sweep ledger is seeded in a FOLLOWING commit because the real pull request number does not exist until the pull request does. Refs #680, #591, opensoft/Omnigent-Install#213 Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_013pt7yAnJ2TUhvMfxuuFujR * Seed the sweep-ledger row for implement-omniworker-install-repo (moved by #803) Taken AFTER the pull request existed, because the real number does not exist until it does, and on the tree that already carries the merge from origin/main, so main's own new row (adopt-configured-notebook-hosting-identity, #783) is carried and only this change's row moves. before the seed: per-change sweep ledger STALE (4 findings) — this change's row plus its three derived totals (active 40 != 39, archived 143 != 144, active_sole 18 != 17) after the seed: per-change sweep ledger consistent with the corpus (184 rows) the write: "184 rows, 1 moved by #803" — one row, state active -> archived, moved_by #680 -> #803, moved_on 2026-09-05 -> 2026-09-08; no other row's provenance is touched, and `class: sole` is unchanged because the promoted requirement is shared with nothing pytest tests/sequenced_after tests/proposal-support -q -m "not postgres": 245 passed, 2 subtests passed Refs #591 Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_013pt7yAnJ2TUhvMfxuuFujR * The archive preface counts six successors, and names the one 8.5 actually ticks on Copilot finding, taken: the § 1 archive-amendment preface said "Five issues were filed at this archive" while the same file later records a SIXTH (#800, for task 2.3). The count is now SIX, #800 is listed, and 2.3 is named in the successor kind it belongs to — with its "recording, not a discharge" qualifier carried into the preface so the summary cannot read as a claim the App-authorship route was proved. A SECOND inconsistency of my own, in the same sentence, fixed while here: the preface grouped 8.5 with 6.1 and 7.3 as ticking on Omnigent-Install #213's merge. It does not. 8.5 ticks on #235 bbba916d — § 6.2 performed the scope link with Part 1, a day before Part 2 completed the retirement — which is what 8.5's own note says and what the live Omnigent-Install README shows. The preface now says so, and says that this corrects the box's ratified "as part of retirement" guess by note rather than by carrying it. No box's state changes and no ratified requirement sentence is touched; this is the preface's own prose. openspec validate --all --strict unchanged at 97 passed / 2 failed, the two pre-existing accepted exceptions. Refs #591 Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_013pt7yAnJ2TUhvMfxuuFujR --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this fixes
The merged open item (
docs/notebooklm-sync-open-item.md) and harness (scripts/nlm_auth.py) described authenticatingnlmby harvesting cookies and importing them vianlm login --manual. That path does not produce working auth:--manualstores cookies as a{name: value}dict (the native store expects a cookie list of full dicts) and leavescsrf_token/session_idnull, sonlm notebook listreturns "Authentication expired" even though the import reports success.This PR replaces that with the method proven to work on 2026-08-19: full CDP/Playwright extraction of a live NotebookLM session under WSLg, capturing all three of the cookie list +
csrf_token+session_id.scripts/nlm_auth.pybootstrapandrefreshnow write the FULL native profile —cookies.jsonas the cookie list,metadata.jsonwithcsrf_token/session_id(email/build_label null) — instead of the cookies-onlynlm login --manualdict.extract_csrf_from_page_source/extract_session_id_from_page, imported via a guardedsys.pathinsert to the CLI site-packages (degrades gracefully with a hard warning if absent, since a cookies-only profile would be incomplete).--cdp-urlto connect to an already-signed-in headed Chrome over localhost CDP (no re-login), alongside the persistent-profile launch path.--profile-parameterized (defaultpersonal) and--channel chromedefault (bundled Chromium did not render under this WSLg).nlm notebook list, neverlogin --check.--manualpath is insufficient.docs/notebooklm-sync-open-item.mdnlm login --cdp-urlon a non-default port with the browser on notebooklm.google.com, or the direct harness).wsl --updateif it regresses).xf-wb-*orphan sweep deliberately skipped; manifest copied back to aggregation root).xf-wb-*cross-checkout sweep bug note.🤖 Generated with Claude Code