Expand description
Project → vault mapping and the first-share confirmation (CHECKLIST
2.1.2, 2.1.3; design ee/delivery/cloud-v5-project-mapping.md).
For a checkout this machine has not mapped yet:
- A Cloud with
POST /v1/vaults/matchgets the identity candidates (super::identity_v2).boundmaps at once.suggestedandnone(withcan_create) go to the existing resolve, which binds or creates. - Without the route (1.x prod; a 404 is remembered for a day) resolve runs as before.
The person confirms once before knowledge first crosses a new boundary:
a vault this machine never shared with (suggested, none, a committed
link file, or any first resolve on a Cloud without the route, since
resolve creates a vault on first sight), and a vault that moved into
another workspace (personal → team). It is a link_vault consent,
answered only by the person (lean-ctx cloud consent), never by an
agent. The gate holds for machines whose person answered the sharing
question at cloud connect; machines connected without that answer
(scripts, harnesses, earlier engines) keep the earlier behaviour.
Structs§
- Match
Answer leanctx.cloud.vault-match/v1. Members this engine does not know are ignored, so the server may add some.
Enums§
- MapError
- Why a checkout is not mapped (yet).
- Step
- What an answer of the match route lets the engine do.
- Target
- The vault a first share goes to, as the person confirms it.
Constants§
- MATCH_
REQUEST_ SCHEMA - Request body of
POST /v1/vaults/match(C0 fixturesroutes/vault_match.*). - MATCH_
SCHEMA - Answer of
POST /v1/vaults/match. - NEW_
VAULT_ WS - Workspace part of the consent address of a vault Cloud may create.
Functions§
- bound_
elsewhere - The vault Cloud binds the checkout at
rootto when that is notours: another Instance of the workspace resolved the repository there.Nonewhen both agree, on a Cloud without the match route, or when Cloud cannot be asked (a warning only, connect goes on). - close_
satisfied - The checkout with identity
stableis mapped: a first-share request still open for it (opened before another engine’s sync created the vault) asks for nothing any more. It is closed here and withdrawn in Cloud, so neithercloud consent,cloud statusnor a web page lists it as waiting. Returns the closed ids. - consent_
subject - The
link_vaultsubject for sharing the checkout atroot(identitystable) withtarget.vaultis what the person types to approve. - first_
share_ gated - The person answered the sharing question at connect for this workspace: from then on a first share waits for their yes.
- map_
root - The vault of the checkout at
root(identitystable), which this machine has not mapped there.knownis this machine’s record of the same repository from another checkout, if any. - match_
available - Whether to ask the match route: a C0 2.0 Cloud that did not answer “no route” within the last day.
- new_
vault_ name [a-z0-9-]{2,40}from the checkout folder name, elseproject.- route_
missing - A Cloud without the route: 404 (axum’s own, or a
not_foundbody), 405, or 426 (a Cloud that refuses the protocol version). - satisfied
- A first-share request for a checkout
mapalready knows: nothing to answer, socloud consentandcloud statusnever list it as waiting (the next sync closes it here and in Cloud,close_satisfied). - step_
from_ answer - The step an answer names, or why the answer breaks the contract.