Commit Graph
15 Commits
Author SHA1 Message Date
cflmy b64bdc208c Revert "ci: protected publish workflow (#10)"
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
This reverts commit 703ee7af24, reversing
changes made to 5c7e517121.
2026-11-27 20:34:39 +08:00
cflmy 703ee7af24 ci: protected publish workflow (#10)
ci/woodpecker/push/ci Pipeline was successful
ci: protected publish workflow (#10)
2026-11-27 19:23:35 +08:00
cflmy 61b4dd370e ci: add protected component publish workflow and immutable release helpers
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
Vendor the root component-release helpers, add source packaging plus
release-evidence, and split publish (tag/manual) from notify (release event).
2026-11-27 19:23:09 +08:00
marqdo-ci 5c7e517121 ci: notify the root reconcile on a completed release
ci/woodpecker/push/ci Pipeline is pending
ci/woodpecker/pr/ci Pipeline is pending
Release event fast path: validate the secret is present, then ask the root
manual `reconcile` workflow to check the authoritative Gitea release. The call
is only a hint; correctness and lost-notification recovery stay in the root
reconcile cron/script.
2026-11-27 14:18:23 +08:00
marqdo-ci 37404dbc6a ci: consume the shared Rust CI image
ci/woodpecker/push/ci Pipeline is pending
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/manual/ci Pipeline was successful
2026-11-27 14:03:42 +08:00
marqdo-ci a231068f23 ci: add the unified Woodpecker lane
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
Reuse rust:1.100-trixie (glibc 2.41) and the published rc.5 CLI/Bundle with a
pinned SHA-256; no per-repository toolchain download, no CLI rebuild.
2026-11-27 13:47:24 +08:00
marqdo-norms cbef7b622a docs: adopt ecosystem repository conventions and current active status 2026-11-27 11:36:46 +08:00
cflmy 1b6607fd3c docs: record the WEB-03 delivery evidence
Handoff/graph/slice/drift candidate evidence with CLI/Design identities, the
verified behaviours (deterministic delivery, separated visual/dependency graph,
single-component slicing, drift) and the explicit unverified scope (WEB-04/05).

Refs cflmy/marqdo-web-design#2, cflmy/marqdo#6
2026-11-27 08:56:32 +08:00
cflmy 8cd72b87b6 feat: handoff, design graph, single-component slice and drift (WEB-03)
Extend the Design public API for delivery consumers:
- handoff/handoff_relative_to derive deterministic Markdown from the model only:
  design id, source digests, component tree, separated visual containment and
  non-visual dependency graph, per-component source links, responsibility/visual
  notes from safe content blocks, inputs, events, scenarios, interactions,
  dependencies, acceptance and an explicit prototype/not-implemented boundary.
  Source links are recomputed relative to the output directory when requested.
- graph() separates visual containment edges from dependency edges and reports
  dependency cycle groups (load still rejects cycles for coordination).
- slice() selects one loaded component and its visual subtree as an independent
  Design with only the used sources (single-component delivery).
- drift(previous,current) reports added/removed/changed components and changed
  source digests; design_id() is a deterministic identity for drift checks.
- Non-visual dependency targets are loaded as definitions so the graph is
  explicit even when the dependency is not placed in the visual tree; a cycle on
  that path reports web.dependency.cycle.
- Six new real-CLI tests cover deterministic handoff, relative links, drift,
  slicing, graph separation and the unchanged negative contract.

Refs cflmy/marqdo-web-design#2, cflmy/marqdo#6
2026-11-27 08:56:03 +08:00
cflmy 2f18dede85 fix: resolve outside_scope design links inside the explicit --root
WEB-00's probe and the Preview fixture exposed a real boundary: when an entry's
nearest CLI project root is a subdirectory, a component link like
`../shared/x.mq.md` is reported as outside_scope without candidate_path even
though it is inside the design command's explicit --root.

Design now derives the physical candidate from the public reference URL only for
that state, resolves it relative to the source module, requires the canonical
target to stay inside --root, and still verifies the exact anchor through the
target module's Analysis. No private loader, file search or label guessing is
introduced; other states keep failing with the candidate diagnostic.

Adds a real-CLI contract test and records the rule/limitation in the evidence.

Refs cflmy/marqdo-web-design#1, cflmy/marqdo#6
2026-11-27 08:52:17 +08:00
cflmy 495d2e4bf7 feat: project safe content, verify load stability and cover scope escapes
- Expose ContentBlock/ContentLink projected from the analysis AST and source
  byte spans; raw HTML becomes an inert placeholder, links keep url/span for the
  Preview protocol allowlist. Components and scenario content units use it.
- After building the graph, re-analyze every participating module and require
  the same source_digest; a mid-load edit returns Engine web.engine.stale and no
  partial model.
- Security cases: symlink escape outside --root is rejected, absolute link
  targets are rejected, percent-encoded traversal stays unresolved, raw HTML is
  inert.
- Tests grow to 18 real-CLI cases (content projection, html placeholder,
  symlink/absolute/encoded scope escapes, forged CLI output stale detection).
- Evidence/docs record what remains: WEB-03 graph/slicing, component CI
  service, WEB-02 output budget/CSP, WEB-05 root integration.

Refs cflmy/marqdo-web-design#1, cflmy/marqdo#6
2026-11-27 08:47:56 +08:00
cflmy 9684e388ce feat: interpret the remaining retained H3 contracts (WEB-01)
Add the input/event/scenario/interaction/dependency/acceptance model and
validation on top of the core loader:
- 输入/事件 plain-text tables with non-empty unique names; links rejected;
- 场景 only on leaf components, ASCII slug states unique, exactly one initial,
  content cell is exactly one link to a Knowledge unit (Exec and design
  component declarations rejected), scene limit 32;
- 交互 state references, non-empty unique event labels per state, reachability
  from the initial state, multi-state requires transitions, 128 limit;
- 依赖 must target loaded design components with non-empty reasons and an
  acyclic design dependency graph;
- 验收 keeps the direct section text, rejects empty content, never interprets
  it as a test;
- contract-aligned limits (100 docs/200 defs/1000 instances/12 depth/12 slots
  per row/1 MiB file/16 MiB total) and a richer deterministic handoff.

14 real-CLI contract tests now cover the positives and main negatives. Docs and
the WEB-01 evidence record which security/concurrency cases and WEB-03 handoff
remain open; WEB-01 stays open.

Refs cflmy/marqdo-web-design#1, cflmy/marqdo#6
2026-11-27 02:37:22 +08:00
cflmy 75cd26ef89 feat: WEB-01 core Design interpreter over public Analysis 3
Implement the first real Design capability in the unique owner repository:
- src/analysis.rs runs the verified CLI check --emit with direct argv, validates
  Analysis 3 schema/source_digest, and snapshots one module without any implicit
  discovery or Markdown parser.
- src/document.rs selects the exact Knowledge H2 by anchor, direct retained H3
  sections, and the single GFM 组件 table from the analysis AST; cell text is
  read from the analysis-provided source by UTF-8 byte span.
- src/lib.rs binds design links by exact candidate_path + anchor (never label or
  filename guessing), validates rows/slots/widths, recursion, containment cycles
  and module/depth/byte limits, and builds deterministic component definitions,
  separate instances, source identities and a provisional handoff.
- Stable diagnostics separate Engine failures (exit 2) from author-contract
  errors (exit 1); no partial model on failure.
- tests/design_contract.rs exercises the real CLI for recursive layout,
  definition reuse, width forms and the main negative cases; scripts/ci.sh is the
  explicit entry (fmt/clippy/test) with a verified CLI.

Scenarios/input/event/dependency contracts and the full WEB-03 handoff remain
open and are recorded as unverified in the evidence document.

Refs cflmy/marqdo-web-design#1, cflmy/marqdo#6
2026-11-27 02:33:33 +08:00
cflmy 39c99e59d2 docs: add Web Design development guide and provisional API 2026-11-26 16:47:00 +08:00
cflmy db80419e9d docs: initialize Web Design component development 2026-11-26 16:46:28 +08:00