Skip to content

v1.0.6: Compose parsing matches Docker Compose; acceptance from a ZIP; explorer engine stamp - #17

Merged
Innov8zig merged 1 commit into
mainfrom
v106-fixes
Dec 6, 2026
Merged

Innov8zig merged 1 commit into
mainfrom
v106-fixes

Conversation

@Innov8zig

Copy link
Copy Markdown
Owner

Post-submission items fixed before the deadline. No change to the rules engine (rules_v5 sha256 still 4397ba00a496), so every filmed verdict, path, row and exit code is unchanged.

  • The gate reads Compose files the way Docker Compose does. A differential test against docker compose config on 3,000 generated files (anchors, merge keys, overrides, YAML 1.1 words, quoted names, !reset/!override) found 0 files read differently; a planted bug is caught. Fixed on the way: YAML merge keys were ERROR exit 3 (now expanded, written keys win, same allowlist); networks named no/off/on/yes were ERROR (now names, as in Compose); unquoted numeric names were accepted (now rejected, as Compose rejects them); !reset/!override are REVIEW REQUIRED. Acceptance I8, I9; experiments/compose_differential.py.
  • acceptance.py runs from a ZIP or release-archive download (152/0 from a git archive copy).
  • The explorer no longer prints "exported at commit "; it shows the engine's rules sha256.
    Checks: acceptance 152/0 (full clone and archive copy), verify PASS, v5 checks and T3 unchanged, filmed sequence replayed from a clean checkout identical to v1.0.5.
    This PR changes scopemoat/, so v1.0.5's check holds it for review by design.

…; explorer engine stamp

- compose: the gate reads Compose files the way Docker Compose does,
  checked by a differential test against docker compose config on 3,000
  generated files (experiments/compose_differential.py): 0 read
  differently. YAML merge keys (<<: *anchor) are expanded (written keys
  win) instead of ERROR exit 3; merged keys go through the same allowlist;
  a merge key never masks a duplicate written key. yes/no/on/off are names,
  not booleans (YAML 1.2, as Compose); unquoted numeric names (1e3, 0123)
  are rejected as Compose rejects them; !reset / !override are REVIEW.
  Acceptance I8, I9.
- acceptance.py runs from a copy with no .git (ZIP or release archive).
- explorer: scenarios.json no longer records the export-time HEAD (always
  the parent of the commit holding it); the page shows the rules sha256.
- EVIDENCE.md: 152 required checks; differential result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NLwewpybf9hxrNBswpQbxJ
@github-actions

github-actions Bot commented Dec 6, 2026

Copy link
Copy Markdown

ScopeMoat: REVIEW REQUIRED

ScopeMoat holds this change for human review: its effect on modeled PCI DSS scope depends on a fact the model does not record.

This pull request changes the gate itself (scopemoat/compose.py). The check ran the base branch's engine, and holds the change for human review: a pull request cannot approve its own gate.

Files in this pull request: EVIDENCE.md, acceptance.py, experiments/compose_differential.py, explorer/app.js, explorer/build_export.py, explorer/data/scenarios.json, scopemoat/compose.py

---
title: "deploy/compose.yaml: staged change vs HEAD"
---
flowchart LR
  none["Relate: no new path to the CDE"]
Loading

Source: Relate Cypher rows for the candidate (revision 683acfc5e57b156e4124a0e2141dd291); yellow = system that enters scope, red outline = CDE system, red edge = the link the change opened.

Commit gate output (python -m scopemoat gate, engine, store and baseline from the base branch):

ScopeMoat commit gate: staged deploy/compose.yaml vs HEAD, baseline graph/brightline.rl at HEAD
Staged:   no change to deploy/compose.yaml; validating the baseline at HEAD
Engine:   scopemoat/engine.py (committed; rules v5: scopemoat/rules_v5.py sha256 4397ba00a496)
Baseline: graph/brightline.rl at HEAD (sha256 cc306174b2cd; Brightline Outfitters core environment, no overrides (fictional); restricted_hops=in_scope) plus deploy/compose.yaml at HEAD
Network links changed by the staged file:
  (none)
VERDICT:  PASS: no modeled scope expansion (no network links added or removed in the model)
Coverage: judged only on the systems, links, data flows and security services modeled in this graph. A scoping aid, not a QSA assessment.
Relate:   no new path to the CDE (Cypher on the Relate copy of the baseline, before and after the change)

Explore the evidence in the browser (Relate's WebAssembly build): https://innov8zig.github.io/ScopeMoat/explorer/
Reproduce locally: https://github.com/Innov8zig/ScopeMoat#try-it-about-one-minute-from-clone-once-python-313-is-installed

Modeled PCI scope under a configured policy. A scoping aid, not a QSA assessment. Brightline data is fictional.

@Innov8zig
Innov8zig merged commit 3b936ad into main Dec 6, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant