Fix LinkedIn Ops Console auth/sync readiness flow#80
Open
Chkhikvadze wants to merge 4 commits into
Open
Conversation
… layer for LinkedIn Op Task: 60301fde-c177-49cf-95c6-7739d3a85b81
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.
Problem
The ops console looked "ready" while showing 0 conversations, and the bearer-token field made LinkedIn auth look like the blocker even when local API auth was off.
Root cause
The UI only exposed a dry-run sync path and unclear token copy. The backend ops contract also had no
/ops/sync/runendpoint for the console to perform a confirmed read-only LinkedIn sync. Live validation also exposed a provider edge case where/voyager/api/mecan return numericplainId, causing the backend thread-list path to crash instead of surfacing an actionable auth/session error.Fix
POST /ops/sync/runwith explicitconfirm_external_read=true, read-only sync execution, runtime header support, redacted audit evidence, and zero external writes.Sync nowconsole action plus clearer next-step state for empty inboxes.Validation
uv run pytest tests/test_ops_api.py tests/test_list_threads.py -q→ 74 passeduv run pytest -q→ 441 passedhttp://100.113.216.73:8899;/ops/statushealthy and auth_required=false/ops/sync/runnow returns a redacted actionable 401 session-refresh error instead of crashingKnown gaps / blockers
POST /accounts/refreshor Chrome extension refresh is required before real conversations can sync.Production expectation
Target branch is
main. This should be reviewed/merged before calling the ops console operator-ready; main/production landing still requires Giga approval.