paths
paths
¶
Path validation checks.
Validates that paths referenced in the configuration exist and are accessible.
Classes¶
ValidationPathScopeCheck
¶
Check static path_in_scope rules resolve inside their allowed root (V306).
Methods:¶
check
¶
Check path_in_scope rule paths when they are statically resolvable.
Source code in src/marianne/validation/checks/paths.py
WorkspaceParentExistsCheck
¶
Check that workspace parent directory exists (V002).
The workspace itself will be created, but its parent must exist. This is auto-fixable by creating the parent directories.
Methods:¶
check
¶
Check workspace parent exists.
Source code in src/marianne/validation/checks/paths.py
AbsoluteHomePathCheck
¶
Flag machine-absolute paths under the user's home (V004).
Absolute /home/<user>/... (or equivalent) paths make scores
non-portable and leak personal layout into shared artifacts. The
portable forms are ~-relative, {workspace}/{score_dir}
templates, and relative paths.
Judged against the RAW YAML, not the model: the model pre-resolves a
~/ workspace into an absolute-under-home Path at load time, which
would false-positive the explicitly-portable tilde form. Movement
cadenzas (movements.<n>.cadenzas) are scanned the same way (GH #571).
Methods:¶
check
¶
Check workspace, prelude/cadenza paths, hook job_paths, variables.
Source code in src/marianne/validation/checks/paths.py
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 | |
TemplateFileExistsCheck
¶
Check that template_file exists if specified (V003).
Methods:¶
check
¶
Check template_file exists.
Source code in src/marianne/validation/checks/paths.py
InjectionSizeCheck
¶
A static injection item already exceeds its max_bytes (V334).
The runtime refuses (required) or drops (optional) an over-cap item at every sheet; this is the same measurement taken once, before the run, for paths that need no templating. A snapshot, not the contract — a ledger that is under the cap now can cross it on sheet 40 (GH #474).
A REQUIRED item over its cap is an ERROR: the sheet cannot run, and a
warning let nine fleet scores through every static gate to fail at
sheet 1 (GH #515). An optional item stays a WARNING (it will be dropped).
A movement cadenza item is measured once per declaration, under the
source label cadenza (stage N) (GH #571).
PreludeCadenzaFileCheck
¶
Check that prelude/cadenza files exist when paths are static (V108).
Only checks non-templated paths (no Jinja {{). Templated paths
are resolved at execution time and cannot be validated statically.
Definite input files must exist before execution.
Movement cadenzas (movements.<n>.cadenzas, GH #571) are checked like
sheet cadenzas: once per (stage, item), under the source label
cadenza (stage N), with the same declared-product exemption.
Methods:¶
check
¶
Check prelude and cadenza file/directory paths.
Source code in src/marianne/validation/checks/paths.py
CadenzaOrderingCheck
¶
V109: a cadenza reads a file whose producer runs later (#137).
Uses three signals:
- CONSUMER: cadenzas (which sheet injects/reads which file). A
movement cadenza (movements.<n>.cadenzas, GH #571) is read by each
voice it reaches, so it is judged per voice, with at most one finding
per (stage, item).
- PRODUCER: movement produces, stdout_to, or the sheet-gated
file_exists proxy (in descending ownership priority).
- ORDER: the dependency DAG (which sheet is guaranteed to run first).
Warns when a cadenza on sheet M reads a file F that some sheet P is
declared to produce, but P is NOT a DAG-ancestor of
M — so F is not guaranteed to exist when M's cadenza fires. WARNING
only: declared output is not proof that a file exists at cadenza time.
F is matched to the producers by file name as written, so a per-voice
path such as unit-{{ voice }}.md matches only a producer declared
under that same name.