0.1.5: uploading checks everything first; no silent joining

- Before anything is made on the team, upload checks the vault the way the
  hub will (the hub's per-entry check now lives in core): a vault on one
  device only holds every line that looks like a secret as a red card to
  decide; lines marked "not a secret" are told to the team's hub at upload;
  history with a flagged entry offers a fresh start. A refused upload no
  longer leaves an empty vault on the team.
- A vault on one device joins a same-named team vault only when they share
  history; otherwise the team's vault arrives beside it in its own folder.
  (A failed upload's empty vault had silently swallowed Brain.)
- The upload sheet follows the vault live and waits for those decisions.
- Full checks of such a vault are cached by content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 18:23:28 +07:00
parent fdcdecf0f1
commit ac5dba46df
12 changed files with 239 additions and 78 deletions

View File

@@ -210,4 +210,5 @@ Record here: date, what changed, why, which decision number. Example:
- 2026-10-29 — Deleting a vault (new, team owner): everyone is removed the usual way (handover, then copies removed), the history stays archived on the hub and the name is freed. Asks for confirmation, like Remove from team (X2). (Sen, after testing)
- 2026-10-29 — Moving a vault onto a hub (new): the team owner and anyone with Manage on a vault may create vaults, so they may upload one too (the app's **Upload**, `lunesync vault upload`). Only a vault that's on that device alone goes up; one on its own remote (GitHub, GitLab…) is **detached** first, and a check-in no longer moves a same-named vault off its own remote silently. Avoids one vault's notes living in two places (A3). (Sen)
- 2026-10-29 — A vault's settings decide where it shares: a folder found pointing elsewhere is set back. A leaving device whose older history has a possible secret hands over its current notes as one entry with those lines replaced, instead of never finishing (A6, P3). (Sen, after the Brain mix-up)
- 2026-10-29 — Uploading checks everything first, the way the hub will: a vault on one device only holds every line that looks like a secret for a decision; "not a secret" marks travel to the team; history with one goes up as a fresh start. Nothing is made on the team until it passes. A vault on one device joins a same-named team vault only if they share history; otherwise the team's arrives beside it (P2, P3). (Sen, after the Brain upload)
- 2026-10-29 — Community release without Apple signing, under AGPL-3.0-only; the public repo stays at git.senkensha.space. (Sen)