dsh-archify-projects 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +204 -2
- package/cordis.patch.yml +99 -0
- package/dist/client.js +2261 -0
- package/dist/client.js.map +1 -0
- package/docs/CONTAINER.md +197 -0
- package/docs/DESIGN.md +905 -0
- package/docs/HANDOVER.md +391 -0
- package/docs/PUBLISH.md +107 -0
- package/icon.svg +12 -0
- package/lib/host/archify-skill.js +116 -0
- package/lib/host/archify-skill.js.map +1 -0
- package/lib/host/config.js +95 -0
- package/lib/host/config.js.map +1 -0
- package/lib/host/context.js +28 -0
- package/lib/host/context.js.map +1 -0
- package/lib/host/git.js +185 -0
- package/lib/host/git.js.map +1 -0
- package/lib/host/http.js +184 -0
- package/lib/host/http.js.map +1 -0
- package/lib/host/index.js +90 -0
- package/lib/host/index.js.map +1 -0
- package/lib/host/policy.js +124 -0
- package/lib/host/policy.js.map +1 -0
- package/lib/host/routes.js +667 -0
- package/lib/host/routes.js.map +1 -0
- package/lib/host/runner.js +913 -0
- package/lib/host/runner.js.map +1 -0
- package/lib/host/store.js +370 -0
- package/lib/host/store.js.map +1 -0
- package/lib/host/workspace.js +65 -0
- package/lib/host/workspace.js.map +1 -0
- package/lib/shared/format.js +138 -0
- package/lib/shared/format.js.map +1 -0
- package/lib/shared/prompt.js +257 -0
- package/lib/shared/prompt.js.map +1 -0
- package/lib/shared/protocol.js +31 -0
- package/lib/shared/protocol.js.map +1 -0
- package/lib/shared/types.js +173 -0
- package/lib/shared/types.js.map +1 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +98 -4
- package/skills/archify/LICENSE +22 -0
- package/skills/archify/SKILL.md +109 -0
- package/skills/archify/THIRD_PARTY_NOTICES.md +69 -0
- package/skills/archify/assets/JetBrainsMono-OFL.txt +93 -0
- package/skills/archify/assets/template.html +13709 -0
- package/skills/archify/bin/archify.mjs +6936 -0
- package/skills/archify/bin/delivery-update.mjs +91 -0
- package/skills/archify/bin/finalize.mjs +895 -0
- package/skills/archify/bin/open-artifact.mjs +146 -0
- package/skills/archify/bin/preview.mjs +969 -0
- package/skills/archify/bin/recover-output.mjs +41 -0
- package/skills/archify/bin/visual-check.mjs +2667 -0
- package/skills/archify/brand-marks/README.md +31 -0
- package/skills/archify/brand-marks/catalog.json +131 -0
- package/skills/archify/delta/architecture-delta.mjs +1313 -0
- package/skills/archify/examples/agent-run.lifecycle.json +55 -0
- package/skills/archify/examples/agent-tool-call.workflow.json +74 -0
- package/skills/archify/examples/async-job-roundtrip.sequence.json +56 -0
- package/skills/archify/examples/brand-aware-delivery.architecture.json +34 -0
- package/skills/archify/examples/cache-miss-request.sequence.json +77 -0
- package/skills/archify/examples/checkout-platform.base.architecture.json +32 -0
- package/skills/archify/examples/checkout-platform.head.architecture.json +32 -0
- package/skills/archify/examples/dataflow-product-analytics.html +13820 -0
- package/skills/archify/examples/deployment-release.lifecycle.json +48 -0
- package/skills/archify/examples/event-stream.dataflow.json +52 -0
- package/skills/archify/examples/holiday-planning.workflow.json +143 -0
- package/skills/archify/examples/incident-response.workflow.json +59 -0
- package/skills/archify/examples/lifecycle-agent-run.html +13765 -0
- package/skills/archify/examples/locales/de.json +425 -0
- package/skills/archify/examples/locales/es.json +440 -0
- package/skills/archify/examples/locales/fr.json +425 -0
- package/skills/archify/examples/locales/fr.partial.json +22 -0
- package/skills/archify/examples/locales/it.json +425 -0
- package/skills/archify/examples/locales/ja.json +425 -0
- package/skills/archify/examples/locales/ko.json +440 -0
- package/skills/archify/examples/locales/pt.json +425 -0
- package/skills/archify/examples/locales/ru.json +425 -0
- package/skills/archify/examples/product-analytics.dataflow.json +71 -0
- package/skills/archify/examples/production-deployment.architecture.json +51 -0
- package/skills/archify/examples/release-delivery.workflow.json +57 -0
- package/skills/archify/examples/sequence-cache-miss-request.html +13835 -0
- package/skills/archify/examples/web-app-rendered.html +13808 -0
- package/skills/archify/examples/web-app.architecture.json +41 -0
- package/skills/archify/examples/workflow-agent-tool-call-rendered.html +13826 -0
- package/skills/archify/migrations/workflow-v2.mjs +280 -0
- package/skills/archify/package.json +17 -0
- package/skills/archify/recipes/scenarios.mjs +430 -0
- package/skills/archify/references/architecture-layout-repair.md +18 -0
- package/skills/archify/references/authoring-contract.md +419 -0
- package/skills/archify/references/authoring-defaults.md +41 -0
- package/skills/archify/references/brand-marks.md +82 -0
- package/skills/archify/references/delivery-contract.md +588 -0
- package/skills/archify/references/repository-authoring.md +105 -0
- package/skills/archify/references/update-awareness.md +12 -0
- package/skills/archify/references/viewer-runtime.md +35 -0
- package/skills/archify/renderers/architecture/grid.mjs +62 -0
- package/skills/archify/renderers/architecture/labels.mjs +215 -0
- package/skills/archify/renderers/architecture/render-architecture.mjs +1001 -0
- package/skills/archify/renderers/architecture/routing.mjs +1157 -0
- package/skills/archify/renderers/dataflow/README.md +105 -0
- package/skills/archify/renderers/dataflow/render-dataflow.mjs +544 -0
- package/skills/archify/renderers/lifecycle/README.md +171 -0
- package/skills/archify/renderers/lifecycle/grid-routing.mjs +429 -0
- package/skills/archify/renderers/lifecycle/render-lifecycle.mjs +938 -0
- package/skills/archify/renderers/sequence/README.md +129 -0
- package/skills/archify/renderers/sequence/render-sequence.mjs +526 -0
- package/skills/archify/renderers/shared/atomic-output.mjs +1982 -0
- package/skills/archify/renderers/shared/brand-marks.mjs +670 -0
- package/skills/archify/renderers/shared/cli.mjs +451 -0
- package/skills/archify/renderers/shared/desktop-readability.mjs +132 -0
- package/skills/archify/renderers/shared/diagnostics.mjs +173 -0
- package/skills/archify/renderers/shared/engineering-profiles.mjs +157 -0
- package/skills/archify/renderers/shared/generated-brand-marks.mjs +2003 -0
- package/skills/archify/renderers/shared/generated-validators.mjs +134 -0
- package/skills/archify/renderers/shared/geometry.mjs +1941 -0
- package/skills/archify/renderers/shared/i18n.mjs +603 -0
- package/skills/archify/renderers/shared/layout-report.mjs +42 -0
- package/skills/archify/renderers/shared/legend.mjs +217 -0
- package/skills/archify/renderers/shared/output-path.mjs +440 -0
- package/skills/archify/renderers/shared/path-semantics.mjs +1017 -0
- package/skills/archify/renderers/shared/portable-path.mjs +408 -0
- package/skills/archify/renderers/shared/repository-evidence.mjs +352 -0
- package/skills/archify/renderers/shared/repository-location.mjs +59 -0
- package/skills/archify/renderers/shared/route-quality.mjs +614 -0
- package/skills/archify/renderers/shared/sidecar-path.mjs +38 -0
- package/skills/archify/renderers/shared/spatial-grid.mjs +66 -0
- package/skills/archify/renderers/shared/text-fit.mjs +105 -0
- package/skills/archify/renderers/shared/utils.mjs +254 -0
- package/skills/archify/renderers/shared/validator.mjs +86 -0
- package/skills/archify/renderers/workflow/README.md +301 -0
- package/skills/archify/renderers/workflow/render-workflow.mjs +37 -0
- package/skills/archify/renderers/workflow/workflow-compiler.mjs +4913 -0
- package/skills/archify/renderers/workflow/workflow-migration-geometry.mjs +144 -0
- package/skills/archify/schemas/README.md +256 -0
- package/skills/archify/schemas/architecture.schema.json +152 -0
- package/skills/archify/schemas/common.schema.json +181 -0
- package/skills/archify/schemas/dataflow.schema.json +254 -0
- package/skills/archify/schemas/lifecycle.schema.json +280 -0
- package/skills/archify/schemas/sequence.schema.json +234 -0
- package/skills/archify/schemas/workflow.schema.json +439 -0
- package/skills/archify/scripts/check-render-output.mjs +1388 -0
- package/skills/archify/scripts/check-update.mjs +1710 -0
- package/skills/archify/scripts/delivery-update-child.mjs +23 -0
- package/skills/archify/scripts/render-examples.mjs +26 -0
- package/skills/archify/scripts/update-contract.mjs +182 -0
- package/skills/archify/skill-release.json +10 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 2,
|
|
3
|
+
"diagram_type": "lifecycle",
|
|
4
|
+
"meta": {
|
|
5
|
+
"title": "Deployment Release Lifecycle",
|
|
6
|
+
"output": "examples/deployment-release.html",
|
|
7
|
+
"animation": "trace",
|
|
8
|
+
"visual_preset": "signal-flow",
|
|
9
|
+
"quality_profile": "showcase"
|
|
10
|
+
},
|
|
11
|
+
"lanes": [
|
|
12
|
+
{ "id": "main", "label": "Release phases" },
|
|
13
|
+
{ "id": "waiting", "label": "Approval + health wait" },
|
|
14
|
+
{ "id": "recovery", "label": "Rollback controller" },
|
|
15
|
+
{ "id": "terminal", "label": "Terminal exits" }
|
|
16
|
+
],
|
|
17
|
+
"states": [
|
|
18
|
+
{ "id": "queued", "type": "start", "label": "Queued", "sublabel": "change accepted", "lane": "main", "col": 0, "step": "01", "tag": "pending" },
|
|
19
|
+
{ "id": "building", "type": "active", "label": "Building", "sublabel": "immutable image", "lane": "main", "col": 1, "step": "02", "tag": "running" },
|
|
20
|
+
{ "id": "verifying", "type": "decision", "label": "Verifying", "sublabel": "tests + policy", "lane": "main", "col": 2, "step": "03", "tag": "gate" },
|
|
21
|
+
{ "id": "ready", "type": "waiting", "label": "Ready", "sublabel": "promotion pending", "lane": "main", "col": 3, "step": "04", "tag": "approved" },
|
|
22
|
+
{ "id": "live", "type": "success", "label": "Live", "sublabel": "production healthy", "lane": "main", "col": 4, "step": "05", "tag": "success" },
|
|
23
|
+
{ "id": "approval", "type": "waiting", "label": "Needs Approval", "sublabel": "release owner", "lane": "waiting", "col": 2, "tag": "pause" },
|
|
24
|
+
{ "id": "rollback", "type": "active", "label": "Rolling Back", "sublabel": "last good image", "lane": "recovery", "col": 3, "tag": "automatic" },
|
|
25
|
+
{ "id": "paused", "type": "waiting", "label": "Health Paused", "sublabel": "SLO regression", "lane": "waiting", "col": 4, "tag": "observe" },
|
|
26
|
+
{ "id": "cancelled", "type": "failure", "label": "Cancelled", "sublabel": "approval denied", "lane": "terminal", "col": 2, "tag": "terminal" },
|
|
27
|
+
{ "id": "failed", "type": "failure", "label": "Failed", "sublabel": "rollback failed", "lane": "terminal", "col": 3, "tag": "terminal" },
|
|
28
|
+
{ "id": "rolled_back", "type": "success", "label": "Rolled Back", "sublabel": "service restored", "lane": "terminal", "col": 4, "tag": "terminal" }
|
|
29
|
+
],
|
|
30
|
+
"transitions": [
|
|
31
|
+
{ "from": "queued", "to": "building" },
|
|
32
|
+
{ "from": "building", "to": "verifying" },
|
|
33
|
+
{ "from": "verifying", "to": "ready" },
|
|
34
|
+
{ "from": "ready", "to": "live" },
|
|
35
|
+
{ "from": "verifying", "to": "approval", "variant": "security", "label": "needs sign-off" },
|
|
36
|
+
{ "from": "approval", "to": "ready", "label": "approved" },
|
|
37
|
+
{ "from": "approval", "to": "cancelled", "variant": "security" },
|
|
38
|
+
{ "from": "ready", "to": "rollback", "variant": "security" },
|
|
39
|
+
{ "from": "rollback", "to": "failed", "variant": "security" },
|
|
40
|
+
{ "from": "live", "to": "paused", "variant": "dashed" },
|
|
41
|
+
{ "from": "paused", "to": "rolled_back", "variant": "emphasis" }
|
|
42
|
+
],
|
|
43
|
+
"cards": [
|
|
44
|
+
{ "dot": "cyan", "title": "Promotion Rail", "items": ["The release object moves through five ordered phases", "Verification and approval remain distinct states", "Live means production health is currently proven"] },
|
|
45
|
+
{ "dot": "amber", "title": "Wait States", "items": ["Human approval can pause without consuming a worker", "A health regression pauses further rollout", "Every wait exposes the event required to continue"] },
|
|
46
|
+
{ "dot": "rose", "title": "Explicit Endings", "items": ["Denied approval ends as Cancelled", "Rollback controller failure ends as Failed", "Successful rollback is a terminal restored outcome"] }
|
|
47
|
+
]
|
|
48
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 1,
|
|
3
|
+
"diagram_type": "dataflow",
|
|
4
|
+
"meta": {
|
|
5
|
+
"title": "Order Event-stream Topology",
|
|
6
|
+
"output": "examples/event-stream.html",
|
|
7
|
+
"viewBox": [1080, 780],
|
|
8
|
+
"animation": "trace",
|
|
9
|
+
"visual_preset": "signal-flow",
|
|
10
|
+
"quality_profile": "showcase"
|
|
11
|
+
},
|
|
12
|
+
"stages": [
|
|
13
|
+
{ "label": "Producers" },
|
|
14
|
+
{ "label": "Transit" },
|
|
15
|
+
{ "label": "Processors" },
|
|
16
|
+
{ "label": "State + recovery" },
|
|
17
|
+
{ "label": "Consumers" }
|
|
18
|
+
],
|
|
19
|
+
"nodes": [
|
|
20
|
+
{ "id": "checkout", "type": "frontend", "label": "Checkout API", "sublabel": "order producer", "stage": 0, "row": 0, "tag": "team commerce" },
|
|
21
|
+
{ "id": "billing", "type": "backend", "label": "Billing API", "sublabel": "payment producer", "stage": 0, "row": 2, "tag": "team money" },
|
|
22
|
+
{ "id": "orders", "type": "messagebus", "label": "orders.v1", "sublabel": "12 partitions", "stage": 1, "row": 0, "tag": "key: order_id" },
|
|
23
|
+
{ "id": "payments", "type": "messagebus", "label": "payments.v2", "sublabel": "8 partitions", "stage": 1, "row": 2, "tag": "key: order_id" },
|
|
24
|
+
{ "id": "validate", "type": "backend", "label": "Order Validate", "sublabel": "group fulfillment", "stage": 2, "row": 0, "tag": "ordered" },
|
|
25
|
+
{ "id": "enrich", "type": "backend", "label": "Payment Enrich", "sublabel": "group analytics", "stage": 2, "row": 2, "tag": "at-least-once" },
|
|
26
|
+
{ "id": "state", "type": "database", "label": "Order State", "sublabel": "materialized view", "stage": 3, "row": 1, "tag": "idempotent" },
|
|
27
|
+
{ "id": "dlq", "type": "messagebus", "label": "events.dlq", "sublabel": "poison events", "stage": 3, "row": 4, "tag": "7-day retention" },
|
|
28
|
+
{ "id": "fulfillment", "type": "backend", "label": "Fulfillment", "sublabel": "shipping workflow", "stage": 4, "row": 0, "tag": "consumer" },
|
|
29
|
+
{ "id": "analytics", "type": "database", "label": "Analytics", "sublabel": "streaming facts", "stage": 4, "row": 2, "tag": "consumer" },
|
|
30
|
+
{ "id": "replay", "type": "security", "label": "Replay Tool", "sublabel": "approved batch", "stage": 4, "row": 4, "tag": "operator gate" },
|
|
31
|
+
{ "id": "ops", "type": "external", "label": "On-call", "sublabel": "DLQ owner", "stage": 4, "row": 3, "yOffset": -18, "tag": "SRE" }
|
|
32
|
+
],
|
|
33
|
+
"flows": [
|
|
34
|
+
{ "from": "checkout", "to": "orders", "label": "OrderPlaced", "classification": "schema v1", "variant": "emphasis", "route": "straight" },
|
|
35
|
+
{ "from": "billing", "to": "payments", "label": "PaymentCaptured", "classification": "schema v2", "variant": "emphasis", "route": "straight" },
|
|
36
|
+
{ "from": "orders", "to": "validate", "label": "ordered orders", "classification": "consumer group", "variant": "emphasis", "route": "straight" },
|
|
37
|
+
{ "from": "payments", "to": "enrich", "label": "payment facts", "classification": "at-least-once", "variant": "emphasis", "route": "straight" },
|
|
38
|
+
{ "from": "validate", "to": "state", "label": "valid order", "classification": "idempotent", "variant": "emphasis", "route": "vertical-channel" },
|
|
39
|
+
{ "from": "enrich", "to": "state", "label": "enriched payment", "classification": "idempotent", "variant": "default", "route": "vertical-channel" },
|
|
40
|
+
{ "from": "state", "to": "fulfillment", "label": "ready orders", "classification": "read model", "variant": "emphasis", "route": "vertical-channel" },
|
|
41
|
+
{ "from": "state", "to": "analytics", "label": "order facts", "classification": "non-PII", "variant": "default", "route": "vertical-channel" },
|
|
42
|
+
{ "from": "validate", "to": "dlq", "label": "invalid event", "classification": "dead letter", "variant": "security", "fromSide": "top", "toSide": "top", "via": [[530, 80], [20, 80], [20, 550], [745, 550]], "labelAt": [300, 550] },
|
|
43
|
+
{ "from": "enrich", "to": "dlq", "label": "poison event", "classification": "dead letter", "variant": "security", "route": "bottom-channel", "labelDy": 30 },
|
|
44
|
+
{ "from": "dlq", "to": "ops", "label": "failure sample", "classification": "restricted", "variant": "security", "route": "vertical-channel" },
|
|
45
|
+
{ "from": "dlq", "to": "replay", "label": "approved replay", "classification": "audited batch", "variant": "dashed", "route": "straight", "labelDy": 30 }
|
|
46
|
+
],
|
|
47
|
+
"cards": [
|
|
48
|
+
{ "dot": "amber", "title": "Transit Contract", "items": ["Every event and topic is named", "Partition keys preserve per-order ordering", "Consumer groups expose processing ownership"] },
|
|
49
|
+
{ "dot": "emerald", "title": "State + Delivery", "items": ["Processors write an idempotent materialized view", "Fulfillment and analytics consume distinct assets", "At-least-once delivery never implies duplicate business effects"] },
|
|
50
|
+
{ "dot": "rose", "title": "Failure Ownership", "items": ["Poison events land in a retained dead-letter topic", "On-call inspects samples before replay", "Replay is gated, batched, and auditable"] }
|
|
51
|
+
]
|
|
52
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 2,
|
|
3
|
+
"diagram_type": "workflow",
|
|
4
|
+
"meta": {
|
|
5
|
+
"title": "2026年剩余假期安排",
|
|
6
|
+
"locale": "zh-CN",
|
|
7
|
+
"quality_profile": "showcase",
|
|
8
|
+
"legend": {
|
|
9
|
+
"entries": {
|
|
10
|
+
"backend": {
|
|
11
|
+
"label": "假期"
|
|
12
|
+
},
|
|
13
|
+
"security": {
|
|
14
|
+
"label": "补班"
|
|
15
|
+
},
|
|
16
|
+
"external": {
|
|
17
|
+
"label": "时间节点"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"output": "holiday-planning.html"
|
|
22
|
+
},
|
|
23
|
+
"lanes": [
|
|
24
|
+
{
|
|
25
|
+
"id": "calendar",
|
|
26
|
+
"label": "时间线"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "makeup",
|
|
30
|
+
"label": "调休"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"mainPath": [
|
|
34
|
+
"today",
|
|
35
|
+
"mid_autumn",
|
|
36
|
+
"national_day",
|
|
37
|
+
"year_end"
|
|
38
|
+
],
|
|
39
|
+
"nodes": [
|
|
40
|
+
{
|
|
41
|
+
"id": "today",
|
|
42
|
+
"lane": "calendar",
|
|
43
|
+
"col": 0,
|
|
44
|
+
"type": "external",
|
|
45
|
+
"label": "今天 9月22日",
|
|
46
|
+
"sublabel": "周二 · 距中秋3天",
|
|
47
|
+
"icon": "clock"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"id": "mid_autumn",
|
|
51
|
+
"lane": "calendar",
|
|
52
|
+
"col": 1,
|
|
53
|
+
"type": "backend",
|
|
54
|
+
"label": "中秋节",
|
|
55
|
+
"sublabel": "9月25日–27日 · 3天",
|
|
56
|
+
"tag": "无需调休",
|
|
57
|
+
"icon": "moon"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "national_day",
|
|
61
|
+
"lane": "calendar",
|
|
62
|
+
"col": 3,
|
|
63
|
+
"type": "backend",
|
|
64
|
+
"label": "国庆节",
|
|
65
|
+
"sublabel": "10月1日–7日 · 7天",
|
|
66
|
+
"tag": "连休",
|
|
67
|
+
"icon": "calendar"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "year_end",
|
|
71
|
+
"lane": "calendar",
|
|
72
|
+
"col": 5,
|
|
73
|
+
"type": "external",
|
|
74
|
+
"label": "此后至年底",
|
|
75
|
+
"sublabel": "无法定节假日",
|
|
76
|
+
"icon": "flag"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "makeup_work",
|
|
80
|
+
"lane": "makeup",
|
|
81
|
+
"col": 3,
|
|
82
|
+
"type": "security",
|
|
83
|
+
"label": "调休上班",
|
|
84
|
+
"sublabel": "10月10日(周六)",
|
|
85
|
+
"tag": "补班",
|
|
86
|
+
"icon": "briefcase"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"edges": [
|
|
90
|
+
{
|
|
91
|
+
"id": "to_mid_autumn",
|
|
92
|
+
"from": "today",
|
|
93
|
+
"to": "mid_autumn",
|
|
94
|
+
"label": "3天后连休"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"id": "mid_to_national",
|
|
98
|
+
"from": "mid_autumn",
|
|
99
|
+
"to": "national_day",
|
|
100
|
+
"label": "节后上班3天"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "to_year_end",
|
|
104
|
+
"from": "national_day",
|
|
105
|
+
"to": "year_end",
|
|
106
|
+
"label": "假期结束"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"id": "makeup_branch",
|
|
110
|
+
"from": "national_day",
|
|
111
|
+
"to": "makeup_work",
|
|
112
|
+
"label": "国庆调休",
|
|
113
|
+
"role": "branch",
|
|
114
|
+
"variant": "security"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"cards": [
|
|
118
|
+
{
|
|
119
|
+
"dot": "emerald",
|
|
120
|
+
"title": "中秋节",
|
|
121
|
+
"items": [
|
|
122
|
+
"9月25日(周五)至27日(周日)放假,共3天",
|
|
123
|
+
"与周末自然相连,无需额外调休上班"
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"dot": "amber",
|
|
128
|
+
"title": "国庆节",
|
|
129
|
+
"items": [
|
|
130
|
+
"10月1日(周四)至7日(周三)放假调休,共7天",
|
|
131
|
+
"9月20日(周日)上班日已过",
|
|
132
|
+
"10月10日(周六)需补班"
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"dot": "slate",
|
|
137
|
+
"title": "年底前",
|
|
138
|
+
"items": [
|
|
139
|
+
"国庆假期结束后,到2026年底不再有法定节假日安排"
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 1,
|
|
3
|
+
"diagram_type": "workflow",
|
|
4
|
+
"meta": {
|
|
5
|
+
"title": "Incident Response Runbook",
|
|
6
|
+
"output": "examples/incident-response.html",
|
|
7
|
+
"animation": "trace",
|
|
8
|
+
"visual_preset": "signal-flow",
|
|
9
|
+
"quality_profile": "showcase"
|
|
10
|
+
},
|
|
11
|
+
"lanes": [
|
|
12
|
+
{ "id": "signals", "label": "Signals" },
|
|
13
|
+
{ "id": "responders", "label": "Incident Command" },
|
|
14
|
+
{ "id": "mitigation", "label": "Service Mitigation" },
|
|
15
|
+
{ "id": "recovery", "label": "Recovery Evidence" },
|
|
16
|
+
{ "id": "communication", "label": "Stakeholder Communication" },
|
|
17
|
+
{ "id": "exceptions", "label": "Escalation + Rollback", "variant": "exception" }
|
|
18
|
+
],
|
|
19
|
+
"phases": [
|
|
20
|
+
{ "id": "detect", "label": "Detect", "fromCol": 0, "toCol": 1 },
|
|
21
|
+
{ "id": "respond", "label": "Triage + mitigate", "fromCol": 2, "toCol": 3, "variant": "emphasis" },
|
|
22
|
+
{ "id": "recover", "label": "Verify + close", "fromCol": 4, "toCol": 5, "variant": "dashed" }
|
|
23
|
+
],
|
|
24
|
+
"groups": [
|
|
25
|
+
{ "id": "command", "label": "Incident command", "lane": "responders", "fromCol": 1, "toCol": 3, "variant": "emphasis" },
|
|
26
|
+
{ "id": "exception_actions", "label": "If impact persists", "lane": "exceptions", "fromCol": 3, "toCol": 5, "variant": "security" }
|
|
27
|
+
],
|
|
28
|
+
"mainPath": ["alert", "page", "triage", "contain", "recover", "verify", "close"],
|
|
29
|
+
"nodes": [
|
|
30
|
+
{ "id": "alert", "lane": "signals", "col": 0, "type": "messagebus", "label": "SLO Alert", "sublabel": "burn rate" },
|
|
31
|
+
{ "id": "page", "lane": "responders", "col": 1, "width": 76, "type": "external", "label": "Page On-call", "sublabel": "acknowledge" },
|
|
32
|
+
{ "id": "triage", "lane": "responders", "col": 2, "width": 64, "type": "backend", "label": "Triage", "sublabel": "scope impact" },
|
|
33
|
+
{ "id": "declare", "lane": "responders", "col": 3, "type": "security", "label": "Declare", "sublabel": "assign commander", "tag": "SEV-1/2" },
|
|
34
|
+
{ "id": "contain", "lane": "mitigation", "col": 3, "width": 72, "type": "backend", "label": "Contain", "sublabel": "stop growth" },
|
|
35
|
+
{ "id": "recover", "lane": "mitigation", "col": 4, "width": 52, "type": "cloud", "label": "Recover", "sublabel": "restore" },
|
|
36
|
+
{ "id": "verify", "lane": "recovery", "col": 5, "type": "database", "label": "Verify", "sublabel": "SLO + traces", "tag": "15 min stable" },
|
|
37
|
+
{ "id": "close", "lane": "communication", "col": 5, "type": "external", "label": "Resolve", "sublabel": "final update" },
|
|
38
|
+
{ "id": "update", "lane": "communication", "col": 3, "type": "frontend", "label": "Status Update", "sublabel": "impact + ETA" },
|
|
39
|
+
{ "id": "escalate", "lane": "exceptions", "col": 3, "width": 72, "type": "security", "label": "Escalate", "sublabel": "specialist" },
|
|
40
|
+
{ "id": "rollback", "lane": "exceptions", "col": 5, "type": "messagebus", "label": "Rollback", "sublabel": "last good" }
|
|
41
|
+
],
|
|
42
|
+
"edges": [
|
|
43
|
+
{ "from": "alert", "to": "page", "label": "page", "variant": "emphasis", "route": "drop", "fromSide": "bottom", "toSide": "top" },
|
|
44
|
+
{ "from": "page", "to": "triage", "route": "bottom-channel", "fromSide": "bottom", "toSide": "bottom" },
|
|
45
|
+
{ "from": "triage", "to": "contain", "variant": "emphasis", "route": "drop", "fromSide": "bottom", "toSide": "top" },
|
|
46
|
+
{ "from": "contain", "to": "recover", "route": "bottom-channel", "fromSide": "bottom", "toSide": "bottom" },
|
|
47
|
+
{ "from": "recover", "to": "verify", "variant": "emphasis", "route": "drop", "fromSide": "bottom", "toSide": "top" },
|
|
48
|
+
{ "from": "verify", "to": "close", "variant": "emphasis", "route": "drop", "fromSide": "bottom", "toSide": "top" },
|
|
49
|
+
{ "from": "triage", "to": "declare", "variant": "security" },
|
|
50
|
+
{ "from": "declare", "to": "update", "variant": "dashed", "fromSide": "top", "toSide": "left", "via": [[430, 16], [20, 16], [20, 615]] },
|
|
51
|
+
{ "from": "update", "to": "escalate", "variant": "security", "route": "drop", "fromSide": "bottom", "toSide": "top" },
|
|
52
|
+
{ "from": "verify", "to": "rollback", "variant": "security", "role": "error", "route": "outside-right", "fromSide": "right", "toSide": "right" }
|
|
53
|
+
],
|
|
54
|
+
"cards": [
|
|
55
|
+
{ "dot": "rose", "title": "Ownership First", "items": ["A page is not an incident until someone owns command", "Severity and scope are explicit before mitigation spreads", "Escalation names the missing expertise"] },
|
|
56
|
+
{ "dot": "emerald", "title": "Recovery Is Evidence", "items": ["Mitigation can reduce impact without proving recovery", "SLOs and traces must stay healthy for a fixed window", "The final update follows verification, not optimism"] },
|
|
57
|
+
{ "dot": "cyan", "title": "Communication Contract", "items": ["Stakeholders receive impact, action, and next update time", "Rollback remains visible as a deliberate response", "Every branch has an owner and observable exit"] }
|
|
58
|
+
]
|
|
59
|
+
}
|