Skip to content

docs(core): ADR 0055, managed policies for the sync provider and tablepro.app traffic - #4483

Merged
datlechin merged 4 commits into
mainfrom
docs/core-adr-0055-managed-policies
Nov 25, 2026
Merged

datlechin merged 4 commits into
mainfrom
docs/core-adr-0055-managed-policies

Conversation

@datlechin

@datlechin datlechin commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Summary

  • New core ADR 0055: managed policies for the sync provider and the requests to TablePro hosts.
  • PersonalSyncProvider: one list-valued key with values off, icloud and tablepro-sync.
    • Absent means no restriction.
    • Otherwise the entries this platform offers, less icloud under ICloudSyncAllowed=false, are the picker's choices. One forces it, several allow those, and a list that is set but leaves none means off.
    • Unknown or non-string entries are skipped and logged.
  • A forced TablePro Sync still asks before its first upload: sign-in with service_sync, the upload confirmation and the recovery key. The confirmation is bound to one server and account.
  • A provider that stops being allowed stops at once, with no last pass, and the device keeps its data. In-flight answers are dropped. A server's personalSync takes away only its own provider and never starts another. Team scopes are never affected.
  • Policy values are read at launch and on each OS change notice. When the values no longer allow the signed-in server, the account stops calling it until a launch switches the server (0047).
  • Linux: a refused policy source (wrong owner or mode, a person's shadowing Flatpak extension, unparseable JSON) fails closed instead of counting as absent. This amends 0044's "ignored".
  • AllowOtherAccountServers=false with a company AccountServerURL also stops share-link reads (account.server_managed before any request) and the AI catalog refresh. A table lists every request to a TablePro host and what stops it. Update feeds and the plugin registry keep their own keys, and the table says where those keys fall short (Sparkle's manual check, App Installer's own checks).
  • The Mac reads UsageDataAllowed, PluginCatalogAllowed and ICloudSyncAllowed. ICloudSyncAllowed=false writes Keychain items device-only and keeps synchronizable items that are already written.
  • One key table (type and platforms per key) replaces 0044's. A type table gives each channel's encoding: a list is <array> on macOS, stringArray in AppConfig, an ADMX <list> subkey with values 1, 2, ... on Windows (HKLM wins per key, never merged), and a JSON array on Linux.
  • Self-hosted personalSync switch, on by default. Off makes the personal and history scopes answer rejected (policy), so the install serves Team Library only. Policy tombstones say so on the record, and clients keep their local copies. 0051 gives the field and the wire.
  • Status and index: 0049 (catalog refresh amended by 0055), plus the 0055 row. The 0044 and 0047 Status lines are left to the 0051 PR, as the plan splits them.

Test plan

  • Docs only. scripts/check-banned-words.sh passes on the changed files, and lychee --offline --include-fragments passes on them.
  • Codex review and adversarial design pass: 2 update-row findings and 4 design findings, all fixed.
  • Codex security pass: 3 highs fixed (a server starting iCloud, uploads to a server the policy no longer allows, a shadowed Flatpak policy).
  • Final Codex re-check: approve, no findings.

@datlechin
datlechin enabled auto-merge (squash) November 25, 2026 05:46
@datlechin
datlechin merged commit fe6a624 into main Nov 25, 2026
21 of 22 checks passed
@datlechin
datlechin deleted the docs/core-adr-0055-managed-policies branch November 27, 2026 16:37
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