Files
mdm-ordinis/docs
Zimin A.N. 8adfd39bff feat(bundle): bundle hygiene v2 — manifest spec + signing verifier + docs
Ships marketplace-design-v2 scoped to bundle hygiene (NO consumer UI, NO
install dialog, NO marketplace). 2-3 day cap respected — Approach C narrow
slice. Anti-feature commitment: scope creep → new design doc + /office-hours.

## What ships

### New module ordinis-bundle-spec
- BundleManifest.java — canonical apiVersion: ordinis.io/v1 record
  (Metadata + DictionaryEntry, Jackson-bindable, forward-compat ignoreUnknown)
- ManifestParser.java — YAML → record + structural validate
  (apiVersion/kind enforce, semver regex, bundle-id regex, path traversal
  guard на schemaRef, unique dict names, scope enum)
- BundleSignatureVerifier.java — ed25519 sign/verify (JDK 21 native)
- Zero Spring/JPA/Kafka deps — pure Java + Jackson YAML

### CUOD reference implementation
- ordinis-cuod-bundle/manifest.yaml — 40 dicts canonical entries
- Test fixture pin: cuod-manifest-fixture.yaml parses+validates clean
  (regression guard на каждом CI run)

### Tests
- 12 cases ManifestParser (happy + reject paths)
- 7 cases BundleSignatureVerifier (sign/verify roundtrip, tamper, wrong key)
- 1 case CUOD fixture pin
- Total 20 tests, all green

### Docs
- docs/integration/bundle-format-spec.md — formal spec для Java handoff
- docs/user-guide/bundle-authoring.md — how-to для новых bundle authors

## Why now (N=1 customer)

Per office-hours v2 decision: marketplace UI build = N customers value scale,
but bundle hygiene + sign format = AT N=1 ROI:
- Java team handoff requires documented spec независимо
- Sales demo «here's how customer #2 would ship custom bundle»
- Optionality для marketplace UI когда customer #2 LOI surfaces

## Explicitly NOT shipped (Phase 2 scope if ever)

- Publisher Maven plugin (separate artifact when actual publish needed)
- Browse catalog UI / install dialog (no customer #2 with use case)
- Dep resolution / topological install
- Multi-tenant Nexus namespacing
- Bundle uninstall flow
2026-05-17 10:39:07 +03:00
..

Ordinis Integrator Guide (Diplodoc / YFM)

Consumer-facing документация Ordinis НСИ ЦУОД. Build через Diplodoc (open-source documentation platform от Yandex), source — YFM (Yandex Flavored Markdown).

Scope: только то, что нужно интеграторам (Альтум team, BI, third-party consumers). Operator runbooks, архитектурные deep-dives и project state — во внутренней документации в ../docs-internal/, не в Diplodoc build.

Структура

docs/
├── package.json           # @diplodoc/cli + build scripts
├── .yfm                   # Diplodoc config
├── toc.yaml               # Содержание / sidebar
├── index.md               # Главная (integrator-focused tabs)
└── integration/
    ├── api/               # 11 глав про API integration
    │   ├── index.md
    │   ├── auth.md
    │   ├── read-endpoints.md
    │   ├── events.md
    │   ├── webhooks.md
    │   ├── bitemporal.md
    │   ├── x-references.md
    │   ├── caching.md
    │   ├── errors.md
    │   ├── best-practices.md
    │   └── bundle-cuod.md
    └── altum-imaging-order.md

Внутренние материалы (НЕ в Diplodoc build):

docs-internal/
├── ops/      # Operator runbook (on-call)
├── status/   # Project state snapshots
└── tech/     # Legacy technical pages

Сборка

Требуется Node 18+.

cd docs
pnpm install
pnpm build           # → ./_dist (HTML)
pnpm serve           # → http://localhost:8088
pnpm dev             # build + serve одной командой

Build output (_dist/) — статический HTML, deployable в:

  • GitLab Pages
  • S3 / object storage
  • nginx/ingress на k8s cluster

Editorial guidelines

Этот set документации — public contract для интеграторов:

  1. Не leak'аем internal architecture — никаких internal alert names, service paths, internal infrastructure URLs.
  2. API contract стабилен — изменения требуют semver bump + announcement.
  3. Consumer-side examples для каждой концепции (Python, Node, либо Spring).
  4. Версионирование через bundle / API major.

Для operator-side / dev-side материалов — docs-internal/ либо design docs в ~/.gstack/projects/claude/.

YFM extensions используются

  • {% list tabs %} — табы для switching между audiences
  • {% note info|warning|tip %} — выделенные блоки
  • mermaid code blocks — диаграммы (graph LR, gantt)
  • toc.yaml cross-links — sidebar navigation

Roadmap

  • Базовая структура integration guide (11 страниц)
  • CI job build-docs в .gitlab-ci.yml
  • GitLab Pages / k8s ingress deployment
  • Search plugin
  • EN translation (через langs: в .yfm)
  • Includes для shared snippets (auth examples, error tables)
  • Versioning — separate doc trees per API major version