fuzzy1337.path_commands¶
Experimental 1337 paths analyze, product profile version 1, is implemented by
this Internal module. All its Python classes, functions, methods and helpers are
Internal, including PathParser, PathEvidenceStore, PreflightProof,
PreflightAssessments, OutputBudget, PathDocument and RunPathCommands.
Importability and authored API discovery do not establish a supported Python SDK.
The command requires an existing local workspace, complete schema-one saved-model
revision/content pin, distinct original source/target, explicit existing directed
RELATED_TO transitions and original assessment manifest IDs or explicit
--no-assessments. Context/scope, offset-aware --as-of, freshness and every
finite search/cut budget are mandatory. Snapshot SHA-256 uses 64 lowercase hex
characters without sha256:; original evidence IDs retain that prefix. The
unchanged SDK ceiling applies to all eligible objects in the entire saved model:
at most 512, including isolated/unselected objects. Check this before proof I/O;
at most 2048 selected transitions are allowed. No implicit partition, source/edge
discovery or semantic grouping is introduced.
Selected original canonical manifests are metadata/profile/context preflighted
before their raw reads. Assessment role/media/source version remain
reachability-claims / application/json / 1, with no execution/invocation
substitution, at most 32 original manifests and 2048 total declarations. Actual
assessment bytes are bounded at 256 KiB each. Every declared support manifest and
existing retained observation join is preflighted before support blobs are read:
exact workspace/scope, subject, full original reference set and source/provider/
time/execution attribution. Support role/format versions stay SDK-owned, with at
most 256 distinct manifests, 16 IDs per basis entry and 64 KiB per support blob.
Manifest metadata retains the existing one-MiB ceiling. Reject physical size
mismatch/overflow, observed links/reparse points, nonregular selected files and
multiply linked selected artifacts. Bounded metadata/assessment reads check full
same-view identities and the existing Windows cross-view path/handle allowance.
No generic report reader eagerly enumerates unrelated same-blob aliases.
Call unchanged ReadReachabilityClaims, ProjectReachability and
AnalyzeReachabilityPaths in that order. Actual original owning records and
sealed outputs are mandatory; caller-reconstructed JSON cannot substitute for
them. The actual full saved model pin is checked before consumption and current
workspace/model is reread before success. Original records/bytes and complete
workspace relocation remain intact; the existing cooperative local pathname
storage contract is unchanged.
The one-MiB schema-one terminal DTO excludes raw witnesses, observation attributes and private seals. It retains original selected transition states/reasons and proof references, original paths/hops/barriers, individual supplied/effective confidence estimates, admission coverage, participation and structural single-removal counts. Unusable stale/future/failed/missing proof remains attributed UNKNOWN where the SDK permits it; original declared confidence is preserved without effective confidence. A stale assessment model pin is not rewritten to the current model. Substituted identities/context/joins or corrupt bytes are refused without rewriting any original stored artifact.
Search completeness, limits and truncation reasons remain separate from independent cut-work completeness, verified cuts, checked alternatives, unverified candidates and true/false/unknown selected-graph route existence. Removal counts concern returned nonblocked candidates; they are not probability, cost/risk, physical exploitability, global completeness or validated mitigation efficacy. Repeated DTO records are charged incrementally and the final serialized ceiling includes its newline. Oversized results fail without partial analysis output.
Exit statuses are 0 for completed bounded analysis, including honest truncation;
2 for invalid configuration/selection; 4 for basis/proof/integrity/read/output
failure; and 130 for interruption. Failures keep generic categories without
original exception bodies or rejected literals. Every outcome reports no
Core/evidence mutation and no authority. Static help reads no local state.
Installed-console and foreground-shell routes share this owner. Shell context
supplies no omitted selections or grants, and protected local/native history and
empty-line replay keep only paths. The module acquires nothing, writes no
workspace/model/evidence or hidden output, runs no scanner/process/network
request and grants no scope, target or execution authority. Existing SDK/Core,
schemas, scoring, source-support and grouping contracts remain unchanged.
See product usage and ADR 0083.
fuzzy1337.path_commands
¶
Internal explicit read-only selected-graph path analysis through existing evidence owners.
PathEvidenceStore
¶
Bases: LocalEvidenceStore
Preflight selected immutable manifests and physical blobs without unrelated alias reads.
Source code in fuzzy1337/path_commands.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 | |
__init__(root: Path, workspace_id: str, scope: str) -> None
¶
Retain exact offline ownership context without touching any stored artifact.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
root
|
Path
|
Explicit existing local evidence directory. |
required |
workspace_id
|
str
|
Exact current owning workspace identity. |
required |
scope
|
str
|
Explicit offline attribution shared by assessments and support. |
required |
Source code in fuzzy1337/path_commands.py
97 98 99 100 101 102 103 104 105 106 107 108 | |
ReadStoredBytes(parts: tuple[str, ...], max_bytes: int) -> bytes
¶
Read bounded selected metadata/assessment bytes with stable single-link observations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
parts
|
tuple[str, ...]
|
Fixed content-addressed relative path through the existing storage owner. |
required |
max_bytes
|
int
|
Original manifest/schema byte ceiling, never a declared allocation hint. |
required |
Returns:
| Type | Description |
|---|---|
bytes
|
Unchanged bounded bytes after same-view and path/handle identity checks. |
Source code in fuzzy1337/path_commands.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | |
Manifest(identity: str, *, assessment: bool) -> EvidenceRecord
¶
Validate original typed identity/context/profile/size before any referenced raw read.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
identity
|
str
|
Explicit original assessment or source-declared support manifest ID. |
required |
assessment
|
bool
|
Require the closed assessment profile; support roles remain SDK-owned. |
required |
Returns:
| Type | Description |
|---|---|
EvidenceRecord
|
Exact canonical immutable record after non-following physical blob size preflight. |
Source code in fuzzy1337/path_commands.py
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 | |
OutputBudget
¶
Bound incremental DTO record construction before building a large repeated explanation.
Source code in fuzzy1337/path_commands.py
309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 | |
__init__() -> None
¶
Reserve a small fixed envelope budget and own one per-render accounting counter.
Source code in fuzzy1337/path_commands.py
312 313 314 315 | |
Records(values: Iterable[dict[str, object]]) -> list[dict[str, object]]
¶
Charge each compact record before retaining it in a detached output collection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
values
|
Iterable[dict[str, object]]
|
Lazy safe dictionaries without raw attributes or private SDK fields. |
required |
Returns:
| Type | Description |
|---|---|
list[dict[str, object]]
|
Bounded detached list; excessive output fails instead of truncating explanation facts. |
Source code in fuzzy1337/path_commands.py
317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 | |
PathParser() -> argparse.ArgumentParser
¶
Declare one explicit source/target analysis without discovery, grouping or output files.
Returns:
| Type | Description |
|---|---|
ArgumentParser
|
Parser requiring complete model pins, original selections, replay clock and all budgets. |
Source code in fuzzy1337/path_commands.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |
PreflightProof(entry: dict[str, object], subject: str, records: tuple[EvidenceRecord, ...], observations: dict[str, Observation], scope: str) -> None
¶
Reject substituted retained support joins before any selected support blob is read.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entry
|
dict[str, object]
|
Original SDK-parsed declaration basis or blocking-control proof entry. |
required |
subject
|
str
|
Original selected relation or explicitly named control reference. |
required |
records
|
tuple[EvidenceRecord, ...]
|
Metadata-only preflighted original supporting manifests. |
required |
observations
|
dict[str, Observation]
|
Exact current owning model observations indexed by reference. |
required |
scope
|
str
|
Explicit offline attribution, granting no execution authority. |
required |
Returns:
| Type | Description |
|---|---|
None
|
Nothing; missing basis/evidence remains for the actual SDK's attributed UNKNOWN outcome. |
Source code in fuzzy1337/path_commands.py
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 | |
PreflightAssessments(store: PathEvidenceStore, identities: tuple[str, ...], model: ModelState, context: str) -> tuple[EvidenceRecord, ...]
¶
Preflight every selected assessment and all declared support before SDK support reads.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
store
|
PathEvidenceStore
|
Exact local read owner with current workspace and offline scope attribution. |
required |
identities
|
tuple[str, ...]
|
Zero or up to 32 distinct independently selected original assessment pins. |
required |
model
|
ModelState
|
Exact owner-read current model; stale assessment pins remain the SDK's UNKNOWN input. |
required |
context
|
str
|
Explicit attestation context, never authentication or execution grant. |
required |
Returns:
| Type | Description |
|---|---|
tuple[EvidenceRecord, ...]
|
Original selected typed assessment records, never manufactured sealed claim objects. |
Source code in fuzzy1337/path_commands.py
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 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 | |
PathDocument(result: PathAnalysis) -> dict[str, object]
¶
Project original SDK explanations into a bounded safe DTO without seals or source bodies.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
PathAnalysis
|
Exact actual pure consumer output over its owning-read sealed projection. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, object]
|
Explicit profile-one path/coverage/cut facts with preserved reasons and original references. |
Source code in fuzzy1337/path_commands.py
340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 | |
RunPathCommands(arguments: Sequence[str], output: TextIO, *, json_output: bool = False) -> int
¶
Analyze only an explicitly pinned saved selected graph without any durable writes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arguments
|
Sequence[str]
|
Analyze action, existing workspace, selections, clock and finite budgets. |
required |
output
|
TextIO
|
Caller-owned stream receiving safe bounded JSON or a concise human explanation. |
required |
json_output
|
bool
|
Emit a schema-one DTO without raw evidence, observations or private seals. |
False
|
Returns:
| Type | Description |
|---|---|
int
|
Zero for completed bounded analysis, two for invalid configuration, four for input/proof/ |
int
|
output failure, and 130 for interruption. Truncated analysis is honest completed output; |
int
|
no-path/cuts/completeness concern only the explicit selected graph and declared limits. |
Source code in fuzzy1337/path_commands.py
434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 | |