Skip to content

Latest commit

 

History

History
2652 lines (1852 loc) · 108 KB

cli-reference.md

File metadata and controls

2652 lines (1852 loc) · 108 KB

SDEM CLI reference

Generated from the code by sdem model regenerate (sdem/clidoc.py), from the same catalogue as sdem commands --json; sdem model check fails in CI when it is stale — do not edit by hand. Each command's --help has the same options and a worked example. For when to use which command, in order, see the scenarios; for what each does to your data, the user guide.

121 commands and subcommands.

Every command takes

Option What it does
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--limit N with --json: every list cut to N items, listed under "truncated"
--dry-run nothing written; what would be written is listed under "would_write"

Exit codes: 0 ok · 1 refused by a check · 2 usage or input error · 3 internal error. Error codes (with --json, in {"error": {"code", …}}): exists, input, internal, invalid_input, needs_person, not_found, refused, usage.

A person's decision: approve, load, new, aid confirm/reject and other recorded decisions take --person/--reviewer: a person's own name, never an agent's (CTL-21). Commands below marked 👤 take such a name.

Everyday

The ten an architect uses most, in the order of a design's life (CR-05). Inside a workspace folder, --workspace is found for you (WS-11). A walk-through: the quick start.

Command What it does
sdem new start a workspace (or an organisation) for a design
sdem status where the design is: what blocks it, what waits on you, and what to do next
sdem aid infer the missing layers from the business design — marked inferred until 👤 a person confirms them
sdem check is the design well-formed? — against the metamodel
sdem comply does it meet the organisation's standards and reference patterns?
sdem approve 👤 approve a proposed link between layers, with its evidence
sdem trace what a record depends on, or what depends on it
sdem impact what a change to a record affects: modify, rehost, replace or retire
sdem document the design as a readable document — from the records, nothing invented
sdem workbench everything about the design on one offline page

Index

J9 · Start and onboard

start a workspace or an organisation, bring in designs, upgrade

Command What it does
sdem bian the BIAN (A2) layer: from the base BIAN that ships with SDEM, your own BIAN pack, or BIAN's files
sdem bian inference —
sdem designs design records and gap records: the pages onboarded designs came from, and what did not fit an entity
sdem extensions the installed SDEM extensions (a program called sdem- beside SDEM, with a manifest)
sdem load 👤 load reviewed candidate entities from sdem transform into a workspace
sdem new 👤 start a workspace: the four layers (A2 your BIAN layer) and an empty registry of connections
sdem releases what each SDEM release changed: migrations, breaking changes, deprecations and the actions to take
sdem transform transform past designs
sdem transform inspect what is in the export and which rules read it
sdem transform rules write a copy of SDEM's transform rules to tune for your organisation's designs (then pass it with --rules)
sdem transform run transform the export: write candidate datasets, extraction.json, design-index.json and extraction-report.md
sdem upgrade before you switch SDEM versions: run the new version, installed side by side, against your workspaces
sdem upgrade check what upgrading to this version means for your workspaces: migrations, profile, deprecations, agent files, actions

J1 · Check and specify

check the data; the organisation's profile, standards and patterns

Command What it does
sdem check check architecture datasets and registry against the metamodel
sdem comply the organisation's standards and reference-architecture patterns over a workspace: per rule and record compliant, non-compliant …
sdem intake 👤 take in a design authored as SDEM data (the package of the authoring guide): --check says everything wrong at once, with no workspace
sdem pattern reference-architecture patterns as structures
sdem pattern draw draw a pattern (PR-25)
sdem pattern extract a diagram → a DRAFT pattern file and a report; nothing enters the profile until a person includes it (PR-30)
sdem profile the organisation's design specification on top of SDEM's metamodel
sdem profile adopt 👤 put the workspace under its sdem-profile.json: the layers it adds start empty, and the adoption is recorded
sdem profile check check the workspace's profile (and the base it extends) against SDEM's metamodel
sdem profile example write a synthetic bank base profile, team profiles that extend it (one adds layers), and a team profile with the bank's standards and secure API pattern
sdem profile exclude 👤 switch a standard, pattern or metamodel extension off again
sdem profile include 👤 add a standard or pattern to what the workspace's profile includes
sdem profile purge 👤 delete the archived data of a part that was switched off
sdem profile restore 👤 switch a part back on from one of its archives
sdem profile show the merged profile: every type, attribute, rule, link kind and name it adds
sdem types what you may write: each layer's kinds of record, their fields (type, required, allowed values) and allowed links; the requirement and change-set formats
sdem validate validate a relationship document (registry or proposals)
sdem viewpoint the viewpoints SDEM defines, as data
sdem viewpoint check check every viewpoint and the ArchiMate notation against SDEM's metamodel (ARV-16, ARV-21)
sdem viewpoint list the viewpoints SDEM defines
sdem viewpoint show one viewpoint: its plates, what each draws and leaves out, its layouts

J2 · Link the architectures

propose links between the layers

Command What it does
sdem link run the inference engine: propose links between the architectures, and show them weakest first for review (--no-review: just write them)

J3 · Review and approve

a person decides on proposed links

Command What it does
sdem approve 👤 a person approves proposed links into the registry
sdem connect 👤 a person states a connection the engine did not propose
sdem exception a person's time-limited exception to one of the organisation's rules for named records
sdem exception grant 👤 record a person's exception
sdem exception list the workspace's exceptions, active or expired
sdem governance governed decisions
sdem governance verify every decision record: verified by a signed commit from its approver, or why not
sdem handback what a workspace leaves open for a person
sdem reject 👤 a person rejects proposed links
sdem review list proposed links for review, weakest first
sdem status where a design is and what to do next: what blocks it, what waits on a value or a person's decision, what is worth a look

J4 · Build the knowledge graph

the graph store, queries and baselines

Command What it does
sdem baseline freeze the current graph store under a name
sdem build check the inputs and write the graph store (knowledge graph)
sdem query find records in a graph store

J5 · Trace, impact and requirements

what depends on what, what a change affects

Command What it does
sdem data the Data Architecture: a data entity's lineage through the applications that read and write it, and a person states an access link's read or write (DAR-03 …
sdem data lineage where a data entity's data comes from and goes
sdem data mode 👤 a person states whether an access link reads, writes or both (DAR-03)
sdem impact classify what a change to a record affects
sdem layout a layer drawn by what owns what
sdem matrix business → BIAN → application → technology matrices from approved links
sdem requirements requirements and constraints the workspace must keep meeting, their measurements, and what a change does to them: in scope, satisfied, breached, not evaluable
sdem requirements check the registry against its schema and the workspace
sdem requirements confirm 👤 a person confirms proposed requirements
sdem requirements evaluate what a change does to the requirements: in scope, satisfied, breached, not evaluable
sdem requirements list the requirements, with status and subject
sdem requirements measure 👤 record measurements
sdem requirements propose 👤 add requirements, or new versions, as proposed
sdem requirements retire 👤 a person retires requirements
sdem requirements show one requirement: condition, evidence, history and its measurements
sdem requirements trace a requirement through the layers: its subject and allocations, what they depend on and serve, and the requirements it derives from
sdem trace trace what a record depends on (down) or what depends on it (up)
sdem zones a workspace's network zones: each zone and what it holds, how the zones connect (ZC-01…ZC-03, worked out from the zone structure) …

J6 · Infer with AID

fill the gaps, confirm or reject

Command What it does
sdem aid 👤 Architecture Inference Design: fill a workspace's gaps
sdem aid check —
sdem aid confirm 👤 Confirm inferred records: you agree with them; the mark stays, with your name.
sdem aid gaps —
sdem aid project —
sdem aid reject 👤 Reject inferred records: removed with their links inside the layer, and remembered so they are not inferred again.

J7 · See it

pages, diagrams, documents

Command What it does
sdem dashboard one read-only HTML dashboard for a workspace: health, attention, review, trace & impact, matrices, changes, AID, controls
sdem diagram ArchiMate diagrams of a workspace from SDEM's templates
sdem document a layer's design as a structured, readable document (Markdown or HTML), generated from the workspace
sdem document verify Check a narrative an agent wrote from sdem document --json against the workspace (UX-D09…D11): every [ID] it cites is a record or an approved connection …
sdem home the main dashboard: the metamodel (entities, links inside and between architectures, engine rules), its picture, health, configuration
sdem view write the HTML picture of a graph store, optionally with a projection
sdem workbench the workbench for one workspace: one offline page

J8 · Explain

why a record or link exists

Command What it does
sdem explain explain one element or link: why it exists, from what, how sure

AG · Agents and change

change sets, events, work items, agent setup

Command What it does
sdem agents put SDEM's instructions and skills for AI agents into your workspace repository
sdem agents install write AGENTS.md, CLAUDE.md, .claude/skills, .agents/skills, .gemini/settings.json and .github/ (Copilot)
sdem change agent platform: propose a change set to one layer
sdem change adopt 👤 record a person's direct edit of a layer as a change set (AG-S08)
sdem change diff compare an incoming layer file with the workspace and write the change set it implies
sdem change propose 👤 check and apply a change set to its layer; records the change event and its impact
sdem change revert 👤 undo the latest change set of a layer
sdem change show a change set with its event and impact
sdem copilot put SDEM's Copilot instructions, agents, prompts and skills into your workspace repository, matching this SDEM version
sdem copilot install write .github/copilot-instructions.md, agents/, prompts/, skills/ into a repository
sdem events agent platform: change events, their impact and open work
sdem events accept 👤 a person accepts the final impact assessment (and, with --authorise, authorises implementation)
sdem events analyse 👤 recompute the requirements evaluation and risk findings after new evidence, links or requirements (assessments made against other evidence become stale)
sdem events assess 👤 a layer agent records its layer's assessment of the calculated impact
sdem events authorise 👤 a person authorises implementation of an accepted assessment
sdem events pending layers still to assess
sdem events show the calculated impact, every assessment, and what still stops acceptance
sdem events validate 👤 orchestrator or architect: open the impact validation of a change event
sdem work agent platform: plan, list and claim work items
sdem work block 👤 a work item cannot proceed
sdem work cancel 👤 drop a work item
sdem work claim 👤 a layer agent takes a work item
sdem work list work items
sdem work plan 👤 orchestrator: turn a change event's impact into work items
sdem work reopen 👤 return a work item to open

— · SDEM maintenance

the owner's commands in SDEM's own repository

Command What it does
sdem diff compare two versions of a relationship document
sdem migrate 👤 move a workspace to the current metamodel version
sdem model maintainers: regenerate and check generated files, acceptance, evaluation, examples
sdem model accept engine acceptance cases
sdem model baseline-pack write the metamodel baseline review pack
sdem model calibrate how often each confidence band and evidence class is right on the acceptance cases (AID-E03)
sdem model check fail if any generated file differs from a fresh generation
sdem model eval score proposals against approved links
sdem model examples re-run use-case examples 1 and 2 (evidence packs and results)
sdem model freeze record the core after an approved, versioned change
sdem model integrity a design in the metamodel integrity reference shape
sdem model regenerate regenerate every generated document, diagram and schema
sdem model stability the core against its last freeze (as CI)
sdem model status every part of SDEM's metamodel not yet settled, with its source and what would settle it
sdem model usage what the given workspaces use, and what no workspace uses

Commands

sdem agents

put SDEM's instructions and skills for AI agents into your workspace repository — one AGENTS.md for Codex, Claude Code, Gemini CLI and Copilot, the same skills in each one's folder

Subcommands: sdem agents install

sdem agents install

write AGENTS.md, CLAUDE.md, .claude/skills, .agents/skills, .gemini/settings.json and .github/ (Copilot)

sdem agents install [--to TO] [--platform {copilot,claude,codex,gemini} …] [--workspace WORKSPACE] [--dry-run] [--force]

JSON: native · dry run: native

Argument Required What it is
--to the repository (default: the current folder)
--platform {copilot, claude, codex, gemini} which agents (default: all four)
--workspace also a layer agent for each layer this workspace's profile adds (repeatable)
--dry-run show what would change; write nothing
--force also replace files your team has changed since the last install
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem aid

Architecture Inference Design: fill a workspace's gaps — inferred records marked with source, reasoning and confidence; confirm, reject (also project, check, gaps for file-based planning)

Subcommands: sdem aid check · sdem aid gaps · sdem aid project

sdem aid --workspace WORKSPACE --person PERSON [--dry-run] [--complete-draft]

JSON: native · dry run: native · 👤 a person's own name

Argument Required What it is
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--person yes your name — a person
--dry-run nothing written; what would be written is listed under "would_write"
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--complete-draft also place, by default, each gap a standard finds that nothing in the design gives evidence for — so the first draft is whole; each is marked 'placed by default', to review first (AID-D08)

Example:

sdem aid --workspace workspaces/payments --person jane.architect

sdem aid check

sdem aid check <projection> [--catalogue CATALOGUE]

JSON: native · dry run: sandbox

Argument Required What it is
<projection> yes a projection file written by sdem aid project
--catalogue an entity catalogue (entities.json): the ids and names records must use
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem aid confirm

Confirm inferred records: you agree with them; the mark stays, with your name.

sdem aid confirm [<ids>] --workspace WORKSPACE --person PERSON [--all] [--reason REASON]

JSON: native · dry run: sandbox · 👤 a person's own name

Argument Required What it is
<ids> the inferred record ids (sdem status or sdem handback lists them)
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--person yes your name — a person
--all every inferred record not yet confirmed
--reason why — kept
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem aid gaps

sdem aid gaps <projection> [--workspace WORKSPACE] [--actual ACTUAL …]

JSON: native · dry run: sandbox

Argument Required What it is
<projection> yes a projection file written by sdem aid project
--workspace compare with a workspace's real layers and approved connections
--actual the real architecture datasets to compare the plan with
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem aid project

sdem aid project [--workspace WORKSPACE] [--have HAVE …] [--catalogue CATALOGUE] [--registry REGISTRY] [-o O]

JSON: native · dry run: sandbox

Argument Required What it is
--workspace plan from a workspace: its business layer (and any applications and technology), its BIAN layer and its approved connections
--have the architecture datasets you already have (a1-business.json …)
--catalogue an entity catalogue (entities.json): the ids and names records must use
--registry the registry of approved connections (mappings.json)
-o, --out where the planned design goes (default with --workspace: /plans/PLAN-nnn)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem aid reject

Reject inferred records: removed with their links inside the layer, and remembered so they are not inferred again.

sdem aid reject [<ids>] --workspace WORKSPACE --person PERSON [--all] --reason REASON

JSON: native · dry run: sandbox · 👤 a person's own name

Argument Required What it is
<ids> the inferred record ids (sdem status or sdem handback lists them)
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--person yes your name — a person
--all every inferred record not yet confirmed
--reason yes why — kept
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem approve

a person approves proposed links into the registry — reviewer, date, required evidence, validated first

sdem approve <ids> --proposals PROPOSALS [--workspace WORKSPACE] [--registry REGISTRY] --reviewer REVIEWER [--evidence EVIDENCE] [--supersedes SUPERSEDES] [--id ID] [--bian-release BIAN_RELEASE] [--date DATE] [--dry-run]

JSON: native · dry run: native · 👤 a person's own name

Argument Required What it is
<ids> yes proposal id(s) from sdem review
--proposals yes a proposals file written by sdem link (proposals.json)
--workspace workspace folder (its mappings.json)
--registry the registry, if not /mappings.json
--reviewer, --person yes your name — a person (CTL-21); --person works too, as in the other commands
--evidence the document that proves the link (repeatable)
--supersedes the approved link this one replaces (it becomes superseded)
--id the new link id (default: the next in the registry's style)
--bian-release for a link to a BIAN element: the BIAN release it relies on (required by the registry rules)
--date approval date (default today)
--dry-run show the record; write nothing
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

Example:

sdem approve P-RUN-001 --proposals work/links/proposals.json --workspace work/est --reviewer jane.architect --evidence deployment_design:PAY-REHOST#cutover

sdem baseline

freeze the current graph store under a name

sdem baseline <name> --graph GRAPH

JSON: native · dry run: sandbox

Argument Required What it is
<name> yes its name
--graph yes a graph store folder written by sdem build
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

Example:

sdem baseline release-1 --graph work/graph

sdem bian

the BIAN (A2) layer: from the base BIAN that ships with SDEM, your own BIAN pack, or BIAN's files — list, search, import the service domains you choose (checked), add one to a workspace or select exactly which it holds, pack

sdem bian

JSON: wrapped · dry run: sandbox

Example:

sdem bian import ~/bian/release14.0.0 --only "Payment Order Initiation" -o work/bian/a2-service-domain.json

sdem bian inference

sdem bian inference

JSON: wrapped · dry run: sandbox

sdem build

check the inputs and write the graph store (knowledge graph)

sdem build <paths> -o O [--check]

JSON: native · dry run: sandbox

Argument Required What it is
<paths> yes architecture datasets and relationship registries
-o, --out yes graph store directory
--check fail if the stored graph files differ from a fresh build (CI)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--workspace the workspace folder, in place of the list of files (its layer datasets and mappings.json)

Example:

sdem build --workspace examples/card-fraud-alerts --out work/graph

sdem change

agent platform: propose a change set to one layer — checked, then its impact recorded

Subcommands: sdem change adopt · sdem change diff · sdem change propose · sdem change revert · sdem change show

sdem change adopt

record a person's direct edit of a layer as a change set (AG-S08)

sdem change adopt --workspace WORKSPACE --layer {A1,A2,A3,A4,registry,requirements} --person PERSON --reason REASON

JSON: native · dry run: sandbox · 👤 a person's own name

Argument Required What it is
--workspace yes the workspace folder (a1…a4 datasets, mappings.json)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--layer {A1, A2, A3, A4, registry, requirements} yes the layer: A1 business, A2 BIAN, A3 application, A4 technology (or a layer your profile adds)
--person yes who made the edit
--reason yes why — recorded with the decision

sdem change diff

compare an incoming layer file with the workspace and write the change set it implies — nothing is applied (AG-K09)

sdem change diff <incoming> --workspace WORKSPACE [--complete] [-o O]

JSON: native · dry run: sandbox

Argument Required What it is
<incoming> yes a layer dataset (JSON with 'level', 'instances', 'relationships') — e.g. records an agent drafted from a document
--workspace yes the workspace folder (a1…a4 datasets, mappings.json)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--complete the file is the whole layer: records it leaves out become retirement candidates (listed, never applied) and its records are compared field by field
-o, --out write the change set here, for sdem change propose

sdem change propose

check and apply a change set to its layer; records the change event and its impact

sdem change propose <change_set> --workspace WORKSPACE --agent AGENT --person PERSON [--work WORK …] [--catalogue CATALOGUE]

JSON: native · dry run: sandbox · 👤 a person's own name

Argument Required What it is
<change_set> yes change set file (JSON): layer, reason, changes[, relationships]
--workspace yes the workspace folder (a1…a4 datasets, mappings.json)
--agent yes the agent: sdem-a1-business, sdem-a2-bian, sdem-a3-application, sdem-a4-technology, sdem-orchestrator, or 'architect' for a person working without an agent
--person yes the person behind the agent (CTL-20)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--work work item(s) this change set answers (claimed by the same agent)
--catalogue BIAN catalogue (A2 dataset) — required when an A2 change set adds records

sdem change revert

undo the latest change set of a layer — recorded as a new change set (T5)

sdem change revert <id> --workspace WORKSPACE --agent AGENT --person PERSON [--reason REASON]

JSON: native · dry run: sandbox · 👤 a person's own name

Argument Required What it is
<id> yes the layer whose latest change set to undo (e.g. A3)
--workspace yes the workspace folder (a1…a4 datasets, mappings.json)
--agent yes the agent: sdem-a1-business, sdem-a2-bian, sdem-a3-application, sdem-a4-technology, sdem-orchestrator, or 'architect' for a person working without an agent
--person yes the person behind the agent (CTL-20)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--reason why — recorded with the decision

sdem change show

a change set with its event and impact

sdem change show <id> --workspace WORKSPACE

JSON: native · dry run: sandbox

Argument Required What it is
<id> yes the change set id (e.g. CS-001)
--workspace yes the workspace folder (a1…a4 datasets, mappings.json)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem check

check architecture datasets and registry against the metamodel

sdem check [<paths>] [--graph GRAPH] [--status STATUS] [--require-recorded]

JSON: native · dry run: sandbox

Argument Required What it is
<paths> architecture datasets and mapping documents, any order (or use --graph)
--graph read a graph store (sdem build) instead of architecture datasets
--status mapping statuses to treat as arrows
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--require-recorded fail if a layer file or the registry changed since SDEM last wrote it (an edit not made through sdem, not accepted with sdem change adopt) — for CI where agents edit (AF-07)
--workspace the workspace folder, in place of the list of files (its layer datasets and mappings.json)

Example:

sdem check --workspace examples/payment-initiation

sdem comply

the organisation's standards and reference-architecture patterns over a workspace: per rule and record compliant, non-compliant, unresolved or under an exception — separate from sdem check (PR-19)

sdem comply --workspace WORKSPACE [--as-of AS_OF]

JSON: native · dry run: sandbox

Argument Required What it is
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--as-of evaluate dates (effective dates, expiries, today) as of this date
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

Example:

sdem comply --workspace examples/payment-initiation

sdem connect

a person states a connection the engine did not propose — the same checks as approve, both ends in the workspace

sdem connect <source> <relationship> <target> --workspace WORKSPACE --reviewer REVIEWER [--evidence EVIDENCE] --rationale RATIONALE [--bian-release BIAN_RELEASE] [--access-mode {read,write,read_write}] [--id ID] [--date DATE] [--dry-run]

JSON: native · dry run: native · 👤 a person's own name

Argument Required What it is
<source> yes the record the connection starts from, e.g. a BIAN service domain id
<relationship> yes one of the connection types, e.g. REALIZED_BY, SUPPORTED_BY, DEPLOYED_ON
<target> yes the record it goes to
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--reviewer, --person yes your name — a person (CTL-21)
--evidence the document that proves it (repeatable; every kind the type needs)
--rationale yes one sentence: why this connection is true
--bian-release for a connection resting on BIAN guidance: the BIAN release (e.g. 14.0.0)
--access-mode {read, write, read_write} on ACCESSED_BY: whether the application reads, writes or both (DAR-03)
--id its id
--date the date (YYYY-MM-DD)
--dry-run nothing written; what would be written is listed under "would_write"
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

Example:

sdem connect SD-PAYMENT-ORDER-INITIATION REALIZED_BY HIS-A3-PAYMENTS-HUB --workspace workspaces/payments --reviewer jane.architect --evidence application_architecture_document:PAYHUB-HLD#s2 --rationale "…"

sdem copilot

put SDEM's Copilot instructions, agents, prompts and skills into your workspace repository, matching this SDEM version

Subcommands: sdem copilot install

sdem copilot install

write .github/copilot-instructions.md, agents/, prompts/, skills/ into a repository

sdem copilot install [--to TO] [--dry-run] [--force]

JSON: native · dry run: native

Argument Required What it is
--to the repository (default: the current folder)
--dry-run show what would change; write nothing
--force also replace files your team has changed since the last install
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem dashboard

one read-only HTML dashboard for a workspace: health, attention, review, trace & impact, matrices, changes, AID, controls

sdem dashboard --workspace WORKSPACE [-o O] [--proposals PROPOSALS] [--projection PROJECTION] [--catalogue CATALOGUE] [--graph GRAPH] [--view VIEW] [--title TITLE] [--full]

JSON: native · dry run: sandbox

Argument Required What it is
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
-o, --out default /dashboard.html
--proposals show these proposals (default: run the rules engine now)
--projection an AID projection package to show beside the real design
--catalogue the BIAN catalogue the projection used (for its check)
--graph a graph store of this workspace — warn when it is out of date (default: /graph when built)
--view the graph viewer (sdem view) to link to — default /view.html; linked only when it shows the current graph
--title a title
--json print a summary of the computed data instead of writing the page
--full with --json: everything the page shows, every record's trace and impact (large)

Example:

sdem dashboard --workspace examples/payment-initiation -o work/dashboard.html

sdem data

the Data Architecture: a data entity's lineage through the applications that read and write it, and a person states an access link's read or write (DAR-03, DAR-04)

Subcommands: sdem data lineage · sdem data mode

sdem data lineage

where a data entity's data comes from and goes — from approved access links with a stated read or write (DAR-04)

sdem data lineage <entity> --workspace WORKSPACE

JSON: native · dry run: sandbox

Argument Required What it is
<entity> yes the data entity, e.g. DATA-PAYMENT
--workspace yes the workspace folder
--json the answer as data

sdem data mode

a person states whether an access link reads, writes or both (DAR-03) — recorded as their decision

sdem data mode <mapping_id> <mode> --workspace WORKSPACE --person PERSON --rationale RATIONALE [--dry-run]

JSON: native · dry run: native · 👤 a person's own name

Argument Required What it is
<mapping_id> yes the ACCESSED_BY link, e.g. MAP-012 (sdem query, or the workbench, shows its id)
<mode> yes read, write or read_write — ArchiMate access types
--workspace yes the workspace folder
--person yes your name — a person (CTL-21)
--rationale yes one sentence: how you know
--dry-run show what would change; write nothing
--json the link as data

sdem designs

design records and gap records: the pages onboarded designs came from, and what did not fit an entity

sdem designs [--workspace WORKSPACE] [--graph GRAPH] [--entity ENTITY] [--gaps] [--category CATEGORY] [--status {open,resolved,accepted}]

JSON: native · dry run: sandbox

Argument Required What it is
--workspace the workspace folder — found from the current folder when you are inside one (WS-11)
--graph a graph store folder written by sdem build
--entity an entity's pages and the gaps about it or found in them
--gaps list gap records, not design records
--category only gaps of this category, e.g. "no entity type"
--status {open, resolved, accepted} only gaps with this status
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

Example:

sdem designs --workspace workspaces/history --entity HIS-A3-PAYMENTS-HUB

sdem diagram

ArchiMate diagrams of a workspace from SDEM's templates — capabilities and value stream, business process, BIAN service domains, application cooperation, technology and deployment, layered — only stored, approved links drawn

sdem diagram [--workspace WORKSPACE] [--template TEMPLATE] [--focus FOCUS] [--format {svg,html,json}] [-o O] [--list] [--check]

JSON: native · dry run: sandbox

Argument Required What it is
--workspace the workspace folder — found from the current folder when you are inside one (WS-11)
--template the template (sdem diagram --list); default layered
--focus draw only this record, what it contains and is inside, and what is linked to them
--format {svg, html, json} default from the -o extension, else svg
-o, --out write here (default: print)
--list the templates
--check check the templates against the metamodel (as sdem model check)
--json with --list or --check: JSON

Example:

sdem diagram --workspace examples/payment-initiation --template layered -o work/layered.svg

sdem diff

compare two versions of a relationship document

sdem diff <new> [--old OLD] [--git GIT]

JSON: native · dry run: sandbox

Argument Required What it is
<new> yes current mapping document(s)
--old previous version (file); use with a single document
--git compare each document against this git revision, e.g. HEAD~1
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

Example:

sdem diff --git HEAD~1 examples/payment-initiation/mappings.json

sdem document

a layer's design as a structured, readable document (Markdown or HTML), generated from the workspace — nothing invented, sources and gaps shown; verify checks an agent's narrative against it

sdem document --workspace WORKSPACE [--layer LAYER] [--format {md,html}] [-o O]

JSON: native · dry run: sandbox

Argument Required What it is
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--layer A1, A2, A3, A4 (or a layer the profile adds), or all (default)
--format {md, html} the output format
-o, --out a file (one layer) or a folder (all layers); without it, Markdown goes to the screen
--json the structured document instead

Example:

sdem document --workspace examples/payment-initiation --layer A3

sdem document verify

Check a narrative an agent wrote from sdem document --json against the workspace (UX-D09…D11): every [ID] it cites is a record or an approved connection, every link it states ([SOURCE KIND TARGET]) exists and is approved, every record it names is cited, inferred records are said to be inferred, gaps are mentioned. Read-only. Exit 1 when it finds an error.

sdem document verify <file> --workspace WORKSPACE

JSON: native · dry run: sandbox

Argument Required What it is
<file> yes the narrative (Markdown) an agent wrote
--workspace yes the workspace the narrative describes
--json the findings as JSON

sdem events

agent platform: change events, their impact and open work

Subcommands: sdem events accept · sdem events analyse · sdem events assess · sdem events authorise · sdem events pending · sdem events show · sdem events validate

sdem events --workspace WORKSPACE [--open]

JSON: native · dry run: sandbox

Argument Required What it is
--workspace yes the workspace folder (a1…a4 datasets, mappings.json)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--open only events not yet validated, planned or done

Example:

sdem events --workspace work/est --open

sdem events accept

a person accepts the final impact assessment (and, with --authorise, authorises implementation)

sdem events accept <event> --workspace WORKSPACE --person PERSON --reason REASON [--final FINAL …] [--resolve RESOLVE …] [--authorise] [--accept-risk ACCEPT_RISK …]

JSON: native · dry run: sandbox · 👤 a person's own name

Argument Required What it is
<event> yes the change event id (e.g. EVT-001)
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--person yes your name — a person; never an agent
--reason yes why — recorded with the decision
--final your final classification for a layer (required where a specialist disputed or asked for more investigation)
--resolve how you resolved a layer you decided
--authorise also authorise implementation now
--accept-risk accept a confirmed requirement breach as a residual risk, with your reason (required for every confirmed breach)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem events analyse

recompute the requirements evaluation and risk findings after new evidence, links or requirements (assessments made against other evidence become stale)

sdem events analyse <event> --workspace WORKSPACE --agent AGENT --person PERSON

JSON: native · dry run: sandbox · 👤 a person's own name

Argument Required What it is
<event> yes the change event id (e.g. EVT-001)
--workspace yes the workspace folder (a1…a4 datasets, mappings.json)
--agent yes the agent: sdem-a1-business, sdem-a2-bian, sdem-a3-application, sdem-a4-technology, sdem-orchestrator, or 'architect' for a person working without an agent
--person yes the person behind the agent (CTL-20)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem events assess

a layer agent records its layer's assessment of the calculated impact

sdem events assess <event> --workspace WORKSPACE --agent AGENT --person PERSON --layer {A1,A2,A3,A4} --status {impact_confirmed,no_impact_confirmed,further_investigation_required,impact_disputed} [--recommend {design_change_required,review_required,no_impact}] [--evidence EVIDENCE …] [--mapping MAPPING …] [--record RECORD …] [--missing MISSING …] [--uncertainty UNCERTAINTY] [--confidence {high,medium,low}] --reasoning REASONING

JSON: native · dry run: sandbox · 👤 a person's own name

Argument Required What it is
<event> yes the change event id (e.g. EVT-001)
--workspace yes the workspace folder (a1…a4 datasets, mappings.json)
--agent yes the agent: sdem-a1-business, sdem-a2-bian, sdem-a3-application, sdem-a4-technology, sdem-orchestrator, or 'architect' for a person working without an agent
--person yes the person behind the agent (CTL-20)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--layer {A1, A2, A3, A4} yes the layer: A1 business, A2 BIAN, A3 application, A4 technology (or a layer your profile adds)
--status {impact_confirmed, no_impact_confirmed, further_investigation_required, impact_disputed} yes only those with this status
--recommend {design_change_required, review_required, no_impact} your classification for the layer (implied for the two *_confirmed statuses)
--evidence what you checked — a record, a document, a design (required to confirm no impact or to dispute)
--mapping the approved links (mapping ids) you relied on
--record records of your layer that are affected (required for a disputed design change)
--missing links or records that should exist but do not
--uncertainty what you could not establish, and why it does or does not change your conclusion
--confidence {high, medium, low} how sure, from 0 to 1
--reasoning yes why — in a sentence or two

sdem events authorise

a person authorises implementation of an accepted assessment

sdem events authorise <event> --workspace WORKSPACE --person PERSON

JSON: native · dry run: sandbox · 👤 a person's own name

Argument Required What it is
<event> yes the change event id (e.g. EVT-001)
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--person yes your name — a person's own, never an agent's (CTL-21)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem events pending

layers still to assess — for a layer agent: its own

sdem events pending --workspace WORKSPACE [--layer {A1,A2,A3,A4}] [--event EVENT]

JSON: native · dry run: sandbox

Argument Required What it is
--workspace yes the workspace folder (a1…a4 datasets, mappings.json)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--layer {A1, A2, A3, A4} the layer: A1 business, A2 BIAN, A3 application, A4 technology (or a layer your profile adds)
--event a change event id (e.g. EVT-001)

sdem events show

the calculated impact, every assessment, and what still stops acceptance

sdem events show <event> --workspace WORKSPACE

JSON: native · dry run: sandbox

Argument Required What it is
<event> yes the change event id (e.g. EVT-001)
--workspace yes the workspace folder (a1…a4 datasets, mappings.json)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem events validate

orchestrator or architect: open the impact validation of a change event — every layer

sdem events validate <event> --workspace WORKSPACE --agent AGENT --person PERSON

JSON: native · dry run: sandbox · 👤 a person's own name

Argument Required What it is
<event> yes the change event id (e.g. EVT-001)
--workspace yes the workspace folder (a1…a4 datasets, mappings.json)
--agent yes the agent: sdem-a1-business, sdem-a2-bian, sdem-a3-application, sdem-a4-technology, sdem-orchestrator, or 'architect' for a person working without an agent
--person yes the person behind the agent (CTL-20)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem exception

a person's time-limited exception to one of the organisation's rules for named records — a governed decision; list shows them active or expired (PR-18)

Subcommands: sdem exception grant · sdem exception list

sdem exception grant

record a person's exception — never an agent's

sdem exception grant --workspace WORKSPACE --rule RULE --records RECORDS … --expires EXPIRES --reason REASON --person PERSON [--dry-run]

JSON: native · dry run: native · 👤 a person's own name

Argument Required What it is
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--rule yes the rule id
--records yes the record ids
--expires yes when it ends (YYYY-MM-DD) — it is time-limited
--reason yes why — recorded with the decision
--person yes your name — a person's own, never an agent's (CTL-21)
--dry-run nothing written; what would be written is listed under "would_write"
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem exception list

the workspace's exceptions, active or expired

sdem exception list --workspace WORKSPACE

JSON: native · dry run: sandbox

Argument Required What it is
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem explain

explain one element or link: why it exists, from what, how sure

sdem explain <id> [--projection PROJECTION] [--proposals PROPOSALS …] [--graph GRAPH] [--names NAMES …] [--workspace WORKSPACE]

JSON: native · dry run: sandbox

Argument Required What it is
<id> yes a record id, projected id (PRJ-…), or link id
--projection an AID projection package
--proposals proposals file(s) from sdem link
--graph graph store to show record names
--names architecture datasets to show record names
--workspace workspace folder — show record names from its datasets
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

Example:

sdem explain SD-PI --projection work/prj

sdem extensions

the installed SDEM extensions (a program called sdem- beside SDEM, with a manifest) — run one as sdem …; SDEM knows none by name (EXT-15)

sdem extensions [--workspace WORKSPACE]

JSON: native · dry run: sandbox

Argument Required What it is
--json as data: {"count", "items", "built_in"}
--workspace also say whether each built-in extension is on in this workspace, and why (BX-10…BX-13)

Example:

sdem extensions

sdem governance

governed decisions — who was named, and whether a signed commit by that approver verifies it (a typed --person is attribution, not authentication)

Subcommands: sdem governance verify

sdem governance verify

every decision record: verified by a signed commit from its approver, or why not

sdem governance verify --workspace WORKSPACE [--require-verified]

JSON: native · dry run: sandbox

Argument Required What it is
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--require-verified exit 1 unless every decision is verified
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem handback

what a workspace leaves open for a person — values nobody knows, unconfirmed inferences and the strength of their evidence, links to review, possible duplicates, unsourced records — with the commands the person runs (AG-H01)

sdem handback --workspace WORKSPACE

JSON: native · dry run: sandbox

Argument Required What it is
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

Example:

sdem handback --workspace examples/payment-initiation

sdem home

the main dashboard: the metamodel (entities, links inside and between architectures, engine rules), its picture, health, configuration — and every project

sdem home [-o O] [--root ROOT] [--workspace WORKSPACE] [--full]

JSON: native · dry run: sandbox

Argument Required What it is
-o, --out output folder (default work/sdem)
--root a folder of workspaces (repeatable; default examples/)
--workspace one more workspace (repeatable)
--json print a summary: health, configuration, every workspace (the page is written too)
--full with --json: everything, including the whole metamodel and the drawings (large)

Example:

sdem home -o work/sdem

sdem impact

classify what a change to a record affects

sdem impact <entity> [<paths>] [--graph GRAPH] [--status STATUS] --change {modify,rehost,replace,retire} [--report REPORT]

JSON: native · dry run: sandbox

Argument Required What it is
<entity> yes instance id to start from
<paths> architecture datasets and mapping documents, any order (or use --graph)
--graph read a graph store (sdem build) instead of architecture datasets
--status mapping statuses to treat as arrows
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--change {modify, rehost, replace, retire} yes the kind of change: modify, rehost, replace or retire
--report also write a printable impact report (Markdown)
--workspace the workspace folder, in place of the list of files (its layer datasets and mappings.json)

Example:

sdem impact INF-CLOUD-K8S-PROD --change rehost --graph examples/card-fraud-alerts/graph

sdem intake

take in a design authored as SDEM data (the package of the authoring guide): --check says everything wrong at once, with no workspace — what its author runs before handing over; with --workspace it checks, loads, adds the BIAN domains named, includes the patterns that fit, completes the first draft and writes one report — a person's command (IN-01…IN-10)

sdem intake <package> [--check] [--workspace WORKSPACE] [--person PERSON] [--dry-run] [--allow-gaps] [--accept] [--no-inference]

JSON: native · dry run: native · 👤 a person's own name

Argument Required What it is
<package> yes the folder holding the package (the eight files of the authoring guide)
--check check the whole package and say everything wrong at once — no workspace, nothing written; what its author runs before handing over
--workspace the workspace to start with this design (a new folder, or one that holds no records yet)
--person your name — a person
--dry-run check, and say what would be loaded and done; write nothing
--allow-gaps do not fail on a record that is neither connected nor declared in NOT-STATED.json (it is still listed). Without it, every loose end must be accounted for
--accept take the design as authored: the links between layers its author wrote from the design are approved under your name, on the evidence of the design sections they cite — none is left for review. What SDEM's rules then infer stays marked inferred. Your decision, recorded as yours
--no-inference take the design as written and nothing else: sdem aid is not run and SDEM proposes no link — what the package does not give stays open and is listed
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

Example:

sdem intake designs/ledger-package --check

sdem layout

a layer drawn by what owns what — A1 as a capability map, A2 as BIAN's service landscape (business area → business domain → service domain → service group → operation), A3 as the application structure, A4 by its network zones; each region an existing standard record, nesting only through structural links; the layout every drawing uses — read-only

sdem layout --layer {A1,A2,A3,A4} --workspace WORKSPACE [--environment ENVIRONMENT]

JSON: native · dry run: sandbox

Argument Required What it is
--layer {A1, A2, A3, A4} yes the layer: its code here, or its id (business, bian, data, application, technology — DL-25)
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--environment A4 only: the one environment drawn (default production; all for every one)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

Example:

sdem layout --layer A2 --workspace examples/payment-initiation

sdem link

run the inference engine: propose links between the architectures, and show them weakest first for review (--no-review: just write them)

sdem link [<paths>] [--graph GRAPH] [-o O] [--threshold THRESHOLD] [--ext-workspace EXT_WORKSPACE] [--baseline]

JSON: native · dry run: sandbox

Argument Required What it is
<paths> architecture datasets and the approved registry (or use --graph)
--graph read a graph store (sdem build) — the normal path
-o, --out also write candidates, the inference log and any target-design architecture datasets here
--threshold baseline only
--json with --out (sdem link): the proposals, weakest first, as JSON — without --out the output is JSON already
--ext-workspace ==SUPPRESS==
--baseline the name-overlap baseline engine instead of the rules engine
--workspace the workspace folder, in place of the list of files (its layer datasets and mappings.json)

Example:

sdem link --workspace examples/payment-initiation --out work/links

sdem load

load reviewed candidate entities from sdem transform into a workspace — selected, checked first, recorded (the L of the ETL)

sdem load <candidates> --workspace WORKSPACE --person PERSON [--all] [--only ONLY …] [--exclude EXCLUDE …] [--keep KEEP] [--a2 A2] [--dry-run]

JSON: native · dry run: native · 👤 a person's own name

Argument Required What it is
<candidates> yes the folder sdem transform run wrote
--workspace yes the workspace to load into — started with sdem new; for past designs a separate historical workspace is recommended
--person yes who reviewed and loads — a person, never an agent
--all load every candidate
--only load only these
--exclude load all but these
--keep load the ids listed in a file (one per line, # comments)
--a2 your organisation's A2 dataset (BIAN catalogue), added if the workspace has none
--dry-run check and show what would be loaded; write nothing
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

Example:

sdem load work/history --workspace workspaces/history --person jane.architect --exclude HIS-A3-X

sdem matrix

business → BIAN → application → technology matrices from approved links

sdem matrix [<paths>] [--graph GRAPH] [--md MD]

JSON: native · dry run: sandbox

Argument Required What it is
<paths> architecture datasets and the registry (or --workspace / --graph)
--graph a graph store folder written by sdem build
--md write Markdown to FILE
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--workspace the workspace folder, in place of the list of files (its layer datasets and mappings.json)

Example:

sdem matrix --workspace examples/payment-initiation --md work/matrix.md

sdem migrate

move a workspace to the current metamodel version — recorded migrations applied, checked, written all-or-nothing, recorded

sdem migrate --workspace WORKSPACE --person PERSON [--dry-run] [--to TO] [--rollback]

JSON: native · dry run: native · 👤 a person's own name

Argument Required What it is
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--person yes your name — a person
--dry-run check and show what would change; write nothing
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--to 0.20: the 0.20 form — files named by layer id, records that store type ids, the Data layer of its own; backed up first (DL-12)
--rollback restore the workspace exactly as it was before sdem migrate --to 0.20 (from its backup)

Example:

sdem migrate --workspace workspaces/history --person jane.architect --dry-run

sdem model

maintainers: regenerate and check generated files, acceptance, evaluation, examples

Subcommands: sdem model accept · sdem model baseline-pack · sdem model calibrate · sdem model check · sdem model eval · sdem model examples · sdem model freeze · sdem model integrity · sdem model regenerate · sdem model stability · sdem model status · sdem model usage

sdem model accept

engine acceptance cases

sdem model accept

JSON: wrapped · dry run: sandbox

sdem model baseline-pack

write the metamodel baseline review pack

sdem model baseline-pack

JSON: wrapped · dry run: sandbox

sdem model calibrate

how often each confidence band and evidence class is right on the acceptance cases (AID-E03)

sdem model calibrate

JSON: wrapped · dry run: sandbox

sdem model check

fail if any generated file differs from a fresh generation

sdem model check

JSON: wrapped · dry run: sandbox

sdem model eval

score proposals against approved links

sdem model eval

JSON: wrapped · dry run: sandbox

sdem model examples

re-run use-case examples 1 and 2 (evidence packs and results)

sdem model examples

JSON: wrapped · dry run: sandbox

sdem model freeze

record the core after an approved, versioned change

sdem model freeze

JSON: wrapped · dry run: sandbox

sdem model integrity

a design in the metamodel integrity reference shape — core, extensions, federated and local graphs

sdem model integrity

JSON: wrapped · dry run: sandbox

sdem model regenerate

regenerate every generated document, diagram and schema

sdem model regenerate

JSON: wrapped · dry run: sandbox

sdem model stability

the core against its last freeze (as CI)

sdem model stability

JSON: wrapped · dry run: sandbox

sdem model status

every part of SDEM's metamodel not yet settled, with its source and what would settle it

sdem model status

JSON: wrapped · dry run: sandbox

sdem model usage

what the given workspaces use, and what no workspace uses

sdem model usage

JSON: wrapped · dry run: sandbox

sdem new

start a workspace: the four layers (A2 your BIAN layer) and an empty registry of connections — checked, recorded

sdem new [--workspace WORKSPACE] [--organisation ORGANISATION] --person PERSON [--bian BIAN] [--no-bian] [--form {0.20,0.19}] [--with {bian}] [--core] [--example {clinic-appointments,library-holds}] [--from FROM] [--profile PROFILE] [--hosting HOSTING] [--explore] [--dry-run]

JSON: native · dry run: native · 👤 a person's own name

Argument Required What it is
--workspace the folder to start, e.g. workspaces/payments — inside an organisation, a path from its folder
--organisation alone: start an organisation — the folder NAME with a starter base profile (profiles/NAME-base.json) and workspaces/ (WS-08); with --workspace: start the workspace inside that organisation, its profile extending the base (WS-09, WS-10). Inside an organisation's folder it is found without this
--person yes your name — a person
--bian start with exactly this BIAN layer in A2 (default: A2 empty; sdem aid brings in the domains your design needs from bian/a2-service-domain.json if it exists, else the base BIAN)
--no-bian start without a BIAN layer (add it later); business then does not connect to applications
--form {0.20, 0.19} 0.20 (the default; DL-D9): the Data layer of its own, files named by layer, records that store type ids; 0.19: as SDEM 0.19 made them — migrate later with sdem migrate --to 0.20. SDEM_FORM sets the default
--with {bian} start with an extension's layer — bian: the BIAN layer, empty, sdem aid bringing in the service domains your design needs (needs sdem-bian installed; 0.22, BX-15). Without it a new design is a core one
--core a core-only design: SDEM's core layers A1, A3 and A4 and no BIAN — switch BIAN on later with sdem profile include ext:bian (BX-13)
--example {clinic-appointments, library-holds} start with a synthetic example that ships with SDEM as the baseline (made-up data, for learning) — the same as --from its folder
--from start with this content as the baseline: the four layers, mappings.json and requirements.json found in DIR — checked first, recorded in the ledger and as a decision; only when the workspace is created (a baseline is never re-taken)
--profile start with this organisation profile (kept as sdem-profile.json; its base is still found): its types, rules and names apply, and the layers it adds above A1 or below A4 start empty beside the core four
--hosting start with the network zones of a hosting template — cloud, on_premises or hybrid, or one the organisation profile adds (WS-12, PR-32); without it, sdem aid proposes zones from the organisation's default (cloud first)
--explore also build the knowledge graph and write the pages to explore it — the graph page, the workspace dashboard and SDEM Home (work/sdem/index.html) — in one step; derived outputs only, the workspace is not changed (EX-01)
--dry-run nothing written; what would be written is listed under "would_write"
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

Example:

sdem new --workspace workspaces/payments --person jane.architect

sdem pattern

reference-architecture patterns as structures — extract a draft pattern from the organisation's diagram (draw.io, Visio, PlantUML, Mermaid), compare it with the included one, draw it over a design (PR-21…PR-31)

Subcommands: sdem pattern draw · sdem pattern extract

sdem pattern draw

draw a pattern (PR-25) — with --workspace and --anchor, over that design: which part is there, which is missing

sdem pattern draw [--file FILE] [--id ID] [--workspace WORKSPACE] [--profile PROFILE] [--anchor ANCHOR] [--format {svg,html,json}] [-o O]

JSON: native · dry run: sandbox

Argument Required What it is
--file the file to read
--id a pattern the workspace's profile includes
--workspace the workspace folder — found from the current folder when you are inside one (WS-11)
--profile the organisation profile to use (otherwise the workspace's sdem-profile.json)
--anchor draw over the design from this record
--format {svg, html, json} the output format
-o, --out where to write the result (a file or folder)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem pattern extract

a diagram → a DRAFT pattern file and a report; nothing enters the profile until a person includes it (PR-30)

sdem pattern extract --from FROM [--profile PROFILE] [--workspace WORKSPACE] --id ID [--title TITLE] [--version VERSION] --owner OWNER [--anchor ANCHOR] [--out OUT] [--compare COMPARE] [--dry-run]

JSON: native · dry run: native

Argument Required What it is
--from yes read from this file or folder
--profile the organisation profile to use (otherwise the workspace's sdem-profile.json)
--workspace the workspace folder — found from the current folder when you are inside one (WS-11)
--id yes its id
--title a title
--version its version
--owner yes who owns the pattern (it is theirs to approve)
--anchor the part the pattern applies to (its label or role id)
--out write the draft here (otherwise only the report)
--compare what changed against this pattern file (PR-31)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--dry-run nothing written; what would be written is listed under "would_write"

sdem profile

the organisation's design specification on top of SDEM's metamodel — its own types, attributes, rules, link kinds and names (sdem-profile.json, optionally extending a shared base): check, show, example

Subcommands: sdem profile adopt · sdem profile check · sdem profile example · sdem profile exclude · sdem profile include · sdem profile purge · sdem profile restore · sdem profile show

sdem profile adopt

put the workspace under its sdem-profile.json: the layers it adds start empty, and the adoption is recorded — a person's decision

sdem profile adopt --workspace WORKSPACE --person PERSON --reason REASON [--dry-run]

JSON: native · dry run: native · 👤 a person's own name

Argument Required What it is
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--person yes your name — a person
--reason yes why — recorded with the decision
--dry-run nothing written; what would be written is listed under "would_write"
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem profile check

check the workspace's profile (and the base it extends) against SDEM's metamodel

sdem profile check [--workspace WORKSPACE] [--file FILE]

JSON: native · dry run: sandbox

Argument Required What it is
--workspace the workspace folder — found from the current folder when you are inside one (WS-11)
--file a profile file instead of a workspace
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem profile example

write a synthetic bank base profile, team profiles that extend it (one adds layers), and a team profile with the bank's standards and secure API pattern

sdem profile example --out OUT

JSON: native · dry run: sandbox

Argument Required What it is
--out yes where to write the result (a file or folder)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem profile exclude

switch a standard, pattern or metamodel extension off again — its layers and their connections are archived, not lost (MX-16)

sdem profile exclude <file> --workspace WORKSPACE --person PERSON --reason REASON [--dry-run]

JSON: native · dry run: native · 👤 a person's own name

Argument Required What it is
<file> yes as it is written in the profile's includes, e.g. ext:security
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--person yes your name — a person
--reason yes why — recorded with the decision
--dry-run nothing written; what would be written is listed under "would_write"
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem profile include

add a standard or pattern to what the workspace's profile includes — one shipped with SDEM (sdem:), the organisation's own, or an installed metamodel extension (ext:, MX-10) — a person's decision (PR-38)

sdem profile include <file> --workspace WORKSPACE --person PERSON [--reason REASON] [--dry-run]

JSON: native · dry run: native · 👤 a person's own name

Argument Required What it is
<file> yes "sdem:" for a standard or pattern shipped with SDEM, "ext:" for an installed metamodel extension (e.g. ext:security), or a path from the workspace folder
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--person yes your name — a person
--reason why (kept with the decision)
--dry-run nothing written; what would be written is listed under "would_write"
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem profile purge

delete the archived data of a part that was switched off — never the default; the ids stay retired (EL-16)

sdem profile purge [<file>] [--archive ARCHIVE] --workspace WORKSPACE --person PERSON --reason REASON [--dry-run]

JSON: native · dry run: native · 👤 a person's own name

Argument Required What it is
<file> every archive of this part, e.g. ext:security
--archive one archive
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--person yes your name — a person
--reason yes why — recorded with the decision
--dry-run nothing written; what would be written is listed under "would_write"
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem profile restore

switch a part back on from one of its archives — layers, connections (their old ids) and exceptions, checked first (EL-06)

sdem profile restore --archive ARCHIVE --workspace WORKSPACE --person PERSON --reason REASON [--skip-unfit] [--dry-run]

JSON: native · dry run: native · 👤 a person's own name

Argument Required What it is
--archive yes archive/-.json, as sdem profile exclude wrote it
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--person yes your name — a person
--reason yes why — recorded with the decision
--skip-unfit leave in the archive the connections whose other end has left the design
--dry-run nothing written; what would be written is listed under "would_write"
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem profile show

the merged profile: every type, attribute, rule, link kind and name it adds

sdem profile show [--workspace WORKSPACE] [--file FILE]

JSON: native · dry run: sandbox

Argument Required What it is
--workspace the workspace folder — found from the current folder when you are inside one (WS-11)
--file the file to read
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem query

find records in a graph store

sdem query --graph GRAPH [--level {A1,A2,A3,A4}] [--type TYPE] [--where WHERE] [--neighbours NEIGHBOURS] [--kind KIND] [--direction {in,out,both}] [--unmapped {A1,A2,A3,A4}]

JSON: native · dry run: sandbox

Argument Required What it is
--graph yes a graph store folder written by sdem build
--level {A1, A2, A3, A4} only records in this layer
--type entity type; subtypes included
--where core field or attribute equals value (repeatable)
--neighbours within-level neighbours of a record
--kind with --neighbours: only this relationship kind
--direction {in, out, both} down: what it depends on · up: what depends on it
--unmapped {A1, A2, A3, A4} records with no approved cross-level link where the catalogue expects one
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

Example:

sdem query --graph examples/card-fraud-alerts/graph --level A3

sdem reject

a person rejects proposed links — kept in the registry as rejected with the reason, so they are not proposed again and nothing is inferred in their place

sdem reject <ids> --proposals PROPOSALS [--workspace WORKSPACE] [--registry REGISTRY] --reviewer REVIEWER [--reason REASON] [--date DATE] [--dry-run]

JSON: native · dry run: native · 👤 a person's own name

Argument Required What it is
<ids> yes proposal id(s) from sdem review
--proposals yes a proposals file written by sdem link (proposals.json)
--workspace workspace folder (its mappings.json)
--registry the registry, if not /mappings.json
--reviewer, --person yes your name — a person (CTL-21)
--reason why the link is wrong — required, and kept
--date the date (default today)
--dry-run show the record; write nothing
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

Example:

sdem reject P-RUN-018 --proposals work/links/proposals.json --workspace work/est --reviewer jane.architect --reason "the ingress only terminates the channel"

sdem releases

what each SDEM release changed: migrations, breaking changes, deprecations and the actions to take

sdem releases [--since SINCE]

JSON: native · dry run: sandbox

Argument Required What it is
--since only releases after this one, e.g. the version you use
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

Example:

sdem releases --since 0.15.0

sdem requirements

requirements and constraints the workspace must keep meeting, their measurements, and what a change does to them: in scope, satisfied, breached, not evaluable — and the risk findings

Subcommands: sdem requirements check · sdem requirements confirm · sdem requirements evaluate · sdem requirements list · sdem requirements measure · sdem requirements propose · sdem requirements retire · sdem requirements show · sdem requirements trace

sdem requirements check

the registry against its schema and the workspace

sdem requirements check --workspace WORKSPACE

JSON: native · dry run: sandbox

Argument Required What it is
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem requirements confirm

a person confirms proposed requirements — only confirmed requirements are evaluated as obligations

sdem requirements confirm <id> --workspace WORKSPACE --person PERSON [--note NOTE]

JSON: native · dry run: sandbox · 👤 a person's own name

Argument Required What it is
<id> yes the requirement ids to confirm
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--person yes your name — a person's own, never an agent's (CTL-21)
--note a note, recorded with it

sdem requirements evaluate

what a change does to the requirements: in scope, satisfied, breached, not evaluable — and the risk findings

sdem requirements evaluate --workspace WORKSPACE [--event EVENT] [--record RECORD] [--change {modify,rehost,replace,retire}] [--proposed PROPOSED]

JSON: native · dry run: sandbox

Argument Required What it is
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--event a change event (its stored impact and the change set it came from)
--record or: a record you plan to change
--change {modify, rehost, replace, retire} with --record: the kind of change
--proposed with --record: the record that will replace it (e.g. the new platform)

sdem requirements list

the requirements, with status and subject

sdem requirements list --workspace WORKSPACE [--layer {A1,A2,A3,A4}] [--status STATUS]

JSON: native · dry run: sandbox

Argument Required What it is
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--layer {A1, A2, A3, A4} the layer: A1 business, A2 BIAN, A3 application, A4 technology (or a layer your profile adds)
--status only those with this status

sdem requirements measure

record measurements — stated values with their evidence, current or proposed

sdem requirements measure --workspace WORKSPACE [--from FROM] [--record RECORD] [--metric METRIC] [--value VALUE] [--unit UNIT] [--state {current,proposed}] [--evidence EVIDENCE …] --person PERSON [--agent AGENT]

JSON: native · dry run: sandbox · 👤 a person's own name

Argument Required What it is
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--from measurements from a file (a list, or {"measurements": [...]}: record, metric, value, unit, state, evidence) — each recorded against you
--record the record id
--metric what was measured (e.g. availability)
--value the measured value
--unit its unit (e.g. %%, ms)
--state {current, proposed} current: measured now · proposed: expected in the proposed architecture
--evidence the evidence, as kind:reference (e.g. deployment_design:PAY-REHOST#cutover)
--person yes your name — a person's own, never an agent's (CTL-21)
--agent the agent acting, by its name (e.g. sdem-a3-agent)

sdem requirements propose

add requirements, or new versions, as proposed

sdem requirements propose <file> --workspace WORKSPACE --person PERSON [--agent AGENT]

JSON: native · dry run: sandbox · 👤 a person's own name

Argument Required What it is
<file> yes a JSON requirement, a list of them, or a registry ({"requirements": [...]}) — version and history are set here
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--person yes your name — a person's own, never an agent's (CTL-21)
--agent the agent acting, by its name (e.g. sdem-a3-agent)

sdem requirements retire

a person retires requirements

sdem requirements retire <id> --workspace WORKSPACE --person PERSON --reason REASON

JSON: native · dry run: sandbox · 👤 a person's own name

Argument Required What it is
<id> yes the requirement ids to retire
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--person yes your name — a person's own, never an agent's (CTL-21)
--reason yes why — recorded with the decision

sdem requirements show

one requirement: condition, evidence, history and its measurements

sdem requirements show <id> --workspace WORKSPACE

JSON: native · dry run: sandbox

Argument Required What it is
<id> yes the requirement id (e.g. REQ-001)
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem requirements trace

a requirement through the layers: its subject and allocations, what they depend on and serve, and the requirements it derives from

sdem requirements trace <id> --workspace WORKSPACE

JSON: native · dry run: sandbox

Argument Required What it is
<id> yes the requirement id (e.g. REQ-001)
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem review

list proposed links for review, weakest first

sdem review <proposals> [--graph GRAPH] [--names NAMES …] [--workspace WORKSPACE]

JSON: native · dry run: sandbox

Argument Required What it is
<proposals> yes proposals file(s), e.g. from sdem link --out
--graph graph store to show record names
--names architecture datasets to show record names
--workspace workspace folder — show record names from its datasets
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

Example:

sdem review work/links/proposals.json

sdem status

where a design is and what to do next: what blocks it, what waits on a value or a person's decision, what is worth a look — with the next commands and who runs each (ST-01)

sdem status --workspace WORKSPACE

JSON: native · dry run: sandbox

Argument Required What it is
--workspace yes the workspace folder — found from the current folder when you are inside one
--json the result as JSON

Example:

sdem status --workspace examples/payment-initiation

sdem trace

trace what a record depends on (down) or what depends on it (up)

sdem trace <entity> [<paths>] [--graph GRAPH] [--status STATUS] [--direction {down,up,both,downstream,upstream,all}] [--tree] [--only-gaps] [--to {A1,A2,A3,A4}] [--csv CSV] [--direct-only] [--follow-composition] [--projection PROJECTION]

JSON: native · dry run: sandbox

Argument Required What it is
<entity> yes instance id to start from — or a whole layer: A1, A2, A3 or A4
<paths> architecture datasets and mapping documents, any order (or use --graph)
--graph read a graph store (sdem build) instead of architecture datasets
--status mapping statuses to treat as arrows
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--direction {down, up, both, downstream, upstream, all} down: what it depends on; up: what depends on it; both (also: downstream, upstream, all)
--tree a whole layer: one tree per record (default: summary, gaps and a table of chains)
--only-gaps a whole layer: only the records with no connection in that direction
--to {A1, A2, A3, A4} a whole layer: stop the chains at this layer
--csv a whole layer: also write the chains as CSV
--direct-only only the links between layers — not through a record's whole or parts in its own layer (the full trace is the default, FT-03)
--follow-composition the default now (FT-03): a chain continues through part-whole links inside a layer — kept so older commands still work
--projection also follow the links of an AID projection package, labelled PROJECTED (AID-O06)
--workspace the workspace folder, in place of the list of files (its layer datasets and mappings.json)

Example:

sdem trace CAP-310 --graph examples/card-fraud-alerts/graph

sdem transform

transform past designs — a Confluence export, a folder, or one Word, Excel, Markdown or CSV file — into candidate architecture entities: inspect it, extract (rules; on-device OCR for pictures)

Subcommands: sdem transform inspect · sdem transform rules · sdem transform run

sdem transform inspect

what is in the export and which rules read it — structure only

sdem transform inspect <export> [--rules RULES] [--anonymous] [--ocr {auto,vision,tesseract,off}]

JSON: native · dry run: sandbox

Argument Required What it is
<export> yes the export folder (e.g. a Confluence space export)
--rules your copy of the rules (make one with sdem transform rules -o FILE)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--anonymous folder layout only, names replaced by F1, F2 … — safe to describe to others
--ocr {auto, vision, tesseract, off} read text in pictures: macOS Vision (built in), Tesseract (if installed), auto, or off

sdem transform rules

write a copy of SDEM's transform rules to tune for your organisation's designs (then pass it with --rules)

sdem transform rules -o O

JSON: wrapped · dry run: sandbox

Argument Required What it is
-o, --out yes e.g. rules/transform-rules.json in your workspace repository

sdem transform run

transform the export: write candidate datasets, extraction.json, design-index.json and extraction-report.md

sdem transform run <export> -o O [--rules RULES] [--known KNOWN …] [--model-id MODEL_ID] [--ocr {auto,vision,tesseract,off}]

JSON: native · dry run: sandbox

Argument Required What it is
<export> yes the export folder (e.g. a Confluence space export)
-o, --out yes where to write the result (a file or folder)
--rules your copy of the rules (make one with sdem transform rules -o FILE)
--known existing SDEM datasets: their names are found in the text and flagged as the same record
--model-id name for the candidate datasets (default: the Confluence space)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--ocr {auto, vision, tesseract, off} read text in pictures: macOS Vision (built in), Tesseract (if installed), auto, or off

sdem types

what you may write: each layer's kinds of record, their fields (type, required, allowed values) and allowed links; the requirement and change-set formats — your profile's included with --workspace

sdem types [<what>] [--workspace WORKSPACE] [-o O] [--ids] [--kit KIT]

JSON: native · dry run: sandbox

Argument Required What it is
<what> a layer (A1), a type (A1.BusinessProcess), requirement, change-set, or authoring (the guide for an outside author — an AI assistant without the CLI); nothing: the overview
--workspace include the workspace's organisation profile
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
-o, --out with authoring: write the guide to this file
--ids every layer's and type's id — the name that never changes (ST-01, ST-02) — beside the name you read (A3.ApplicationComponent)
--kit with authoring: write the guide AND SDEM itself as a zip into this folder — everything an outside author needs, to write the package and to check it

Example:

sdem types A1.BusinessProcess

sdem upgrade

before you switch SDEM versions: run the new version, installed side by side, against your workspaces — migrations, profile, deprecations, agent files, actions; writes nothing

Subcommands: sdem upgrade check

sdem upgrade check

what upgrading to this version means for your workspaces: migrations, profile, deprecations, agent files, actions — writes nothing

sdem upgrade check [--workspace WORKSPACE] [--root ROOT] [--repo REPO] [--from FROM]

JSON: native · dry run: sandbox

Argument Required What it is
--workspace the workspace folder — found from the current folder when you are inside one (WS-11)
--root every workspace in a folder
--repo your workspace repository (requirements.txt, AGENTS.md); default the current folder
--from the version you use now (default: read from requirements.txt)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem validate

validate a relationship document (registry or proposals)

sdem validate <paths> [--registry REGISTRY] [--catalogue CATALOGUE] [--strict]

JSON: native · dry run: sandbox

Argument Required What it is
<paths> yes mapping JSON file(s)
--registry relationship registry (default: bundled)
--catalogue entity catalogue JSON; every endpoint must exist in it
--strict treat warnings as errors (except draft warnings on proposed records)
--json emit a JSON report instead of text
--workspace the workspace folder, in place of the list of files (its layer datasets and mappings.json)

Example:

sdem validate --strict --workspace examples/payment-initiation

sdem view

write the HTML picture of a graph store, optionally with a projection

sdem view --graph GRAPH [-o O] [--projection PROJECTION] [--dashboard DASHBOARD] [--home HOME]

JSON: native · dry run: sandbox

Argument Required What it is
--graph yes a graph store folder written by sdem build
-o, --out default /view.html
--projection overlay an AID projection package, drawn dashed and labelled PROJECTED (AID-O06)
--dashboard the workspace dashboard to link back to (default: /dashboard.html when the store is the workspace's own graph and that page exists)
--home SDEM Home (index.html written by sdem home) to link back to
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

Example:

sdem view --graph examples/card-fraud-alerts/graph -o work/view.html

sdem viewpoint

the viewpoints SDEM defines, as data — what each plate draws and leaves out, and the ArchiMate element each kind of record is drawn as (list, show, check)

Subcommands: sdem viewpoint check · sdem viewpoint list · sdem viewpoint show

sdem viewpoint check

check every viewpoint and the ArchiMate notation against SDEM's metamodel (ARV-16, ARV-21)

sdem viewpoint check

JSON: native · dry run: sandbox

Argument Required What it is
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem viewpoint list

the viewpoints SDEM defines

sdem viewpoint list

JSON: native · dry run: sandbox

Argument Required What it is
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem viewpoint show

one viewpoint: its plates, what each draws and leaves out, its layouts

sdem viewpoint show <name>

JSON: native · dry run: sandbox

Argument Required What it is
<name> yes its name
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}

sdem work

agent platform: plan, list and claim work items

Subcommands: sdem work block · sdem work cancel · sdem work claim · sdem work list · sdem work plan · sdem work reopen

sdem work block

a work item cannot proceed — say why

sdem work block <id> --workspace WORKSPACE --agent AGENT --person PERSON [--note NOTE]

JSON: native · dry run: sandbox · 👤 a person's own name

Argument Required What it is
<id> yes the work item id (e.g. W-001) — sdem work list shows them
--workspace yes the workspace folder (a1…a4 datasets, mappings.json)
--agent yes the agent: sdem-a1-business, sdem-a2-bian, sdem-a3-application, sdem-a4-technology, sdem-orchestrator, or 'architect' for a person working without an agent
--person yes the person behind the agent (CTL-20)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--note a note, recorded with it

sdem work cancel

drop a work item — say why

sdem work cancel <id> --workspace WORKSPACE --agent AGENT --person PERSON [--note NOTE]

JSON: native · dry run: sandbox · 👤 a person's own name

Argument Required What it is
<id> yes the work item id (e.g. W-001) — sdem work list shows them
--workspace yes the workspace folder (a1…a4 datasets, mappings.json)
--agent yes the agent: sdem-a1-business, sdem-a2-bian, sdem-a3-application, sdem-a4-technology, sdem-orchestrator, or 'architect' for a person working without an agent
--person yes the person behind the agent (CTL-20)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--note a note, recorded with it

sdem work claim

a layer agent takes a work item

sdem work claim <id> --workspace WORKSPACE --agent AGENT --person PERSON [--note NOTE]

JSON: native · dry run: sandbox · 👤 a person's own name

Argument Required What it is
<id> yes the work item id (e.g. W-001) — sdem work list shows them
--workspace yes the workspace folder (a1…a4 datasets, mappings.json)
--agent yes the agent: sdem-a1-business, sdem-a2-bian, sdem-a3-application, sdem-a4-technology, sdem-orchestrator, or 'architect' for a person working without an agent
--person yes the person behind the agent (CTL-20)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--note a note, recorded with it

sdem work list

work items

sdem work list --workspace WORKSPACE [--layer {A1,A2,A3,A4}] [--status {open,in_progress,done,blocked,cancelled}]

JSON: native · dry run: sandbox

Argument Required What it is
--workspace yes the workspace folder (a1…a4 datasets, mappings.json)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--layer {A1, A2, A3, A4} the layer: A1 business, A2 BIAN, A3 application, A4 technology (or a layer your profile adds)
--status {open, in_progress, done, blocked, cancelled} only those with this status

sdem work plan

orchestrator: turn a change event's impact into work items

sdem work plan --event EVENT --workspace WORKSPACE --agent AGENT --person PERSON [--max-rounds MAX_ROUNDS]

JSON: native · dry run: sandbox · 👤 a person's own name

Argument Required What it is
--event yes a change event id (e.g. EVT-001)
--workspace yes the workspace folder (a1…a4 datasets, mappings.json)
--agent yes the agent: sdem-a1-business, sdem-a2-bian, sdem-a3-application, sdem-a4-technology, sdem-orchestrator, or 'architect' for a person working without an agent
--person yes the person behind the agent (CTL-20)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--max-rounds stop and ask the architect after this many rounds (default and most 3; only the architect may raise it)

sdem work reopen

return a work item to open

sdem work reopen <id> --workspace WORKSPACE --agent AGENT --person PERSON [--note NOTE]

JSON: native · dry run: sandbox · 👤 a person's own name

Argument Required What it is
<id> yes the work item id (e.g. W-001) — sdem work list shows them
--workspace yes the workspace folder (a1…a4 datasets, mappings.json)
--agent yes the agent: sdem-a1-business, sdem-a2-bian, sdem-a3-application, sdem-a4-technology, sdem-orchestrator, or 'architect' for a person working without an agent
--person yes the person behind the agent (CTL-20)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--note a note, recorded with it

sdem workbench

the workbench for one workspace: one offline page — the solution workspace (designs, data, knowledge graph, trace and impact, reviews and changes, documents and evidence) and the SDEM framework (metamodel, configuration, rules, health)

sdem workbench --workspace WORKSPACE [-o O]

JSON: native · dry run: sandbox

Argument Required What it is
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
-o, --out the page to write (default work/workbench.html)
--json print a summary of what the page shows (the page is written too)

Example:

sdem workbench --workspace examples/payment-initiation -o work/workbench.html

sdem zones

a workspace's network zones: each zone and what it holds, how the zones connect (ZC-01…ZC-03, worked out from the zone structure), how one shape reaches another through them (ZC-04), what a lost zone connection cuts off (ZC-05, sdem zones cut) and the layout every drawing of A4 uses (--layout) — read-only

sdem zones --workspace WORKSPACE [--layout] [--environment ENVIRONMENT] [--headings]

JSON: native · dry run: sandbox

Argument Required What it is
--workspace yes the workspace folder — found from the current folder when you are inside one (WS-11)
--json the result as JSON on stdout; failures as {"error": {code, exit, message, hint, details}}
--layout the deployment-zones layout: zone regions, where each shape sits, the zone arrows (sdem/zone_layout.py) — what every drawing of A4 uses
--environment with --layout: the one environment drawn (name or kind; default production; all for every one)
--headings with --layout: networks shown by their zone's heading (address range), the one environment not drawn as a shape — as DESNRE draws A4 (ZL-03)

Example:

sdem zones --workspace examples/payment-initiation