Skip to main content

Module mapping

Module mapping 

Source
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/match gets the identity candidates (super::identity_v2). bound maps at once. suggested and none (with can_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§

MatchAnswer
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 fixtures routes/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 root to when that is not ours: another Instance of the workspace resolved the repository there. None when 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 stable is 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 neither cloud consent, cloud status nor a web page lists it as waiting. Returns the closed ids.
consent_subject
The link_vault subject for sharing the checkout at root (identity stable) with target. vault is 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 (identity stable), which this machine has not mapped there. known is 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, else project.
route_missing
A Cloud without the route: 404 (axum’s own, or a not_found body), 405, or 426 (a Cloud that refuses the protocol version).
satisfied
A first-share request for a checkout map already knows: nothing to answer, so cloud consent and cloud status never 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.