Skip to content

fix(ok): one authority for document conflicts (PRD-8318, PRD-7947) (#4102) - #28

Merged
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync
Sep 14, 2026
Merged

inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync

Conversation

@inkeep-oss-sync

Copy link
Copy Markdown

Copybara-translated 1 Inkeep OSS change. Rebase-merge this PR so the prepared commit lands directly on public main.

Linear: this mirror replays a change that already merged upstream, so it must not drive ticket status.
skip PRD-8318
skip PRD-7947

…4102)

* fix(ok): use one conflict authority (PRD-8318, PRD-7947)

* fix(ok): preserve conflict snapshots and canonical paths

* refactor(ok): drop review-round accretion from the conflict authority

Keeps the one-authority design and both fixes (PRD-8318, PRD-7947) and
removes what neither ticket needed:

- revision optimistic concurrency: StaleConflictError, the stale-conflict
  URN, ledger version 3, the required wire field, and the MCP refusal of
  revision-less servers. The ledger is version 2 and migrates version 1.
- the fail-closed editor gate: the editor no longer waits on the
  conflicts fetch. Retry ladder, Retry panel, focus restore, sidebar
  announcements, and the file-tree trash gate are gone. The server still
  refuses writes on a conflicted doc and the sync-status signal swaps the
  view when a conflict arrives.
- raise/dissolve outcome enums, docConflictState, the persistFailures
  counter, the required lifecycleOf option and its 37 no-op fixtures, and
  the capture options object on refuseStaleExternalWrite.
- the prune-await harness, folded into the server-factory authority test.
- the unrelated file-watcher root-event fix and the hook stdin-drain test
  and runbook section, saved as patches under tmp/split-out for their own
  PRs. The two-line hook reorder stays so CI is unchanged.
- two doc regressions (mcp.mdx import row, skills link), the triplicated
  resolution paragraph, and the inline spec corrigenda.

The DiffViewBoundary stage fetch keys on file and detectedAt again, as on
main, so a conflict re-raised on the same file refetches.

* docs(ok): tighten the conflict authority prose

Rewrote the passive and hedged sentences in this branch's conflict docs into active voice, split the densest ones, and cut the filler. No facts changed: the kinds, refusal values, ledger behavior, and error semantics all read the same.

* docs(ok): fit the conflict authority changeset in the word budget

* fix(ok): preserve live conflict edits and recover invalid ledgers

* test(ok): supply conflict authority to remaining sync fixtures

GitOrigin-RevId: 057c7d709eda6cb092bfd314ab1b57e0b91fd5e4
@inkeep-oss-sync
inkeep-oss-sync Bot merged commit bcb2b15 into main Sep 14, 2026
@inkeep-oss-sync
inkeep-oss-sync Bot deleted the copybara/sync branch September 14, 2026 21:08
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