Expand description
The one pure target-specific projection over this binary’s embedded sources.
Projection::compute takes a ProjectionInput, values alone, and
answers the complete candidate artifact tree this installed binary
would land in one target: every destination with its ownership
Kind, its Placement, the complete proposed bytes, the rendered
region where the destination is a marked region, and the embedded
source paths it was rendered from. Staging and production landing
share it byte for byte, so what an agent studies in a stage is what a
landing writes.
This module reads snippets and blocks through src/embedded.rs
directly and reads nothing else: no target file, no environment, no
Git state, no clock, no registry, no network. Whatever a projection
needs from the target arrives as TargetEvidence, gathered before
construction by evidence::gather, which lives in its own file so a
source scan can hold this one to the pure boundary.
Every pure piece of the landing model has one implementation here: the
kind table, the token substitution, the block templating, the splice
and marker judgments, and the Nix crate-shape judgment. Which embedded
source belongs to which capability, and whether a capability is
available at the target’s dimensions, is the catalog’s answer in
crate::profile::catalog, and this module renders what the catalog
selects. src/landing.rs re-exports the pieces under their old names.
One input type, one compute function, one candidate shape: staging and every landing verb consume this one projection.
Re-exports§
pub use crate::landing::manifest::Provider;
Modules§
- evidence
- Gathering the target evidence a projection consumes.
Structs§
- Candidate
- One proposed destination.
- Collision
- One block destination the target’s document cannot take.
- Crate
Shape - The structural facts of the target’s crate that the seeded Nix package expression and the seed flake’s smoke check rely on.
- Omission
- One destination withheld from this target, with why.
- Projection
- The complete candidate artifact tree for one target.
- Projection
Input - The complete input to one projection: the resolved landing parameters and the typed evidence read from the target beforehand.
- Target
Evidence - What a projection needs to know about the target, gathered before the projection runs and carried as values.
- Trunk
Guards - The two authored guard entries the integration mode selects between, beside the mode itself.
Enums§
Constants§
- AGENTS_
BLOCK - The authored routing-block template.
- AGENTS_
DESTINATION - The destination the routing block splices into.
- AGENTS_
LINE_ BRANCHES - The routing block’s mode line, branches form.
- AGENTS_
LINE_ INTEGRATION_ FORGE - The routing block’s integration line, forge form.
- AGENTS_
LINE_ INTEGRATION_ LOCAL - The routing block’s integration line, local form.
- AGENTS_
LINE_ WORKTREE - The routing block’s mode line, worktree form.
- BLOCK_
BEGIN - The block’s opening marker.
- BLOCK_
DESTINATIONS - Every block destination, in the order a landing writes them.
- BLOCK_
END - The block’s closing marker.
- BRANCH_
GRAMMAR - The one branch grammar.
- CODE_
SCANNING_ DESTINATIONS - Every destination the opt-in code scanning capability can land, against the provider that lands it.
- CODE_
SCANNING_ TECHS - The bindings that ship a code scanning workflow.
- GITLAB_
ROOT_ PIPELINE - The GitLab root pipeline, the one destination a release-less landing withholds where the target owns it.
- GITLAB_
TITLE_ FRAGMENT - The GitLab title fragment the root pipeline includes.
- GLOSSARY_
BLOCK - The authored glossary template.
- GLOSSARY_
DESTINATION - The destination the glossary block splices into.
- HOOKS_
BEGIN - The hook block’s opening marker, a YAML comment at column zero.
- HOOKS_
DESTINATION - The destination the hook block splices into.
- HOOKS_
END - The hook block’s closing marker.
- HOOK_
TYPES_ LINE - The top-level key the fresh hook file carries and the skills verify on an existing one: the commit-msg and pre-push hooks run only where their hook types are installed.
- LINE_
PREFIX_ RE_ TOKEN - The same prefix, escaped for a slash-delimited regular expression.
- LINE_
PREFIX_ TOKEN - The release-line branch prefix, naming the lines a release trigger accepts beside the trunk.
- NIX_
DESTINATIONS - The destinations of the opt-in Nix capability, present in a projection
only where the landing’s
nixparameter is on. - NIX_
WITHHOLDABLE - The subset a target with a flake of its own keeps out: the seed pair, whose files would sit beside a flake release-kit did not author.
- OWNER_
TOKEN - The mechanical substitution sites in
renderedfiles. - PRE_
COMMIT_ BLOCK - The authored hook-block template.
- PRE_
COMMIT_ INTEGRATE_ NOTE - The header note naming the pre-integrate contract.
- PRE_
COMMIT_ SWEEP_ NONE - The header note for the pairing whose sweep skips nothing.
- PRE_
COMMIT_ SWEEP_ SKIP - The header note naming what a CI sweep skips.
- PRE_
COMMIT_ TRUNK_ COMMIT_ GUARD - The forge integration mode’s guard against a trunk commit.
- PRE_
COMMIT_ TRUNK_ PUSH_ GUARD - The forge integration mode’s guard against a trunk push.
- PRE_
COMMIT_ WORKTREE_ GUARD - The worktree mode’s guard entry.
- REPO_
PLACEHOLDER - The repository a preview stands in for where nothing answered.
- REPO_
TOKEN - The full recorded project path, including nested namespaces.
- SCOPE_
SHAPE - The one commit scope shape.
- SCOPE_
SHAPE_ TOKEN - The one scope shape: the title checks’ regular expression.
- SCORECARD_
DESTINATIONS - The destinations of the opt-in Scorecard capability, present in a
projection only where the landing’s
scorecardparameter is on. - SECURITY_
SPANS - The three replaceable spans of a landed security policy, each as its ordered begin and end marker.
- STYLE_
TOKEN - The recorded release style:
trunkarms the bot’s request in the landed release workflow,linesleaves every request unarmed. - TRUNK_
BRANCH_ TOKEN - The one permanent branch. A landed release trigger, ref guard, and
branch guard each name it, so a target whose trunk is not
masterneeds its own answer in its own bytes.
Functions§
- authored
- An authored block without the one final newline the repository’s
hooks enforce on every file under
blocks/; a test insrc/embedded.rsholds each file to exactly one. - block_
markers - The markers of a block destination, or
Nonefor a whole-file one. - code_
scanning_ incompatibility - Why the named code scanning provider cannot run at this
(technology, forge), orNonewhere it can or none is named. - code_
scanning_ licence_ refusal - Why the code scanning capability’s licence condition refuses this
target, or
Nonewhere no condition applies or the licence satisfies it. - compose_
glossary - The glossary block from its authored template: markers included and without a trailing newline. It carries no token and no mode, so the same bytes land in every target.
- compose_
hooks - The hook block from its authored template, for one pairing of the two Git workflow axes.
- compose_
routing - The routing block from its authored template and the mode’s one orientation line.
- destinations
- Every destination the embedded sources can land, in declaration order.
- embedded_
block - One authored block this binary embeds, as text, by its embedded path.
- extract_
block - The marked block inside a document, markers included, or
Nonewhere the text carries no complete block. - flake_
pair_ withheld - Why the flake half of the Nix capability stays out of this landing, or
Nonewhere the pair lands whole. - glossary_
block - The glossary block from this binary’s embedded template.
- hooks_
block - The hook block for one checkout mode, from this binary’s embedded templates.
- hooks_
marker_ defect marker_defectfor the hook file, the destination whose entries execute.- integration_
line - The routing block’s integration line for one integration mode.
- kind_of
- The declared kind of a destination, or
Nonefor a file the sources does not classify. - licence_
is_ osi_ approved - Whether one SPDX expression is well formed and every licence in it is OSI-approved.
- marker_
defect - The one definition of an ill-formed block document, shared by every
splice and every reader that judges one:
Nonefor a whole-file destination or a well-formed document. - nix_
unsupported_ shape - Why the whole Nix capability stays out of a landing, or
Nonewhere the target’s crate shape supports the seed. - nix_
withholding - The Nix destinations an opted-in landing withholds at this target, with
the one reason, or
Nonewhere the capability lands whole ornixis off. - render
- Substitute the landing parameters into a
renderedfile’s bytes. - routing_
block - The routing block for one checkout mode, from this binary’s embedded templates.
- routing_
line - The routing block’s mode line for one checkout mode.
- scope_
is_ shaped - Whether one scope matches
SCOPE_SHAPE. - splice_
hooks_ block - The whole
.pre-commit-config.yamlcontent after splicing the rendered hook block. - splice_
marked_ block - The whole document’s bytes after splicing a marked block into it.
- substitute
- Every
tokenoccurrence replaced withvalue. - supported_
pairs - Every
(driver, forge)pair at which the release automation is available, in path order.