smd-engine 0.7.7__tar.gz → 0.7.8__tar.gz
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.
- {smd_engine-0.7.7 → smd_engine-0.7.8}/.github/workflows/ci.yml +38 -1
- {smd_engine-0.7.7 → smd_engine-0.7.8}/CHANGELOG.md +8 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/PKG-INFO +3 -3
- {smd_engine-0.7.7 → smd_engine-0.7.8}/README.md +2 -2
- {smd_engine-0.7.7 → smd_engine-0.7.8}/README_ru.md +2 -2
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/spectra_coffee/README.md +1 -1
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/spectra_coffee/bank.story.yaml +1 -1
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/spectra_coffee/buyer.story.yaml +1 -1
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/spectra_coffee/owner.story.yaml +1 -1
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/spectra_coffee/spectra-coffee-c1.board.yaml +3 -2
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/spectra_coffee/successor-premortem.story.yaml +1 -1
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/spectra_coffee/taxonomies.yaml +2 -2
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/data-model.md +4 -4
- {smd_engine-0.7.7 → smd_engine-0.7.8}/lenses/khaprov-levels.md +3 -3
- {smd_engine-0.7.7 → smd_engine-0.7.8}/procedures/stakeholder-ontology.md +2 -2
- {smd_engine-0.7.7 → smd_engine-0.7.8}/pyproject.toml +1 -1
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/apply.py +16 -1
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/light.py +3 -1
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/markdown.py +5 -3
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/svg.py +4 -2
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/text.py +13 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/schemas/board_set.schema.json +1 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_apply.py +31 -0
- smd_engine-0.7.8/tests/test_render_header.py +107 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_render_ru_values.py +5 -4
- {smd_engine-0.7.7 → smd_engine-0.7.8}/uv.lock +1 -1
- {smd_engine-0.7.7 → smd_engine-0.7.8}/.claude/agents/smd-game-technician.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/.claude/agents/smd-methodologist.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/.claude/agents/smd-visionary.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/.claude/commands/procedure.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/.flake8 +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/.github/workflows/release.yml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/.gitignore +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/.python-version +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/CONTRIBUTING.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/LICENSE +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example/bakeries-c1.board.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example/bakeries-c2.board.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example/deal/answers_boris.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example/deal/answers_gleb.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example/deal/answers_vera.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example/deal/pack.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example/golden/README.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example/golden/bakeries-c2-expected.board.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example/golden/s3_transcript.txt +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example/patches/bakeries-c2-1.patch.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example/sources.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example/task/answers_ana.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example/task/answers_ben.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example/task/answers_cy.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example/task/pack.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example/task/replies_ana.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example/task/replies_ben.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example/task/transcript_ben.txt +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example/two-boards-c1.board.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example_ru/pekarni-c1.board.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example_ru/pekarni-c2.board.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example_ru/pekarni-oru-c1.board.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example_ru/pekarnya-holding-c1.board.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/example_ru/sources.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/cases/spectra_coffee/sources.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/README.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/changelog-0.2-0.5.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/checks.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/commands.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/deal-mode.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/first-board.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/glossary.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/hypotheses.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/method/README.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/method/encodable.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/method/formal-stance.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/method/odi-problematization.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/method/reconciliation.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/method/robustness-rules.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/method/roles-and-actors.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/method/smd-classic.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/method/sources.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/method/structural-moves.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/method/triz-systems.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/plan.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/profiles.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/red-lines.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/stages.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/stories.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/docs/task-packs.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/lenses/README.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/lenses/beer-viable-system.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/lenses/design-chain.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/lenses/fliamer-diamond.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/lenses/khaprov-ontology.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/lenses/scamper-check.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/lenses/schukin-boundaries.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/lenses/schukin-interface-tax.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/lenses/three-positions.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/lenses/triz-contradictions.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/procedures/README.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/procedures/field-result.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/procedures/functional-plan.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/procedures/ingest-transcript.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/procedures/positional-construction.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/procedures/problematization.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/procedures/qualification-pass.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/procedures/reflexive-protocol.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/procedures/small-situation.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/procedures/solo-session.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/procedures/story.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/procedures/task-diff.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/procedures/task-pack.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/procedures/theses-to-board.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/procedures/visionary-tract.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/profiles/classic-two-boards.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/profiles/management-four-boards.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/profiles/program-three-boards.yaml +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/roles/README.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/roles/actors.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/roles/game-technician.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/roles/methodologist.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/roles/researcher.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/roles/visionary.md +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/__init__.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/agree.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/cli.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/cli_boards.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/cli_session.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/cli_story.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/compare.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/deal/__init__.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/deal/agenda_views.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/deal/cli.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/deal/consent.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/deal/ledger.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/deal/overlap.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/deal/seal_cmd.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/deal/sealed.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/deal/signing.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/deal/verdict.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/deal/verdict_cmd.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/deal/verify.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/deal/verify_cmd.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/deal/verify_diff.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/deal/verify_extra.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/deal/verify_report.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/deal/views.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/eval.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/leverage.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/migrate.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/nextstep.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/pack.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/profile.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/profile_model.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/profile_parse.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/records.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/redline.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/__init__.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/assets/frames.css +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/assets/frames.js +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/assets/graph.css +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/assets/graph.js +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/frames.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/frames_page.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/frames_text.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/graph.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/graph_ui.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/html.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/index.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/layout.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/mermaid.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/sessionflow.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/render/vault.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/revise.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/scaffold.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/schemas/__init__.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/schemas/board_patch.schema.json +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/schemas/source_manifest.schema.json +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/schemas/story.schema.json +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/schemas/task_acceptance.schema.json +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/schemas/task_answers.schema.json +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/schemas/task_pack.schema.json +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/schemas/task_replies.schema.json +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/schemas/task_sealed.schema.json +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/schemas/task_verdicts.schema.json +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/schemas/taxonomies.schema.json +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/screen.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/sources.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/status.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/story/__init__.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/story/check.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/story/gaps.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/story/model.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/story/numbers.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/story/paths.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/story/render.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/__init__.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/acceptance.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/agenda.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/asking.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/assets/task.css +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/assets/task.js +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/bounds.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/check.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/cli.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/deal_check.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/deal_items.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/deal_labels.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/deal_render.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/deal_web.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/diff.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/diff_html.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/diff_md.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/labels.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/model.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/names.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/overwrite.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/pack_html.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/pack_md.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/pairs.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/positions.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/ranges.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/refs.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/svg.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/task/web.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/validate/__init__.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/validate/ai.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/validate/context.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/validate/graph.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/validate/hints.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/validate/hypotheses.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/validate/management.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/validate/manifest.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/validate/ontology.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/validate/redlines.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/validate/signoffs.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/validate/structure.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/validate/taxonomies.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/validate/theses.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/validate/tract.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/src/smd_engine/verdict.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/conftest.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/deal_helpers.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/story_helpers.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_action_program.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_agree.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_ai_roles.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_beer_layer.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_beer_render.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_compare.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_deal_acceptance.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_deal_added.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_deal_agenda_leaks.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_deal_bindings.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_deal_golden.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_deal_items.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_deal_positions.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_deal_ranges.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_deal_sealed.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_deal_signed.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_deal_verdict.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_deal_verify.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_deal_verify_diff.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_deal_verify_forged.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_deal_views.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_eval.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_export.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_frames.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_graph.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_hypothesis_standard.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_ingestion.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_lenses.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_management.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_migrate.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_nextstep.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_ontology_continuum.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_procedure_checks.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_procedures.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_profile.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_publish.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_record_boards.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_red_lines.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_render_and_cli.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_render_carries.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_render_fields.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_render_ru_pages.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_revise.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_robustness.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_scaffold.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_status.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_story_case.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_story_check.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_story_numbers.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_story_paths.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_task.py +0 -0
- {smd_engine-0.7.7 → smd_engine-0.7.8}/tests/test_validate.py +0 -0
|
@@ -25,7 +25,7 @@ jobs:
|
|
|
25
25
|
# Python tooling - only if pyproject.toml exists
|
|
26
26
|
- name: Install uv
|
|
27
27
|
if: hashFiles('pyproject.toml') != ''
|
|
28
|
-
uses: astral-sh/setup-uv@
|
|
28
|
+
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
29
29
|
with:
|
|
30
30
|
enable-cache: true
|
|
31
31
|
cache-dependency-glob: "uv.lock"
|
|
@@ -113,3 +113,40 @@ jobs:
|
|
|
113
113
|
vuln-type: 'os,library'
|
|
114
114
|
severity: 'CRITICAL,HIGH'
|
|
115
115
|
cache: 'false'
|
|
116
|
+
|
|
117
|
+
# Node tooling - only if package-lock.json exists. After Trivy, so the scan sees
|
|
118
|
+
# the repository, not node_modules or the build output. Node 22 matches the
|
|
119
|
+
# deploy workflows. The build is `npm run ci:build` when the repo defines it (a
|
|
120
|
+
# build that needs no secrets), else the `npm run build` a deploy runs, so a
|
|
121
|
+
# dependency PR that breaks the site fails here instead of in the deploy.
|
|
122
|
+
- name: Set up Node
|
|
123
|
+
if: hashFiles('package-lock.json') != ''
|
|
124
|
+
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
125
|
+
with:
|
|
126
|
+
node-version: 22
|
|
127
|
+
cache: npm
|
|
128
|
+
|
|
129
|
+
- name: Install Node Dependencies
|
|
130
|
+
if: hashFiles('package-lock.json') != ''
|
|
131
|
+
run: npm ci
|
|
132
|
+
|
|
133
|
+
- name: Build (Node)
|
|
134
|
+
if: hashFiles('package-lock.json') != ''
|
|
135
|
+
run: |
|
|
136
|
+
# Last resort when no secret-free build exists (marker file)
|
|
137
|
+
if [ -f ".ci-skip-build" ]; then
|
|
138
|
+
echo "Build skipped (.ci-skip-build marker found)"
|
|
139
|
+
exit 0
|
|
140
|
+
fi
|
|
141
|
+
if [ "$(npm pkg get 'scripts.ci:build')" != "{}" ]; then
|
|
142
|
+
script="ci:build"
|
|
143
|
+
elif [ "$(npm pkg get scripts.build)" != "{}" ]; then
|
|
144
|
+
script="build"
|
|
145
|
+
else
|
|
146
|
+
echo "No build script, skipping."
|
|
147
|
+
exit 0
|
|
148
|
+
fi
|
|
149
|
+
# Tracked editor-rule symlinks (.cursorrules, .clinerules) have absolute
|
|
150
|
+
# targets that do not exist on the runner; next build stops on them.
|
|
151
|
+
find . -maxdepth 1 -xtype l -print -delete
|
|
152
|
+
npm run "$script"
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Dates are those of the tag. All tags v0.2.1 to v0.3.5 were made on 2026-10-29. The version in `pyproject.toml` stayed at 0.2.0 through v0.2.4 and at 0.3.0 from v0.3.0 to v0.3.5; 0.3.6 is the first release whose package version equals its tag.
|
|
4
4
|
|
|
5
|
+
## 0.7.8 - 2026-11-14
|
|
6
|
+
|
|
7
|
+
The header of a patched board names its current state, and tier 1 has its Russian name «намерение». Schema 0.3 gains an optional field; every record, patch, pack and ledger of 0.7.7 loads as before.
|
|
8
|
+
|
|
9
|
+
- `smd apply` sets `state.date` to the patch's `date` when the patch has one; a new `date` key goes after `state.version`. The board schema takes the optional `state.date` (a date, like the other dates of a record). The result stays deterministic and reads back byte for byte.
|
|
10
|
+
- The header of the screen (SVG, also `--light` and the frames) and of the Markdown digest names the cycle by `state.version` when it is set and gives `state.date` when it is set: a board patched to 5.31 on 14 November shows `цикл 5.31 · черновик · 2026-11-14`, not the cycle number and the date the record was made. A record without `state.version` and `state.date` renders byte for byte as in 0.7.7 (`tests/test_render_header.py` pins every example board).
|
|
11
|
+
- Tier 1 is «намерение» / "intent": the intent of every position regarding the business. «Замысел» names only the controlling instance, the owner's (or founder's), «замысел собственника». The example case `spectra_coffee` (taxonomy, board 1.0.3 and its stories), `docs/data-model.md`, lens `khaprov-levels` 0.2.4, procedure `stakeholder-ontology` 0.2.1 and the case's README say so; the 0.7.7 entry below records the earlier name.
|
|
12
|
+
|
|
5
13
|
## 0.7.7 - 2026-11-09
|
|
6
14
|
|
|
7
15
|
The meanings of the six tiers in the examples, a lens and a procedure (the case owner, 9 November 2026). No code change in behaviour; schema 0.3 and every record, pack and ledger of 0.7.6 load as before.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: smd-engine
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.8
|
|
4
4
|
Summary: Records, checks and renderings for SMD-style thinking sessions (three boards, cycles, qualifications)
|
|
5
5
|
Project-URL: Homepage, https://github.com/viberesearch/smd-engine
|
|
6
6
|
Project-URL: Repository, https://github.com/viberesearch/smd-engine
|
|
@@ -39,7 +39,7 @@ New here? Start with [docs/first-board.md](docs/first-board.md), a walkthrough f
|
|
|
39
39
|
|
|
40
40
|
The default screen is the three-board screen of the MIPT program "Третья ступень" (org-activity, object and situation boards). A profile can lay out other boards: `classic-two-boards` is the classic org-activity and object-ontological pair. Terms that belong to the program and not to the classic method are marked as such in `roles/README.md`.
|
|
41
41
|
|
|
42
|
-
Version 0.7.
|
|
42
|
+
Version 0.7.8 (`pyproject.toml`), schema 0.3. Python 3.14. The engine proposes and checks; a human decides, by sign-offs that each state a function.
|
|
43
43
|
|
|
44
44
|
## Install
|
|
45
45
|
|
|
@@ -150,7 +150,7 @@ A real case lives in the repository of its object of thinking; this repository h
|
|
|
150
150
|
It runs the engine without a local copy, pinned to a release, for example in CI:
|
|
151
151
|
|
|
152
152
|
```bash
|
|
153
|
-
uvx --from git+https://github.com/viberesearch/smd-engine@v0.7.
|
|
153
|
+
uvx --from git+https://github.com/viberesearch/smd-engine@v0.7.8 smd validate . --sources sources.yaml --strict
|
|
154
154
|
```
|
|
155
155
|
|
|
156
156
|
Generated drawings (`smd publish`) are build output and are not committed. Records of an older schema are moved with `smd migrate`.
|
|
@@ -14,7 +14,7 @@ New here? Start with [docs/first-board.md](docs/first-board.md), a walkthrough f
|
|
|
14
14
|
|
|
15
15
|
The default screen is the three-board screen of the MIPT program "Третья ступень" (org-activity, object and situation boards). A profile can lay out other boards: `classic-two-boards` is the classic org-activity and object-ontological pair. Terms that belong to the program and not to the classic method are marked as such in `roles/README.md`.
|
|
16
16
|
|
|
17
|
-
Version 0.7.
|
|
17
|
+
Version 0.7.8 (`pyproject.toml`), schema 0.3. Python 3.14. The engine proposes and checks; a human decides, by sign-offs that each state a function.
|
|
18
18
|
|
|
19
19
|
## Install
|
|
20
20
|
|
|
@@ -125,7 +125,7 @@ A real case lives in the repository of its object of thinking; this repository h
|
|
|
125
125
|
It runs the engine without a local copy, pinned to a release, for example in CI:
|
|
126
126
|
|
|
127
127
|
```bash
|
|
128
|
-
uvx --from git+https://github.com/viberesearch/smd-engine@v0.7.
|
|
128
|
+
uvx --from git+https://github.com/viberesearch/smd-engine@v0.7.8 smd validate . --sources sources.yaml --strict
|
|
129
129
|
```
|
|
130
130
|
|
|
131
131
|
Generated drawings (`smd publish`) are build output and are not committed. Records of an older schema are moved with `smd migrate`.
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
† - термин программы «Третья ступень», не классической методологии (список ниже, в разделе «Слова программы»).
|
|
18
18
|
|
|
19
|
-
Версия 0.7.
|
|
19
|
+
Версия 0.7.8 (`pyproject.toml`), схема 0.3. Python 3.14. Программа предлагает и проверяет; решает человек, подписями, у каждой из которых названа функция.
|
|
20
20
|
|
|
21
21
|
## Установка
|
|
22
22
|
|
|
@@ -127,7 +127,7 @@ uv run smd frames cases/example_ru/pekarni-c2.board.yaml -o out/frames.html
|
|
|
127
127
|
Движок запускается без локальной копии, с закреплённой версией, например в CI:
|
|
128
128
|
|
|
129
129
|
```bash
|
|
130
|
-
uvx --from git+https://github.com/viberesearch/smd-engine@v0.7.
|
|
130
|
+
uvx --from git+https://github.com/viberesearch/smd-engine@v0.7.8 smd validate . --sources sources.yaml --strict
|
|
131
131
|
```
|
|
132
132
|
|
|
133
133
|
Порождённые рисунки (`smd publish`) - результат сборки, их не коммитят. Записи старой схемы переводят командой `smd migrate`.
|
|
@@ -37,7 +37,7 @@ The six tiers of the OST ontology (intent, business model, business entity, prod
|
|
|
37
37
|
|
|
38
38
|
| Tier | What the specification has | What this case adds |
|
|
39
39
|
|---|---|---|
|
|
40
|
-
| 1 intent (of each position; here the founder's
|
|
40
|
+
| 1 intent, «намерение» (of each position; here the founder's is the controlling instance, «замысел собственника») | nothing. The mission and values in the identity file are the shop's declared mission, not the owner's programme | the goal `goal-handover`, the founder's red line, the shareable ontology `O1` |
|
|
41
41
|
| 2 business model | L0 (target cohort, desired perception), prices and margins of L3 | `m-model`, an unchecked revenue estimate, `fact-price` |
|
|
42
42
|
| 3 business entity | nothing about the legal person. Supplier and sourcing requirements (L4, L5) touch contracts | trademark held by the founder, lease with a change-of-control consent, the buyer and the bank |
|
|
43
43
|
| 4 product | L3 product specifications (6 items; their cost and price are tier 2) | `fn-shot`, `fact-spec` |
|
|
@@ -5,7 +5,7 @@ schema_version: "0.1"
|
|
|
5
5
|
id: spectra-bank-scqa
|
|
6
6
|
title: "Вымышленный пример: история для банка покупателя «Спектры Кофе», SCQA, черновик ИИ"
|
|
7
7
|
boards:
|
|
8
|
-
- {id: spectra-coffee-c1, version: "1.0.
|
|
8
|
+
- {id: spectra-coffee-c1, version: "1.0.3", sha256: 38217d92a7e923a824aa32caa99d404fe70db996e3921cedbe597c28893dc136}
|
|
9
9
|
audience: place-bank
|
|
10
10
|
protagonist: place-bank
|
|
11
11
|
form: scqa
|
|
@@ -6,7 +6,7 @@ schema_version: "0.1"
|
|
|
6
6
|
id: spectra-buyer-scqa
|
|
7
7
|
title: "Вымышленный пример: история для покупателя «Спектры Кофе», SCQA, черновик ИИ"
|
|
8
8
|
boards:
|
|
9
|
-
- {id: spectra-coffee-c1, version: "1.0.
|
|
9
|
+
- {id: spectra-coffee-c1, version: "1.0.3", sha256: 38217d92a7e923a824aa32caa99d404fe70db996e3921cedbe597c28893dc136}
|
|
10
10
|
audience: place-buyer
|
|
11
11
|
protagonist: place-buyer
|
|
12
12
|
form: scqa
|
|
@@ -6,7 +6,7 @@ schema_version: "0.1"
|
|
|
6
6
|
id: spectra-owner-scqa
|
|
7
7
|
title: "Вымышленный пример: история для основателя «Спектры Кофе», SCQA, черновик ИИ"
|
|
8
8
|
boards:
|
|
9
|
-
- {id: spectra-coffee-c1, version: "1.0.
|
|
9
|
+
- {id: spectra-coffee-c1, version: "1.0.3", sha256: 38217d92a7e923a824aa32caa99d404fe70db996e3921cedbe597c28893dc136}
|
|
10
10
|
audience: p-founder
|
|
11
11
|
protagonist: p-founder
|
|
12
12
|
form: scqa
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
# и банк выдуманы. Цифры меню, ролей и контрольных точек взяты из публичной
|
|
3
3
|
# демонстрационной спецификации (источник s-spec), которая сама описывает вымышленное
|
|
4
4
|
# предприятие; всё остальное придумано и помечено lineage: [fictional], voice: ai.
|
|
5
|
-
# Доски собраны по шести уровням OST (
|
|
5
|
+
# Доски собраны по шести уровням OST (намерение, модель, юридическое лицо, продукт,
|
|
6
6
|
# процесс, организация): теги tier. Слои L0-L5 спецификации не те же самые: см. README.md.
|
|
7
7
|
# Уровень записи — уровень поля её параметра: цена и маржа (fact-price) — модель бизнеса
|
|
8
8
|
# (правка 1.0.1, 09.11.2026; было «продукт»). Правка 1.0.2: уровень 3 называется
|
|
9
9
|
# «юридическое лицо» (было «юрлицо и права»).
|
|
10
|
+
# Правка 1.0.3: уровень 1 называется «намерение» (было «замысел»).
|
|
10
11
|
record: board_set
|
|
11
12
|
schema_version: "0.3"
|
|
12
13
|
id: spectra-coffee-c1
|
|
@@ -278,7 +279,7 @@ signoffs:
|
|
|
278
279
|
- {function: accept_result, target: H4, by: group, cycle: 1, date: "2026-10-31",
|
|
279
280
|
note: "вымышленная подпись: отчёт о запуске второго кафе сверен со спецификацией"}
|
|
280
281
|
state:
|
|
281
|
-
version: "1.0.
|
|
282
|
+
version: "1.0.3"
|
|
282
283
|
difficulty: "карта первая; порядок настройки помола держится на основателе"
|
|
283
284
|
accepted: ["H4 подтверждена вымышленной подписью"]
|
|
284
285
|
open: ["K1", "K2", "H1", "H2", "H3", "H5"]
|
|
@@ -6,7 +6,7 @@ schema_version: "0.1"
|
|
|
6
6
|
id: spectra-successor-premortem
|
|
7
7
|
title: "Вымышленный пример: премортем для будущего управляющего «Спектры Кофе», черновик ИИ"
|
|
8
8
|
boards:
|
|
9
|
-
- {id: spectra-coffee-c1, version: "1.0.
|
|
9
|
+
- {id: spectra-coffee-c1, version: "1.0.3", sha256: 38217d92a7e923a824aa32caa99d404fe70db996e3921cedbe597c28893dc136}
|
|
10
10
|
audience: place-successor
|
|
11
11
|
protagonist: place-successor
|
|
12
12
|
form: premortem
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# Значения тегов вымышленного кейса: шесть уровней OST, те же id, что в первом
|
|
2
|
-
# реальном кейсе (
|
|
2
|
+
# реальном кейсе (намерение -> организация). Уровни OST и слои L0-L5 публичной
|
|
3
3
|
# спецификации не совпадают: соответствие в README.md этой папки.
|
|
4
4
|
record: taxonomies
|
|
5
5
|
schema_version: "0.1"
|
|
6
6
|
case: spectra-coffee-fiction
|
|
7
7
|
taxonomies:
|
|
8
8
|
tier:
|
|
9
|
-
- {id: intent, ru: "
|
|
9
|
+
- {id: intent, ru: "намерение", en: "intent"} # of each position; the owner's is the controlling instance, «замысел собственника»
|
|
10
10
|
- {id: model, ru: "модель бизнеса", en: "business model"}
|
|
11
11
|
- {id: entity, ru: "юридическое лицо", en: "business entity (legal person: rights, obligations, property)"}
|
|
12
12
|
- {id: product, ru: "продукт", en: "product"}
|
|
@@ -116,7 +116,7 @@ A thesis can carry a move too; there `from` may name theses as well as elements.
|
|
|
116
116
|
- **Relations** (`shift`, `flow`, `produces`, `uses`, `belongs`, `opposes`, `refers`, `represents`, `other`, the `relations` of every profile; a profile may add its own, as the management profile does) link elements, normally within a board. `shift` links two positions; `represents` goes from a position to its representation of an object. Relations and transitions take an optional `voice` (e.g. AI), so links an AI drew stay visible as such. A `flow` takes an optional `carries` (`money`, `material`, `product`, `information`): what passes; the functional-plan hints read a payer as money in, an input as anything else in and a receiver as anything but money out (`docs/checks.md`). The screen, the frames (also `--light`, which drops link labels but keeps this word, and `--zoom`), the graph page and the Markdown digest write what a `flow` carries as a word of the language after its label (`flour · материал`); `smd index` lists the relations that have `carries` in a table of flows.
|
|
117
117
|
- **Transitions** are numbered 1..n and move between boards. They draw the trajectory of the group's thinking.
|
|
118
118
|
- **Qualifications** `K1..Kn`: `targets`, `text`, `short` (the legend's text when given), `by`, `voice` (who wrote it, e.g. AI drafting for the methodologist), `status` (`open` | `partly` | `closed`), `raised_in`, `closed_in` (cycle numbers).
|
|
119
|
-
- **State** is the one-line state after a cycle: `version`, `difficulty` (what failed in the previous cycle), `accepted`, `open`, `next_move`.
|
|
119
|
+
- **State** is the one-line state after a cycle: `version`, `date` (the date of the state, set by `smd apply` to the date of the last patch; optional), `difficulty` (what failed in the previous cycle), `accepted`, `open`, `next_move`. The header of the screen and of the Markdown digest names the cycle by `state.version` when it is set (`цикл 5.31`), else by `cycle`, and gives `state.date` when it is set, else the record's `date`.
|
|
120
120
|
|
|
121
121
|
### Theses (ingestion, step 2)
|
|
122
122
|
|
|
@@ -218,11 +218,11 @@ schema_version: "0.1"
|
|
|
218
218
|
case: spectra-coffee-fiction
|
|
219
219
|
taxonomies:
|
|
220
220
|
tier:
|
|
221
|
-
- {id: intent, ru: "
|
|
221
|
+
- {id: intent, ru: "намерение", en: "intent"}
|
|
222
222
|
- {id: model, ru: "модель бизнеса", en: "business model"}
|
|
223
223
|
```
|
|
224
224
|
|
|
225
|
-
A tier value names a field of the business, not a party: tier 1
|
|
225
|
+
A tier value names a field of the business, not a party: tier 1 «намерение» / "intent" holds the intent of a position regarding the business (owner, bank, employees, buyer); the owner's (or founder's) intent is the controlling instance, «замысел собственника» / "the owner's design", and «замысел» names only that instance. The tier of a record or line is the tier of the field of its parameter, whoever wrote it (`cases/spectra_coffee/taxonomies.yaml` has all six).
|
|
226
226
|
|
|
227
227
|
`smd validate --taxonomies <file>` checks every `tags` value and every cell of a column bound by `detail.keys` against the file: an unknown taxonomy or value is an error naming the item and the value. In a bound cell, values are separated by `;` and spaces around them are trimmed; an empty cell is allowed. Without the file, a record that uses `tags` or `detail.keys` gets one warning. `smd publish --taxonomies <file>` validates with it; `smd pack --taxonomies <file>` carries it in the pack.
|
|
228
228
|
|
|
@@ -256,7 +256,7 @@ Top level: `id`, `case`, `applies_to` (the board's id), `version` (the board's n
|
|
|
256
256
|
- `remove`: `{id, reason}` or `{n, reason}`. `n` drops that transition (later ones renumbered 1..n) and notes `<patch id>: removed transition <n>: <reason>`. The item is dropped with every link that names it; each id and reason is appended to the board's `notes` as `<patch id>: removed <id>: <reason>`, followed by `; dropped sign-off <function> <id> (<by>, <date>)` for each sign-off dropped with it. A record board is removed with the elements on it, noted as `; with <ids>`. Links dropped: relations and transitions from or to it (the remaining transitions are renumbered 1..n), `reflected_from`, record board `seen_from` and `unfolds`, element `seen_from`, `performed_by` and `in`, qualification `targets`, thesis `feeds`, `about` and `raises`, hypothesis `targets` and `qualifications`, goal `arises_from` and `assigned_by`, ontology `valid_for`, `covers` and the `{id}` entries of `lives_in` and `tempos`, `subjects` of that position, `cooperation` and `test`, sign-offs on it, and its entry in `state.open`. A list left empty is deleted, except `valid_for` and a move's `from`, which stay empty so that the validator reports them.
|
|
257
257
|
- `state`: `accepted` and `open` entries are appended, `remove_open` entries dropped from `open`, `next_move` and `difficulty` replaced.
|
|
258
258
|
|
|
259
|
-
`smd apply <board> <patch> -o <out> [--sources <manifest>] [--taxonomies <file>]` applies `add`, `set`, `board_notes`, `remove`, `sources`, `state` and `title` in that order, sets `state.version`, appends the patch id to `applied`, and validates the result, with the manifest and the taxonomy file when given; an error in an item names the item's id. A patch for another board, a `set` or `remove` naming an unknown id or transition number, a `set` of a relation that fits none or several, or, with `--sources`, a patch `cites` entry that is not in the manifest exits 2. A transition `n` in `set` and `remove` is its number after `add`, before this patch renumbers; so `add` may give a transition and `set` may change it. The notes get `board_notes` (trailing whitespace dropped), then one line per removal, each joined to the notes by one newline. A patch already in `applied` exits 1: a patch applies once. A result with errors is not written and the command exits 1; `--force` writes it and still exits 1. The output is in the engine's YAML layout (`dump_record`), so a board written by the engine changes only in the patched lines; comments of a hand-written board are not kept. `smd revise` does not carry `applied` into the next cycle.
|
|
259
|
+
`smd apply <board> <patch> -o <out> [--sources <manifest>] [--taxonomies <file>]` applies `add`, `set`, `board_notes`, `remove`, `sources`, `state` and `title` in that order, sets `state.version`, sets `state.date` to the patch's `date` when the patch has one (a new `date` key goes after `version`), appends the patch id to `applied`, and validates the result, with the manifest and the taxonomy file when given; an error in an item names the item's id. A patch for another board, a `set` or `remove` naming an unknown id or transition number, a `set` of a relation that fits none or several, or, with `--sources`, a patch `cites` entry that is not in the manifest exits 2. A transition `n` in `set` and `remove` is its number after `add`, before this patch renumbers; so `add` may give a transition and `set` may change it. The notes get `board_notes` (trailing whitespace dropped), then one line per removal, each joined to the notes by one newline. A patch already in `applied` exits 1: a patch applies once. A result with errors is not written and the command exits 1; `--force` writes it and still exits 1. The output is in the engine's YAML layout (`dump_record`), so a board written by the engine changes only in the patched lines; comments of a hand-written board are not kept. `smd revise` does not carry `applied` into the next cycle.
|
|
260
260
|
|
|
261
261
|
## Profiles
|
|
262
262
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: khaprov-levels
|
|
3
3
|
title: Seven levels of management complexity and three kinds of complexity
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
source: "Khaprov, expert lecture on the entrepreneur as organizer of complexity, program day 4, read through a local digest of the automatic transcript and the Q&A file (digest sections 1, 2.1-2.3, 2.5, 4, Q&A 1-2 and 10; the digest is not in the repo); Khaprov in the text below means that lecture"
|
|
6
6
|
route: smd
|
|
7
7
|
offered_by: [positional-construction, functional-plan]
|
|
@@ -66,12 +66,12 @@ Systems of systems (the third block of the lecture): at the technological order
|
|
|
66
66
|
|
|
67
67
|
## Diagonal: the seven levels and the six tiers of a business (AI draft)
|
|
68
68
|
|
|
69
|
-
**AI draft**, from a working session of 29.10.2026; not Khaprov's and not yet accepted by the methodologist. Khaprov gives no tiers of a business. The six tiers are the case group's scheme of a business (OST): 1
|
|
69
|
+
**AI draft**, from a working session of 29.10.2026; not Khaprov's and not yet accepted by the methodologist. Khaprov gives no tiers of a business. The six tiers are the case group's scheme of a business (OST): 1 намерение (intent of each position regarding the business; the owner's is the controlling instance, «замысел собственника»), 2 модель бизнеса (business model), 3 юридическое лицо (business entity: rights, obligations, property), 4 продукт (product), 5 процесс (process), 6 организация (organisation). The diagonal says at which level of complexity a change of each tier is decided. It is the engine's reading **(own extrapolation)**.
|
|
70
70
|
|
|
71
71
|
| Level | Tier of a business | Where it goes in a record |
|
|
72
72
|
|---|---|---|
|
|
73
73
|
| 7 ontology | none: there is no seventh tier. Ontology is the frame of tier 1, recorded as an ontology record | the `ontology` record of the case (`object`, `valid_for`, `lives_in`, `tempos`, `horizon`, `covers`; lens `khaprov-ontology`) |
|
|
74
|
-
| 6 culture, axiology | 1
|
|
74
|
+
| 6 culture, axiology | 1 намерение: the stated purpose and values of each position regarding the business. Culture as lived is tier 6 организация, not tier 1 (case owner 09.11.2026) | an element tagged with tier 1 when the case has a tier taxonomy, `pace` in years; a record of culture as lived is tagged tier 6 |
|
|
75
75
|
| 5 politics | 2 модель бизнеса, 3 юридическое лицо | as above, tiers 2 and 3 |
|
|
76
76
|
| 4 strategy | 2 модель бизнеса, 3 юридическое лицо | as above, tiers 2 and 3 |
|
|
77
77
|
| 3 programs | 4 продукт | as above, tier 4 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
id: stakeholder-ontology
|
|
3
3
|
title: Stakeholder ontology in the position's own words
|
|
4
4
|
step: 3
|
|
5
|
-
version: 0.2.
|
|
5
|
+
version: 0.2.1
|
|
6
6
|
role: игротехник
|
|
7
7
|
profile: any
|
|
8
8
|
inputs:
|
|
@@ -195,7 +195,7 @@ Write the translation as one element of kind `concept` on the object board (`oo`
|
|
|
195
195
|
| The owner set apart from the stakeholders | "owner and stakeholder ontologies" as two kinds | the owner is one of the stakeholders; the Owner Ontology is the stakeholder ontology of the owner position; every position's ontology and intent are its tier-1 content, the owner's intent being the controlling one |
|
|
196
196
|
| A seventh tier | the Owner Ontology written as a new tier or a new row of a six-tier table; Khaprov's seventh level of his complexity pyramid read as a seventh tier | a stakeholder ontology is tier-1 content, next to its position's intent: tag it with tier 1 |
|
|
197
197
|
| Ontology and intent merged | the record's object states what the position wants to achieve | the ontology says in what terms the questions are asked; the intent says which questions; both are tier 1, recorded apart (section 3a) |
|
|
198
|
-
| Tier 1 for the owner only | other positions' aims recorded outside the tiers, or the owner's intent called the tier | tier 1 is the intent of every position; the owner's is the controlling instance; the owner's control is a tier-3 field |
|
|
198
|
+
| Tier 1 for the owner only | other positions' aims recorded outside the tiers, or the owner's intent called the tier | tier 1 is the intent («намерение») of every position; the owner's is the controlling instance, «замысел собственника»; «замысел» names only that instance; the owner's control is a tier-3 field |
|
|
199
199
|
| A business parameter at tier 1 | a cap-table share, a price or a headcount written as the position's intent | tier 1 holds parameters of the position only; a parameter in the business's records goes to its field's tier |
|
|
200
200
|
| Translation inside the elicitation | questions asked in tier terms; tier names in the holder's answers | ask in the holder's words; translate in section 5 |
|
|
201
201
|
| Translation with no losses | a translation row with an empty or "none" loss column and no answer from the holder | name the loss or cite the holder's answer that there is none |
|
|
@@ -60,7 +60,8 @@ def apply_patch(board: dict[str, Any], patch: dict[str, Any]) -> dict[str, Any]:
|
|
|
60
60
|
"""The board with the patch applied; board is not changed.
|
|
61
61
|
|
|
62
62
|
Applies add, set, board_notes, remove, sources, state and title in that
|
|
63
|
-
order, then sets state.version
|
|
63
|
+
order, then sets state.version, sets state.date to the patch's date when it
|
|
64
|
+
has one, and appends the patch id to `applied`.
|
|
64
65
|
`set` and `remove` address a transition by its number `n` as it is after
|
|
65
66
|
`add`, before this patch renumbers; `set` also addresses a relation by its
|
|
66
67
|
`from`, `to` and `kind`. Raises PatchError for a patch made for
|
|
@@ -125,12 +126,26 @@ def apply_patch(board: dict[str, Any], patch: dict[str, Any]) -> dict[str, Any]:
|
|
|
125
126
|
if "title" in patch:
|
|
126
127
|
new["title"] = patch["title"]
|
|
127
128
|
new.setdefault("state", {})["version"] = str(patch["version"])
|
|
129
|
+
if patch.get("date"):
|
|
130
|
+
new["state"] = _with_date(new["state"], str(patch["date"]))
|
|
128
131
|
if "applied" not in new:
|
|
129
132
|
new = _with_applied(new)
|
|
130
133
|
new["applied"].append(patch["id"])
|
|
131
134
|
return new
|
|
132
135
|
|
|
133
136
|
|
|
137
|
+
def _with_date(state: dict[str, Any], date: str) -> dict[str, Any]:
|
|
138
|
+
"""The state with `date` set; a new key is placed after `version`."""
|
|
139
|
+
if "date" in state:
|
|
140
|
+
return {**state, "date": date}
|
|
141
|
+
out: dict[str, Any] = {}
|
|
142
|
+
for key, value in state.items():
|
|
143
|
+
out[key] = value
|
|
144
|
+
if key == "version":
|
|
145
|
+
out["date"] = date
|
|
146
|
+
return out
|
|
147
|
+
|
|
148
|
+
|
|
134
149
|
def _with_boards(board: dict[str, Any]) -> dict[str, Any]:
|
|
135
150
|
"""The board with an empty `boards`, placed before the elements as in the schema."""
|
|
136
151
|
out: dict[str, Any] = {}
|
|
@@ -57,7 +57,9 @@ def lighten(data: dict[str, Any]) -> dict[str, Any]:
|
|
|
57
57
|
]
|
|
58
58
|
if out.get("state"):
|
|
59
59
|
out["state"] = {
|
|
60
|
-
k: v
|
|
60
|
+
k: v
|
|
61
|
+
for k, v in out["state"].items()
|
|
62
|
+
if k in ("version", "date", "next_move")
|
|
61
63
|
}
|
|
62
64
|
for q in out.get("qualifications", []):
|
|
63
65
|
if "targets" in q:
|
|
@@ -13,6 +13,8 @@ from smd_engine.render.text import (
|
|
|
13
13
|
element_parts,
|
|
14
14
|
field_lines,
|
|
15
15
|
hypothesis_parts,
|
|
16
|
+
state_cycle,
|
|
17
|
+
state_date,
|
|
16
18
|
value_word,
|
|
17
19
|
)
|
|
18
20
|
|
|
@@ -82,13 +84,13 @@ def render_markdown(data: dict[str, Any], lang: str = "ru") -> str:
|
|
|
82
84
|
out = [f"# {data['title']}", ""]
|
|
83
85
|
meta = [
|
|
84
86
|
f"id `{data['id']}`",
|
|
85
|
-
f"{lab['cycle']} {data
|
|
87
|
+
f"{lab['cycle']} {state_cycle(data)}",
|
|
86
88
|
value_word("record_status", data["status"], lang),
|
|
87
89
|
]
|
|
88
90
|
if data.get("revises"):
|
|
89
91
|
meta.append(f"{words['revises']} `{data['revises']}`")
|
|
90
|
-
if data
|
|
91
|
-
meta.append(data
|
|
92
|
+
if state_date(data):
|
|
93
|
+
meta.append(state_date(data))
|
|
92
94
|
out += [" · ".join(meta), ""]
|
|
93
95
|
# one section per board of the profile, or per half
|
|
94
96
|
profile = profile_of(data)
|
|
@@ -27,6 +27,8 @@ from smd_engine.render.text import (
|
|
|
27
27
|
MOVE_NAMES,
|
|
28
28
|
board_text,
|
|
29
29
|
esc,
|
|
30
|
+
state_cycle,
|
|
31
|
+
state_date,
|
|
30
32
|
text_width,
|
|
31
33
|
value_word,
|
|
32
34
|
wrap,
|
|
@@ -725,9 +727,9 @@ def render_svg(
|
|
|
725
727
|
str(v)
|
|
726
728
|
for v in (
|
|
727
729
|
data.get("case"),
|
|
728
|
-
f"{lab['cycle']} {data
|
|
730
|
+
f"{lab['cycle']} {state_cycle(data)}",
|
|
729
731
|
value_word("record_status", data["status"], lang),
|
|
730
|
-
data
|
|
732
|
+
state_date(data),
|
|
731
733
|
)
|
|
732
734
|
if v
|
|
733
735
|
)
|
|
@@ -619,6 +619,19 @@ def board_text(
|
|
|
619
619
|
return label + (f" / {LABELS[lang][half]}" if half else "")
|
|
620
620
|
|
|
621
621
|
|
|
622
|
+
def state_cycle(data: dict[str, Any]) -> str:
|
|
623
|
+
"""The cycle a header names: `state.version` when set (a patched board is at
|
|
624
|
+
5.31, not 5), else the record's cycle."""
|
|
625
|
+
version = (data.get("state") or {}).get("version")
|
|
626
|
+
return str(version) if version else str(data["cycle"])
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
def state_date(data: dict[str, Any]) -> Any:
|
|
630
|
+
"""The date a header names: `state.date` when set (the date of the last
|
|
631
|
+
patch applied), else the record's date."""
|
|
632
|
+
return (data.get("state") or {}).get("date") or data.get("date")
|
|
633
|
+
|
|
634
|
+
|
|
622
635
|
def title_line(data: dict[str, Any], lang: str = "ru") -> str:
|
|
623
636
|
"""The record's title and, when `state.version` is set, its cycle: `title · цикл 0.2`."""
|
|
624
637
|
version = (data.get("state") or {}).get("version")
|
|
@@ -437,6 +437,7 @@
|
|
|
437
437
|
"additionalProperties": false,
|
|
438
438
|
"properties": {
|
|
439
439
|
"version": {"type": "string"},
|
|
440
|
+
"date": {"type": "string", "format": "date", "description": "the date of the state: the date of the last patch applied; the record's date when absent"},
|
|
440
441
|
"difficulty": {"type": "string", "description": "what failed in the previous cycle and triggered the reflexive exit"},
|
|
441
442
|
"accepted": {"type": "array", "items": {"type": "string"}},
|
|
442
443
|
"open": {"type": "array", "items": {"type": "string"}},
|
|
@@ -402,3 +402,34 @@ def test_the_schema_checks_a_relation_entry(
|
|
|
402
402
|
yaml.safe_dump(patch(set=[{"id": "gap-risk", "kind": "gap"}])), "utf-8"
|
|
403
403
|
)
|
|
404
404
|
assert main(["apply", board, str(given), "-o", str(out)]) == 0
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
def test_apply_sets_the_state_date_to_the_patch_date(board2: dict[str, Any]) -> None:
|
|
408
|
+
new = apply_patch(board2, patch(date="2026-03-14"))
|
|
409
|
+
assert list(new["state"])[:2] == ["version", "date"]
|
|
410
|
+
assert new["state"]["date"] == "2026-03-14" and errors(new) == []
|
|
411
|
+
later = apply_patch(new, patch(id="bakeries-c2-10", date="2026-03-20"))
|
|
412
|
+
assert later["state"]["date"] == "2026-03-20"
|
|
413
|
+
# A patch without a date leaves the state date as it is.
|
|
414
|
+
assert "date" not in apply_patch(board2, patch())["state"]
|
|
415
|
+
kept = apply_patch(new, patch(id="bakeries-c2-10"))
|
|
416
|
+
assert kept["state"]["date"] == "2026-03-14"
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
def test_the_schema_takes_a_state_date(board2: dict[str, Any]) -> None:
|
|
420
|
+
board2["state"]["date"] = "2026-03-14"
|
|
421
|
+
assert errors(board2) == []
|
|
422
|
+
board2["state"]["date"] = "14.03.2026"
|
|
423
|
+
assert [f.ref for f in errors(board2)] == ["state/date"]
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
def test_apply_with_a_date_is_reproducible(tmp_path: Path) -> None:
|
|
427
|
+
board = str(EXAMPLE / "bakeries-c2.board.yaml")
|
|
428
|
+
first, second = tmp_path / "1.board.yaml", tmp_path / "2.board.yaml"
|
|
429
|
+
assert main(["apply", board, str(PATCH), "-o", str(first)]) == 0
|
|
430
|
+
assert main(["apply", board, str(PATCH), "-o", str(second)]) == 0
|
|
431
|
+
assert first.read_bytes() == second.read_bytes()
|
|
432
|
+
state = load_record(first)["state"]
|
|
433
|
+
assert state["version"] == "0.2.1" and state["date"] == "2026-01-18"
|
|
434
|
+
# The written board reads back and writes the same bytes.
|
|
435
|
+
assert dump_record(load_record(first)) == first.read_text("utf-8")
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"""The header of the screen and of the digest names the board's state: the
|
|
2
|
+
cycle label with `state.version` when the record has one, and `state.date`
|
|
3
|
+
when it has one, else the cycle and the record's date. A record without both
|
|
4
|
+
renders byte for byte as in 0.7.7: GOLDEN pins the renders of every example
|
|
5
|
+
board with `state.version` and `state.date` taken out; restamp with
|
|
6
|
+
`render_all` only when a render change is deliberate."""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
import copy
|
|
11
|
+
import hashlib
|
|
12
|
+
from pathlib import Path
|
|
13
|
+
from typing import Any
|
|
14
|
+
|
|
15
|
+
import pytest
|
|
16
|
+
|
|
17
|
+
from smd_engine.cli_boards import RENDERERS
|
|
18
|
+
from smd_engine.profile import ProfileError
|
|
19
|
+
from smd_engine.records import load_record
|
|
20
|
+
from smd_engine.render.frames import cycle_frames, reading_frames
|
|
21
|
+
from smd_engine.render.frames_page import render_frames_html
|
|
22
|
+
from smd_engine.render.html import render_html
|
|
23
|
+
from smd_engine.render.light import lighten
|
|
24
|
+
from smd_engine.render.markdown import render_markdown
|
|
25
|
+
from smd_engine.render.svg import render_svg
|
|
26
|
+
|
|
27
|
+
ROOT = Path(__file__).resolve().parents[1]
|
|
28
|
+
BOARDS = sorted((ROOT / "cases").glob("*/*.board.yaml"))
|
|
29
|
+
|
|
30
|
+
GOLDEN = {
|
|
31
|
+
"bakeries-c1.board.yaml": "b8b52ff9bcc6115eb86fbe701c656b9150a6ea5769e5a9bd69d1d66a927697ca",
|
|
32
|
+
"bakeries-c2.board.yaml": "2e7c33e16fc5acfd30eb79339d7ee56612d292e721a47275c14cec109f1f5329",
|
|
33
|
+
"two-boards-c1.board.yaml": "1687f3e55ac2e63f91b03c930c5a707f99697c68b2d02a1e50f1aaf5f7fe8dbf",
|
|
34
|
+
"pekarni-c1.board.yaml": "43086b79107e0e94c02f1d27c8850dbc8dfa7634eae0a7aa9642f2288504e793",
|
|
35
|
+
"pekarni-c2.board.yaml": "bbc93cef3d06a29077bb7ce7ca2fd45fff866bb63289c8deab9e63835032e9a4",
|
|
36
|
+
"pekarni-oru-c1.board.yaml": "86793becf2df423f0f34ab8f6346606de578a84bfd90cc2794e8445d1bd0e2b3",
|
|
37
|
+
"pekarnya-holding-c1.board.yaml": "5437822f65f1959ff0ea2f7d750992918718b8871a23f10447a8136a8a269603",
|
|
38
|
+
"spectra-coffee-c1.board.yaml": "d524cf735e204ec69dd6920674d7cd60d368ec0dc09095dd036234d2cb20dc57",
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def bare(data: dict[str, Any]) -> dict[str, Any]:
|
|
43
|
+
"""The record without `state.version` and `state.date`."""
|
|
44
|
+
out = copy.deepcopy(data)
|
|
45
|
+
for key in ("version", "date"):
|
|
46
|
+
out.get("state", {}).pop(key, None)
|
|
47
|
+
return out
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def render_all(data: dict[str, Any]) -> str:
|
|
51
|
+
"""sha256 of every render of the record: each format and its light screen
|
|
52
|
+
in both languages, and the frames page."""
|
|
53
|
+
digest = hashlib.sha256()
|
|
54
|
+
for lang in ("ru", "en"):
|
|
55
|
+
for name, render in RENDERERS.items():
|
|
56
|
+
for light in (False, True):
|
|
57
|
+
try:
|
|
58
|
+
if light and name == "html":
|
|
59
|
+
text = render_html(data, lang, screen=lighten(data))
|
|
60
|
+
else:
|
|
61
|
+
text = render(lighten(data) if light else data, lang)
|
|
62
|
+
except ProfileError:
|
|
63
|
+
text = f"{name}: not in this profile"
|
|
64
|
+
digest.update(f"{lang} {name} {light}\n{text}".encode())
|
|
65
|
+
try:
|
|
66
|
+
frames = reading_frames(data, lang)
|
|
67
|
+
except ProfileError:
|
|
68
|
+
frames = cycle_frames([data], lang)
|
|
69
|
+
digest.update(render_frames_html(frames, lang).encode())
|
|
70
|
+
return digest.hexdigest()
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
@pytest.mark.parametrize("path", BOARDS, ids=lambda p: p.name)
|
|
74
|
+
def test_a_record_without_state_version_and_date_renders_as_before(
|
|
75
|
+
path: Path,
|
|
76
|
+
) -> None:
|
|
77
|
+
assert render_all(bare(load_record(path))) == GOLDEN[path.name]
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def header(svg: str) -> str:
|
|
81
|
+
"""The text of the screen's first line, the subtitle above the title."""
|
|
82
|
+
return svg.split('font-weight="600" letter-spacing="2">', 1)[1].split("<", 1)[0]
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def test_the_screen_and_the_digest_name_the_state_version_and_date(
|
|
86
|
+
board2: dict[str, Any],
|
|
87
|
+
) -> None:
|
|
88
|
+
board2["state"] |= {"version": "2.31", "date": "2026-03-14"}
|
|
89
|
+
assert header(render_svg(board2, "en")) == (
|
|
90
|
+
"EXAMPLE-BAKERIES · CYCLE 2.31 · DRAFT · 2026-03-14"
|
|
91
|
+
)
|
|
92
|
+
assert "ЦИКЛ 2.31 · " in header(render_svg(board2, "ru"))
|
|
93
|
+
meta = render_markdown(board2, "en").split("\n")[2]
|
|
94
|
+
assert "cycle 2.31 · " in meta and meta.endswith(" · 2026-03-14")
|
|
95
|
+
# The light screen keeps them too.
|
|
96
|
+
assert header(render_svg(lighten(board2), "en")).endswith(
|
|
97
|
+
"2.31 · DRAFT · 2026-03-14"
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
def test_without_state_the_header_names_the_cycle_and_the_record_date(
|
|
102
|
+
board2: dict[str, Any],
|
|
103
|
+
) -> None:
|
|
104
|
+
del board2["state"]
|
|
105
|
+
assert header(render_svg(board2, "en")) == (
|
|
106
|
+
f"EXAMPLE-BAKERIES · CYCLE 2 · DRAFT · {board2['date']}"
|
|
107
|
+
)
|
|
@@ -71,11 +71,12 @@ def test_frame_state() -> None:
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
def test_record_status(c2: dict[str, Any]) -> None:
|
|
74
|
-
|
|
75
|
-
assert "
|
|
74
|
+
# The header names state.version 0.2, not the bare cycle 2.
|
|
75
|
+
assert "· цикл 0.2 · черновик ·" in render_markdown(c2, "ru")
|
|
76
|
+
assert "ЦИКЛ 0.2 · ЧЕРНОВИК" in render_svg(c2, "ru")
|
|
76
77
|
c2["status"] = "verified"
|
|
77
|
-
assert "· цикл 2 · сверено ·" in render_markdown(c2, "ru")
|
|
78
|
-
assert "· cycle 2 · verified ·" in render_markdown(c2, "en")
|
|
78
|
+
assert "· цикл 0.2 · сверено ·" in render_markdown(c2, "ru")
|
|
79
|
+
assert "· cycle 0.2 · verified ·" in render_markdown(c2, "en")
|
|
79
80
|
|
|
80
81
|
|
|
81
82
|
def test_thesis_voice_belt_and_kind(c2: dict[str, Any]) -> None:
|
|
File without changes
|