Beautiflow

Don’t break
the diagram.

Give your agent an edit.
Make the runtime check it.

Replay four real CLI runs. Compare the diagram, source diff and receipt at every step. Nothing on this page edits a file.

Inspect the evidence

Recorded evidence, not a live terminal. Choose a step to inspect its captured state.

Make a supported edit

Rename the API identifier and label. Keep the comment, group membership, explicit graphical ports and relationships.

1 · Prompt

Suggested prompt

In a disposable copy of dont-break-the-diagram/source.mmd, rename service api to gateway with label Tenant API. Preserve comments, ports, containment and relationships. Inspect capabilities, plan the architecture-rename action, commit, verify and finish using a fresh receipt. Do not mark visual inspection complete unless it actually occurred.Read full promptClose full prompt
In a disposable copy of dont-break-the-diagram/source.mmd, rename service api to gateway with label Tenant API. Preserve comments, ports, containment and relationships. Inspect capabilities, plan the architecture-rename action, commit, verify and finish using a fresh receipt. Do not mark visual inspection complete unless it actually occurred.

Finished without visual attestation

complete · exit 0

On small screens, scroll each diagram sideways or open its SVG.

2 · Diagram

Original Open SVG
Original hotel request path: staff, cell API, membership check and tenant records.
Selected step Open SVG
Finished without visual attestation: API renamed to Tenant API; relationships retained.
Source changed; relationships retained.Download this source
$ beautiflow agent finish --receipt receipt.json --json

Source diff original → selected step

 architecture-beta
 accTitle: Hotel tenant request path
 accDescr: Illustrative pooled hotel cell. Token validation, membership checks and database policies must be implemented separately.
 %% api in this comment is documentation, not a rename target.
 group cell(cloud)[Pooled cell]
 service staff(lucide:users)[Hotel staff]
-service api(aws:api-gateway)[Cell API] in cell
+service gateway(aws:api-gateway)[Tenant API] in cell
 service membership(aws:fargate)[Membership check] in cell
 service records(aws:aurora)[Tenant records] in cell
-staff:R --> L:api
-api:R --> L:membership
+staff:R --> L:gateway
+gateway:R --> L:membership
 membership:R --> L:records

SHA-256 full source bytes

Original
87fc5c59b2f686444e1b897c7e00453bceb25d333648bbe203aaab61ca28dc5a
Selected step
506220c161062bfcb8cfac0c6e892ecb2c65dfd6752375d440ad93f27274489c

The receipt also binds the action file hash. Open its snapshot below.

Download step evidence
Actual CLI response
{
  "protocolVersion": "1.1",
  "ok": true,
  "operation": "agent-finish",
  "state": "complete",
  "changed": true,
  "diagramChanged": false,
  "receipt": "/private/var/folders/5p/txt5dzv57mj59wjlq4l5s1280000gn/T/beautiflow-safety-cplE8i/safe/receipt.json",
  "evidence": {
    "verification": {
      "audit": {
        "score": 100,
        "coverage": "pele-positioned-geometry",
        "metrics": {
          "detachedEndpoints": 0,
          "portViolations": 0,
          "nodeOverlaps": 0,
          "labelCollisions": 0,
          "edgeNodeIntersections": 0,
          "headerCrossings": 0,
          "excessiveBends": 0,
          "sharedSegments": 0
        },
        "integrity": {
          "coverage": "architecture-elements-and-svg-references",
          "elementsChecked": 8,
          "labelsChecked": 4,
          "issues": [],
          "limitations": [
            "Label presence checks cover plain service labels, not markdown/math or Mermaid-entity fidelity, browser glyph measurements, or provider semantics."
          ]
        },
        "issues": [],
        "limitations": [
          "Geometry comes from a pinned additive Pele renderer extension before arrow trimming and corner rounding.",
          "Edge-label boxes and browser font differences are not audited. Geometry does not validate provider semantics."
        ]
      },
      "semantic": {
        "family": "architecture",
        "score": 100,
        "nodes": [
          {
            "id": "staff",
            "type": "service",
            "icon": "lucide:users",
            "title": "Hotel staff"
          },
          {
            "id": "gateway",
            "type": "service",
            "icon": "aws:api-gateway",
            "title": "Tenant API",
            "in": "cell"
          },
          {
            "id": "membership",
            "type": "service",
            "icon": "aws:fargate",
            "title": "Membership check",
            "in": "cell"
          },
          {
            "id": "records",
            "type": "service",
            "icon": "aws:aurora",
            "title": "Tenant records",
            "in": "cell"
          }
        ],
        "groups": [
          {
            "id": "cell",
            "icon": "cloud",
            "title": "Pooled cell"
          }
        ],
        "edges": [
          {
            "lhsId": "staff",
            "lhsDir": "R",
            "lhsInto": false,
            "lhsGroup": false,
            "rhsId": "gateway",
            "rhsDir": "L",
            "rhsInto": true,
            "rhsGroup": false
          },
          {
            "lhsId": "gateway",
            "lhsDir": "R",
            "lhsInto": false,
            "lhsGroup": false,
            "rhsId": "membership",
            "rhsDir": "L",
            "rhsInto": true,
            "rhsGroup": false
          },
          {
            "lhsId": "membership",
            "lhsDir": "R",
            "lhsInto": false,
            "lhsGroup": false,
            "rhsId": "records",
            "rhsDir": "L",
            "rhsInto": true,
            "rhsGroup": false
          }
        ],
        "alignmentHints": [],
        "metrics": {
          "services": 4,
          "junctions": 0,
          "groups": 1,
          "relationships": 3,
          "components": 1,
          "isolatedServices": 0,
          "maxDepth": 1
        },
        "issues": [],
        "limitations": [
          "Structural observations are informational and do not validate cloud-provider semantics or authorize deletion."
        ]
      },
      "regressions": []
    },
    "visualInspected": false
  },
  "budget": {
    "initialOperations": 0,
    "targetedCorrections": 1,
    "visualInspections": 0
  },
  "warnings": [],
  "nextAction": null
}
Receipt snapshot · complete
{
  "receiptVersion": 1,
  "protocolVersion": "1.1",
  "state": "complete",
  "source": "/private/var/folders/5p/txt5dzv57mj59wjlq4l5s1280000gn/T/beautiflow-safety-cplE8i/safe/source.mmd",
  "sidecar": "/private/var/folders/5p/txt5dzv57mj59wjlq4l5s1280000gn/T/beautiflow-safety-cplE8i/safe/source.beautiflow.json",
  "initialOperation": "transform",
  "pendingOperation": "transform",
  "actions": "/private/var/folders/5p/txt5dzv57mj59wjlq4l5s1280000gn/T/beautiflow-safety-cplE8i/safe/actions.json",
  "hashes": {
    "sourceBefore": "87fc5c59b2f686444e1b897c7e00453bceb25d333648bbe203aaab61ca28dc5a",
    "sidecarBefore": null,
    "actions": "45b57c51122fe691513147818367ddd5e9178d2da24632e6404591eac7eaca28",
    "sourceCurrent": "506220c161062bfcb8cfac0c6e892ecb2c65dfd6752375d440ad93f27274489c",
    "sidecarCurrent": null
  },
  "snapshot": {
    "source": "architecture-beta\naccTitle: Hotel tenant request path\naccDescr: Illustrative pooled hotel cell. Token validation, membership checks and database policies must be implemented separately.\n%% api in this comment is documentation, not a rename target.\ngroup cell(cloud)[Pooled cell]\nservice staff(lucide:users)[Hotel staff]\nservice api(aws:api-gateway)[Cell API] in cell\nservice membership(aws:fargate)[Membership check] in cell\nservice records(aws:aurora)[Tenant records] in cell\nstaff:R --> L:api\napi:R --> L:membership\nmembership:R --> L:records\n",
    "sidecar": null
  },
  "expected": {
    "score": 100,
    "metrics": {
      "detachedEndpoints": 0,
      "portViolations": 0,
      "nodeOverlaps": 0,
      "labelCollisions": 0,
      "edgeNodeIntersections": 0,
      "headerCrossings": 0,
      "excessiveBends": 0,
      "sharedSegments": 0
    },
    "semanticScore": 100,
    "baselineScore": 100
  },
  "evidence": {
    "verification": {
      "audit": {
        "score": 100,
        "coverage": "pele-positioned-geometry",
        "metrics": {
          "detachedEndpoints": 0,
          "portViolations": 0,
          "nodeOverlaps": 0,
          "labelCollisions": 0,
          "edgeNodeIntersections": 0,
          "headerCrossings": 0,
          "excessiveBends": 0,
          "sharedSegments": 0
        },
        "integrity": {
          "coverage": "architecture-elements-and-svg-references",
          "elementsChecked": 8,
          "labelsChecked": 4,
          "issues": [],
          "limitations": [
            "Label presence checks cover plain service labels, not markdown/math or Mermaid-entity fidelity, browser glyph measurements, or provider semantics."
          ]
        },
        "issues": [],
        "limitations": [
          "Geometry comes from a pinned additive Pele renderer extension before arrow trimming and corner rounding.",
          "Edge-label boxes and browser font differences are not audited. Geometry does not validate provider semantics."
        ]
      },
      "semantic": {
        "family": "architecture",
        "score": 100,
        "nodes": [
          {
            "id": "staff",
            "type": "service",
            "icon": "lucide:users",
            "title": "Hotel staff"
          },
          {
            "id": "gateway",
            "type": "service",
            "icon": "aws:api-gateway",
            "title": "Tenant API",
            "in": "cell"
          },
          {
            "id": "membership",
            "type": "service",
            "icon": "aws:fargate",
            "title": "Membership check",
            "in": "cell"
          },
          {
            "id": "records",
            "type": "service",
            "icon": "aws:aurora",
            "title": "Tenant records",
            "in": "cell"
          }
        ],
        "groups": [
          {
            "id": "cell",
            "icon": "cloud",
            "title": "Pooled cell"
          }
        ],
        "edges": [
          {
            "lhsId": "staff",
            "lhsDir": "R",
            "lhsInto": false,
            "lhsGroup": false,
            "rhsId": "gateway",
            "rhsDir": "L",
            "rhsInto": true,
            "rhsGroup": false
          },
          {
            "lhsId": "gateway",
            "lhsDir": "R",
            "lhsInto": false,
            "lhsGroup": false,
            "rhsId": "membership",
            "rhsDir": "L",
            "rhsInto": true,
            "rhsGroup": false
          },
          {
            "lhsId": "membership",
            "lhsDir": "R",
            "lhsInto": false,
            "lhsGroup": false,
            "rhsId": "records",
            "rhsDir": "L",
            "rhsInto": true,
            "rhsGroup": false
          }
        ],
        "alignmentHints": [],
        "metrics": {
          "services": 4,
          "junctions": 0,
          "groups": 1,
          "relationships": 3,
          "components": 1,
          "isolatedServices": 0,
          "maxDepth": 1
        },
        "issues": [],
        "limitations": [
          "Structural observations are informational and do not validate cloud-provider semantics or authorize deletion."
        ]
      },
      "regressions": []
    },
    "visualInspected": false
  },
  "budget": {
    "initialOperations": 0,
    "targetedCorrections": 1,
    "visualInspections": 0
  }
}
Reproduce this case locally

Download these three files into a new directory with Beautiflow 1.0.1 on your PATH. Read the script before running it. It edits source.mmd and writes a local receipt. For refused operations, the script expects exit code 2.

sh reproduce.sh

Refuse an injected statement

A label tries to close its bracket and insert a new service. Validation refuses the action before writing a receipt or source.

1 · Prompt

Suggested prompt

In an isolated temporary copy of the safety fixture, test rejection of the unsafe architecture-rename label encoded as "unsafe]\nservice surprise(server)[Oops". Plan the action; do not bypass validation or patch Mermaid by hand. Confirm refusal and unchanged source bytes. This is a negative test, not a request to introduce the extra service.Read full promptClose full prompt
In an isolated temporary copy of the safety fixture, test rejection of the unsafe architecture-rename label encoded as "unsafe]\nservice surprise(server)[Oops". Plan the action; do not bypass validation or patch Mermaid by hand. Confirm refusal and unchanged source bytes. This is a negative test, not a request to introduce the extra service.

Plan refused

blocked · exit 2

On small screens, scroll each diagram sideways or open its SVG.

2 · Diagram

Original Open SVG
Original hotel request path: staff, cell API, membership check and tenant records.
Selected step Open SVG
Plan refused: original diagram unchanged.
Source matches original bytes.Download this source

INVALID_INPUT Invalid architecture-rename.label

$ beautiflow agent plan source.mmd --operation transform --actions actions.json --receipt receipt.json --json

Source diff original → selected step

No source changes from the original.

SHA-256 full source bytes

Original
87fc5c59b2f686444e1b897c7e00453bceb25d333648bbe203aaab61ca28dc5a
Selected step
87fc5c59b2f686444e1b897c7e00453bceb25d333648bbe203aaab61ca28dc5a

Equal hashes accompany an exact byte comparison in the recorder.

Download step evidence
Actual CLI response
{
  "protocolVersion": "1.1",
  "ok": false,
  "operation": "agent-plan",
  "state": "blocked",
  "changed": false,
  "error": {
    "code": "INVALID_INPUT",
    "message": "Invalid architecture-rename.label",
    "retryable": false
  },
  "warnings": [],
  "nextAction": null
}
Receipt snapshot · no receipt written
null
Reproduce this case locally

Download these three files into a new directory with Beautiflow 1.0.1 on your PATH. Read the script before running it. It edits source.mmd and writes a local receipt. For refused operations, the script expects exit code 2.

sh reproduce.sh

Keep the newer source

After planning, a simulated collaborator adds a source comment. Commit refuses the outdated plan and preserves that edit.

1 · Prompt

Suggested prompt

In an isolated temporary copy of the safety fixture, plan the rename, then deliberately append a collaborator comment before commit. Attempt commit once and confirm the stale plan is refused without overwriting the newer source. Do not silently regenerate or retry the plan. Compare current bytes with the collaborator-edited snapshot.Read full promptClose full prompt
In an isolated temporary copy of the safety fixture, plan the rename, then deliberately append a collaborator comment before commit. Attempt commit once and confirm the stale plan is refused without overwriting the newer source. Do not silently regenerate or retry the plan. Compare current bytes with the collaborator-edited snapshot.

Commit refused

stale · exit 2

On small screens, scroll each diagram sideways or open its SVG.

2 · Diagram

Original Open SVG
Original hotel request path: staff, cell API, membership check and tenant records.
Selected step Open SVG
Commit refused: diagram unchanged; collaborator comment retained in source.
Collaborator’s source retained.Download this source

STALE_RECEIPT Agent receipt is stale because the source, sidecar, or action file changed after validation

$ beautiflow agent commit --receipt receipt.json --json

Source diff original → selected step

 architecture-beta
 accTitle: Hotel tenant request path
 accDescr: Illustrative pooled hotel cell. Token validation, membership checks and database policies must be implemented separately.
 %% api in this comment is documentation, not a rename target.
 group cell(cloud)[Pooled cell]
 service staff(lucide:users)[Hotel staff]
 service api(aws:api-gateway)[Cell API] in cell
 service membership(aws:fargate)[Membership check] in cell
 service records(aws:aurora)[Tenant records] in cell
 staff:R --> L:api
 api:R --> L:membership
 membership:R --> L:records
+%% Collaborator: review tenant policy before release.

SHA-256 full source bytes

Original
87fc5c59b2f686444e1b897c7e00453bceb25d333648bbe203aaab61ca28dc5a
Selected step
271a9ba7f8faae27f1344b0180c230d3140ffec64b11e114cd06ab7da848f5fb

The current hash differs from the planned hash. Refusal is the expected result, not a failed demonstration.

Download step evidence
Actual CLI response
{
  "protocolVersion": "1.1",
  "ok": false,
  "operation": "agent-commit",
  "state": "blocked",
  "changed": false,
  "error": {
    "code": "STALE_RECEIPT",
    "message": "Agent receipt is stale because the source, sidecar, or action file changed after validation",
    "retryable": false
  },
  "warnings": [],
  "nextAction": null
}
Receipt snapshot · stale
{
  "receiptVersion": 1,
  "protocolVersion": "1.1",
  "state": "stale",
  "source": "/private/var/folders/5p/txt5dzv57mj59wjlq4l5s1280000gn/T/beautiflow-safety-cplE8i/stale/source.mmd",
  "sidecar": "/private/var/folders/5p/txt5dzv57mj59wjlq4l5s1280000gn/T/beautiflow-safety-cplE8i/stale/source.beautiflow.json",
  "initialOperation": "transform",
  "pendingOperation": "transform",
  "actions": "/private/var/folders/5p/txt5dzv57mj59wjlq4l5s1280000gn/T/beautiflow-safety-cplE8i/stale/actions.json",
  "hashes": {
    "sourceBefore": "87fc5c59b2f686444e1b897c7e00453bceb25d333648bbe203aaab61ca28dc5a",
    "sidecarBefore": null,
    "actions": "45b57c51122fe691513147818367ddd5e9178d2da24632e6404591eac7eaca28",
    "sourceCurrent": "87fc5c59b2f686444e1b897c7e00453bceb25d333648bbe203aaab61ca28dc5a",
    "sidecarCurrent": null
  },
  "snapshot": {
    "source": "architecture-beta\naccTitle: Hotel tenant request path\naccDescr: Illustrative pooled hotel cell. Token validation, membership checks and database policies must be implemented separately.\n%% api in this comment is documentation, not a rename target.\ngroup cell(cloud)[Pooled cell]\nservice staff(lucide:users)[Hotel staff]\nservice api(aws:api-gateway)[Cell API] in cell\nservice membership(aws:fargate)[Membership check] in cell\nservice records(aws:aurora)[Tenant records] in cell\nstaff:R --> L:api\napi:R --> L:membership\nmembership:R --> L:records\n",
    "sidecar": null
  },
  "expected": {
    "score": 100,
    "metrics": {
      "detachedEndpoints": 0,
      "portViolations": 0,
      "nodeOverlaps": 0,
      "labelCollisions": 0,
      "edgeNodeIntersections": 0,
      "headerCrossings": 0,
      "excessiveBends": 0,
      "sharedSegments": 0
    },
    "semanticScore": 100,
    "baselineScore": 100
  },
  "evidence": {
    "source": "architecture-beta\naccTitle: Hotel tenant request path\naccDescr: Illustrative pooled hotel cell. Token validation, membership checks and database policies must be implemented separately.\n%% api in this comment is documentation, not a rename target.\ngroup cell(cloud)[Pooled cell]\nservice staff(lucide:users)[Hotel staff]\nservice gateway(aws:api-gateway)[Tenant API] in cell\nservice membership(aws:fargate)[Membership check] in cell\nservice records(aws:aurora)[Tenant records] in cell\nstaff:R --> L:gateway\ngateway:R --> L:membership\nmembership:R --> L:records\n",
    "actionsApplied": 1,
    "before": {
      "score": 100,
      "coverage": "pele-positioned-geometry",
      "metrics": {
        "detachedEndpoints": 0,
        "portViolations": 0,
        "nodeOverlaps": 0,
        "labelCollisions": 0,
        "edgeNodeIntersections": 0,
        "headerCrossings": 0,
        "excessiveBends": 0,
        "sharedSegments": 0
      },
      "integrity": {
        "coverage": "architecture-elements-and-svg-references",
        "elementsChecked": 8,
        "labelsChecked": 4,
        "issues": [],
        "limitations": [
          "Label presence checks cover plain service labels, not markdown/math or Mermaid-entity fidelity, browser glyph measurements, or provider semantics."
        ]
      },
      "issues": [],
      "limitations": [
        "Geometry comes from a pinned additive Pele renderer extension before arrow trimming and corner rounding.",
        "Edge-label boxes and browser font differences are not audited. Geometry does not validate provider semantics."
      ]
    },
    "audit": {
      "score": 100,
      "coverage": "pele-positioned-geometry",
      "metrics": {
        "detachedEndpoints": 0,
        "portViolations": 0,
        "nodeOverlaps": 0,
        "labelCollisions": 0,
        "edgeNodeIntersections": 0,
        "headerCrossings": 0,
        "excessiveBends": 0,
        "sharedSegments": 0
      },
      "integrity": {
        "coverage": "architecture-elements-and-svg-references",
        "elementsChecked": 8,
        "labelsChecked": 4,
        "issues": [],
        "limitations": [
          "Label presence checks cover plain service labels, not markdown/math or Mermaid-entity fidelity, browser glyph measurements, or provider semantics."
        ]
      },
      "issues": [],
      "limitations": [
        "Geometry comes from a pinned additive Pele renderer extension before arrow trimming and corner rounding.",
        "Edge-label boxes and browser font differences are not audited. Geometry does not validate provider semantics."
      ]
    },
    "semantic": {
      "family": "architecture",
      "score": 100,
      "nodes": [
        {
          "id": "staff",
          "type": "service",
          "icon": "lucide:users",
          "title": "Hotel staff"
        },
        {
          "id": "gateway",
          "type": "service",
          "icon": "aws:api-gateway",
          "title": "Tenant API",
          "in": "cell"
        },
        {
          "id": "membership",
          "type": "service",
          "icon": "aws:fargate",
          "title": "Membership check",
          "in": "cell"
        },
        {
          "id": "records",
          "type": "service",
          "icon": "aws:aurora",
          "title": "Tenant records",
          "in": "cell"
        }
      ],
      "groups": [
        {
          "id": "cell",
          "icon": "cloud",
          "title": "Pooled cell"
        }
      ],
      "edges": [
        {
          "lhsId": "staff",
          "lhsDir": "R",
          "lhsInto": false,
          "lhsGroup": false,
          "rhsId": "gateway",
          "rhsDir": "L",
          "rhsInto": true,
          "rhsGroup": false
        },
        {
          "lhsId": "gateway",
          "lhsDir": "R",
          "lhsInto": false,
          "lhsGroup": false,
          "rhsId": "membership",
          "rhsDir": "L",
          "rhsInto": true,
          "rhsGroup": false
        },
        {
          "lhsId": "membership",
          "lhsDir": "R",
          "lhsInto": false,
          "lhsGroup": false,
          "rhsId": "records",
          "rhsDir": "L",
          "rhsInto": true,
          "rhsGroup": false
        }
      ],
      "alignmentHints": [],
      "metrics": {
        "services": 4,
        "junctions": 0,
        "groups": 1,
        "relationships": 3,
        "components": 1,
        "isolatedServices": 0,
        "maxDepth": 1
      },
      "issues": [],
      "limitations": [
        "Structural observations are informational and do not validate cloud-provider semantics or authorize deletion."
      ]
    }
  },
  "budget": {
    "initialOperations": 1,
    "targetedCorrections": 1,
    "visualInspections": 1
  }
}
Reproduce this case locally

Download these three files into a new directory with Beautiflow 1.0.1 on your PATH. Read the script before running it. It edits source.mmd and writes a local receipt. For refused operations, the script expects exit code 2.

sh reproduce.sh

Restore the original bytes

Apply and verify the rename, then explicitly restore the original snapshot. Compare the full SHA-256, not just the picture.

1 · Prompt

Suggested prompt

In a disposable copy of the safety fixture, plan, commit and verify the supported rename. Inspect the current files before requesting explicit snapshot rollback, then confirm restoration with both byte comparison and hashes. Do not reuse downloaded receipts or roll back a real project: snapshot rollback is not a merge and can overwrite newer work.Read full promptClose full prompt
In a disposable copy of the safety fixture, plan, commit and verify the supported rename. Inspect the current files before requesting explicit snapshot rollback, then confirm restoration with both byte comparison and hashes. Do not reuse downloaded receipts or roll back a real project: snapshot rollback is not a merge and can overwrite newer work.

Snapshot restored

rolled-back · exit 0

On small screens, scroll each diagram sideways or open its SVG.

2 · Diagram

Original Open SVG
Original hotel request path: staff, cell API, membership check and tenant records.
Selected step Open SVG
Snapshot restored: original diagram unchanged.
Source matches original bytes.Download this source
$ beautiflow agent rollback --receipt receipt.json --json

Source diff original → selected step

No source changes from the original.

SHA-256 full source bytes

Original
87fc5c59b2f686444e1b897c7e00453bceb25d333648bbe203aaab61ca28dc5a
Selected step
87fc5c59b2f686444e1b897c7e00453bceb25d333648bbe203aaab61ca28dc5a

Equal hashes accompany an exact byte comparison in the recorder.

Download step evidence
Actual CLI response
{
  "protocolVersion": "1.1",
  "ok": true,
  "operation": "agent-rollback",
  "state": "rolled-back",
  "changed": true,
  "diagramChanged": true,
  "receipt": "/private/var/folders/5p/txt5dzv57mj59wjlq4l5s1280000gn/T/beautiflow-safety-cplE8i/rollback/receipt.json",
  "files": {
    "source": "/private/var/folders/5p/txt5dzv57mj59wjlq4l5s1280000gn/T/beautiflow-safety-cplE8i/rollback/source.mmd",
    "sidecar": "/private/var/folders/5p/txt5dzv57mj59wjlq4l5s1280000gn/T/beautiflow-safety-cplE8i/rollback/source.beautiflow.json",
    "receipt": "/private/var/folders/5p/txt5dzv57mj59wjlq4l5s1280000gn/T/beautiflow-safety-cplE8i/rollback/receipt.json"
  },
  "warnings": [],
  "nextAction": null
}
Receipt snapshot · rolled-back
{
  "receiptVersion": 1,
  "protocolVersion": "1.1",
  "state": "rolled-back",
  "source": "/private/var/folders/5p/txt5dzv57mj59wjlq4l5s1280000gn/T/beautiflow-safety-cplE8i/rollback/source.mmd",
  "sidecar": "/private/var/folders/5p/txt5dzv57mj59wjlq4l5s1280000gn/T/beautiflow-safety-cplE8i/rollback/source.beautiflow.json",
  "initialOperation": "transform",
  "pendingOperation": "transform",
  "actions": "/private/var/folders/5p/txt5dzv57mj59wjlq4l5s1280000gn/T/beautiflow-safety-cplE8i/rollback/actions.json",
  "hashes": {
    "sourceBefore": "87fc5c59b2f686444e1b897c7e00453bceb25d333648bbe203aaab61ca28dc5a",
    "sidecarBefore": null,
    "actions": "45b57c51122fe691513147818367ddd5e9178d2da24632e6404591eac7eaca28",
    "sourceCurrent": "87fc5c59b2f686444e1b897c7e00453bceb25d333648bbe203aaab61ca28dc5a",
    "sidecarCurrent": null
  },
  "snapshot": {
    "source": "architecture-beta\naccTitle: Hotel tenant request path\naccDescr: Illustrative pooled hotel cell. Token validation, membership checks and database policies must be implemented separately.\n%% api in this comment is documentation, not a rename target.\ngroup cell(cloud)[Pooled cell]\nservice staff(lucide:users)[Hotel staff]\nservice api(aws:api-gateway)[Cell API] in cell\nservice membership(aws:fargate)[Membership check] in cell\nservice records(aws:aurora)[Tenant records] in cell\nstaff:R --> L:api\napi:R --> L:membership\nmembership:R --> L:records\n",
    "sidecar": null
  },
  "expected": {
    "score": 100,
    "metrics": {
      "detachedEndpoints": 0,
      "portViolations": 0,
      "nodeOverlaps": 0,
      "labelCollisions": 0,
      "edgeNodeIntersections": 0,
      "headerCrossings": 0,
      "excessiveBends": 0,
      "sharedSegments": 0
    },
    "semanticScore": 100,
    "baselineScore": 100
  },
  "evidence": {
    "audit": {
      "score": 100,
      "coverage": "pele-positioned-geometry",
      "metrics": {
        "detachedEndpoints": 0,
        "portViolations": 0,
        "nodeOverlaps": 0,
        "labelCollisions": 0,
        "edgeNodeIntersections": 0,
        "headerCrossings": 0,
        "excessiveBends": 0,
        "sharedSegments": 0
      },
      "integrity": {
        "coverage": "architecture-elements-and-svg-references",
        "elementsChecked": 8,
        "labelsChecked": 4,
        "issues": [],
        "limitations": [
          "Label presence checks cover plain service labels, not markdown/math or Mermaid-entity fidelity, browser glyph measurements, or provider semantics."
        ]
      },
      "issues": [],
      "limitations": [
        "Geometry comes from a pinned additive Pele renderer extension before arrow trimming and corner rounding.",
        "Edge-label boxes and browser font differences are not audited. Geometry does not validate provider semantics."
      ]
    },
    "semantic": {
      "family": "architecture",
      "score": 100,
      "nodes": [
        {
          "id": "staff",
          "type": "service",
          "icon": "lucide:users",
          "title": "Hotel staff"
        },
        {
          "id": "gateway",
          "type": "service",
          "icon": "aws:api-gateway",
          "title": "Tenant API",
          "in": "cell"
        },
        {
          "id": "membership",
          "type": "service",
          "icon": "aws:fargate",
          "title": "Membership check",
          "in": "cell"
        },
        {
          "id": "records",
          "type": "service",
          "icon": "aws:aurora",
          "title": "Tenant records",
          "in": "cell"
        }
      ],
      "groups": [
        {
          "id": "cell",
          "icon": "cloud",
          "title": "Pooled cell"
        }
      ],
      "edges": [
        {
          "lhsId": "staff",
          "lhsDir": "R",
          "lhsInto": false,
          "lhsGroup": false,
          "rhsId": "gateway",
          "rhsDir": "L",
          "rhsInto": true,
          "rhsGroup": false
        },
        {
          "lhsId": "gateway",
          "lhsDir": "R",
          "lhsInto": false,
          "lhsGroup": false,
          "rhsId": "membership",
          "rhsDir": "L",
          "rhsInto": true,
          "rhsGroup": false
        },
        {
          "lhsId": "membership",
          "lhsDir": "R",
          "lhsInto": false,
          "lhsGroup": false,
          "rhsId": "records",
          "rhsDir": "L",
          "rhsInto": true,
          "rhsGroup": false
        }
      ],
      "alignmentHints": [],
      "metrics": {
        "services": 4,
        "junctions": 0,
        "groups": 1,
        "relationships": 3,
        "components": 1,
        "isolatedServices": 0,
        "maxDepth": 1
      },
      "issues": [],
      "limitations": [
        "Structural observations are informational and do not validate cloud-provider semantics or authorize deletion."
      ]
    },
    "regressions": []
  },
  "budget": {
    "initialOperations": 0,
    "targetedCorrections": 1,
    "visualInspections": 1
  }
}
Reproduce this case locally

Download these three files into a new directory with Beautiflow 1.0.1 on your PATH. Read the script before running it. It edits source.mmd and writes a local receipt. For refused operations, the script expects exit code 2.

sh reproduce.sh

To compare the restored file directly: cmp original.mmd source.mmd. Exit 0 means the bytes match.

What the evidence proves.

These runs demonstrate source-preserving architecture transforms, input-hash checks, mechanical verification and explicit rollback. The hotel path is an illustrative, deliberately small fixture, not a projection of the complete AWS gallery.

No visual attestation. The finished receipt records visualInspected: false. A mechanical check does not establish visual quality, working tenant isolation, IAM policy or deployed AWS correctness. Architecture does not support automatic polish.

Rollback is explicit. It restores the recorded snapshot; it is not a merge or a guarantee against overwriting later work. Inspect current files before requesting rollback. Receipts are local control files, not signed security attestations.

Raw evidence. Downloaded receipt snapshots contain absolute paths from a temporary recording workspace. Do not commit those receipts into your own project or try to resume them. Reproduce with the inputs and script to create fresh local receipts.