- ci/images: immutable shell/rust(/web planned) images built from the released
rc.5 CLI archive and pinned preview bundle, published to the Gitea container
registry; consumers use one image tag and only their own entry command.
- .woodpecker/reconcile.yml + scripts/reconcile-releases.py: protected-branch
manual/cron release discovery, asset byte/SHA verification, idempotent
release-tracking Issues; no gitlink mutation or publish.
- Commit the child CI/norm gitlinks, document the image set and the remaining
limits (web image pull, tool/view migration, release publish workflows).
Refs cflmy/marqdo#10
Add the repository-level development conventions derived from marqdo#10 and the
existing architecture/development authorities, and enforce them:
- docs/REPOSITORY-CONVENTIONS.md: repository admission, two-level governance,
responsibility matrix, minimum active-repository file set, AGENTS rules,
independent CI/CD inputs, four facts and C2→B2→A2 promotion, single sources of
truth, hard anti-bloat list, review checklist and exception records.
- Root AGENTS.md points to the conventions; docs/DEVELOPMENT.md and
docs/REPOSITORY-TASKS.md link them; docs/templates/AGENTS.component.md is the
per-repository template.
- scripts/check-repo-conventions.py + tests enforce active README/AGENTS
marker and link, real entries, no planned entries, no duplicated domain
descendants in the root catalog, no leaf second catalog/.gitmodules and
canonical submodule remotes; added to the CI layout stage.
- Propagated tailored AGENTS.md to every active child repository and the
implemented extension repositories, corrected stale Web planned/active facts,
and pinned those convention commits (plus the CLI docs commit) in the root
gitlinks. Planned/empty repositories intentionally receive no boilerplate.
Refs cflmy/marqdo#10
- scripts/webhook-adapter.py authenticates the raw Gitea body with the repo
webhook secret (HMAC-SHA256), whitelists push/pull_request candidate actions,
resolves the repository from the accepted root graph, uses the accepted pin as
base (payload base is only a hint), aggregates CI strictly, and delegates to
the existing candidate-notify verifier for reachability, dedupe/replay,
baseline revalidation and impact.
- --reconcile scans open PRs in allowlisted repositories, recovers candidates
whose fast notification was lost with the same idempotent state, retries
transient API errors with bounded backoff, fails closed on 401/403, and
reports errors without claiming a downstream success.
- 8 focused adapter tests plus the full 79-test integration suite pass on real
temporary Git fixtures. Docs/evidence record the trust rules and that the
platform webhook/cron deployment itself is still external (#10 M0).
Refs cflmy/marqdo#3, cflmy/marqdo#10
The candidate image installs a minimal Rust profile, so the Design/Preview
component entries failed at cargo fmt before any quality gate ran. Add the two
components once (only when the active toolchain lacks rustfmt) before running
the pinned domain entries.
- Root catalog web domain moves planned→active with entry
scripts/domain-acceptance.sh; the root gitlink pins the activated domain
commit f6d0a90 (Design 1b6607f / Preview eff273f active in its catalog).
- integration.sh adds extensions/web to the declared active set and runs the
domain component entries plus a cold web Tool install: install → generic
check/preview/handoff → remove with the CLI binary digest unchanged.
- Docs (ARCHITECTURE/MIGRATION/REPOSITORY-TASKS/README) record one active Web
domain; evidence records candidate identities and the CI-gated result.
Refs cflmy/marqdo#6, cflmy/marqdo-ext-web#2
Implement the authorization verifier for candidate notifications (issue #3):
normalized schema, repository allowlist from the accepted root graph remotes,
reachable commit check, exact accepted base SHA for component candidates,
allowlisted https CI success URL, replay-safe (repository, head SHA) state with
new-baseline revalidation, and union-graph impact reuse (full fallback on
undetermined scope). The plan never auto-promotes or auto-merges; a human still
reviews the candidate branch/PR.
Tests build real temporary Git repositories and cover verified component and
root candidates, unknown repository, failed/non-allowlisted CI, unreachable
commit, stale base, replay + revalidation, dry-run state.
Also the impact analyzer's .gitmodules parser now handles the 3-segment Git
config keys correctly.
Refs cflmy/marqdo#3
The candidate evidence heredoc referenced the report without reading it after the
rebase; define the report from <work>/impact.json (or None when no accepted ref
was available) before building the record.
Implement the ECO-02 impact contract: compare the recursively expanded
(global_id, parent, remote, SHA, state) identities of an accepted root commit
and a candidate, expand domain gitlink changes to child identities, close over
the reverse requires graph built from the union of both revisions, add parent
domains, then reach a fixed point over checks_with. An unexpandable domain is
reported UNVERIFIED and widens the affected set to the full candidate instead of
skipping (--fail-on-unverified makes it fatal).
integration.sh runs it against the accepted root ref (PR target branch or
origin/main) and records changed/affected/checks_with/fallback in the candidate
evidence JSON. Five contract tests build real temporary Git repositories,
including a domain gitlink change and the conservative fallback.
Refs cflmy/marqdo#7
The root candidate is promoted: main pins CLI Phase B (no in-repo stdlib
sources) and the six migrated stdlib components; the root CI candidate passed
with one derived CLI/Worker/Bundle artifact and all consumers. Record the
promotion, the required check pipeline, the release-level offline cold install
result, the archive identity caveat (example binaries built locally differ from
the CI archive) and the remaining non-blocking follow-ups.
Also fix the integration evidence JSON: root_commit must name the root
candidate commit, with cli_source_sha separate.
Refs cflmy/marqdo#9
The exported CARGO_TARGET_DIR leaked into the consumer repositories, so View's
package script built into the CLI target directory and then failed to find its
own release binary. Only the pinned CLI build names that target directory.
The release packager resolves both binaries from the CLI checkout's target
directory, so the candidate build must happen there; the previous external
CARGO_TARGET_DIR left the package step with no release binary. Keeps one build
and one artifact identity.
M3 candidate for cflmy/marqdo#9: the root cli gitlink now points at the CLI
Phase B commit that removed the in-repo stdlib sources and pinned the accepted
ecosystem Bundle.
scripts/integration.sh no longer takes a CLI artifact from View's frozen RC.4
script. One candidate derives every input: the root-owned Bundle producer
assembles the Bundle from pinned gitlinks, the CLI and Worker are built from the
pinned cli commit, the release archive is packaged with --stdlib-dir, and
Conformance/View/Knowledge/Prove/Lint plus acceptance-stdlib all use that same
installed binary and adjacent Bundle. Evidence records the exact identities.
Composition gains the print-format equivalence fixture (moved from the CLI) and
a pure-mode Table case; the root acceptance compares stdout line pairs so the
official print/打印 aliases must produce identical formatting.
Refs cflmy/marqdo#9, cflmy/marqdo-cli#11
The fail-closed gates must run with MARQDO_STDLIB_DIR explicitly pointed at a
missing or tampered Bundle; inheriting the caller environment let a CLI with an
adjacent valid Bundle fall back and made the missing-bundle negative pass.
Reproduced with an installed CLI that has stdlib/ next to the binary.
Refs cflmy/marqdo#9
Pin ext-http/ext-regex/ext-archive at the merged explicit-Package candidates
(they stay planned, never join the default Bundle) and extend the root
acceptance gate to run any extension checkout that publishes the current
package layout (marqdo.yaml + index.mq.md + scripts/test.sh). Record the actual
package-entry decision in the ledger and evidence: the three domain modules are
consumed through the public @alias import after marqdo lock, with the original
domain tests and baseline terminal values preserved.
Refs cflmy/marqdo#9
M2 candidate for cflmy/marqdo#9: pin std-text/std-system/std-io/std-fs/
std-data/std-collections at the exact receiving-repo candidate commits,
activate them in the root catalog with their own scripts/test.sh entry, and
extend integration.sh with the root acceptance-stdlib gate.
The previous requires arrays were design inputs, not real dependencies: the
migrated modules import only CLI language/host builtins and same-repository
siblings, so every active stdlib component now requires only cli (the Table
pair also declares the coordinated checks_with). core/encoding/net stay planned
and do not join the Bundle.
M0 of cflmy/marqdo#9: the root ledger now records the verified baseline, the
151 public functions of the 20 pre-migration modules, the frozen Bundle-root
paths, the test/assertion ownership and the decisions that replace the earlier
path-plan (which would have changed public std: imports). Nine receiving-repo
sub-issues are linked.
One producer owns Bundle composition from the exact component gitlinks
(scripts/build-stdlib.py + scripts/stdlib-bundle.json): it publishes only
modules/**/*.mq.md of active stdlib components, rejects symlinks, submodules,
case/NFC collisions, tests/ and unsafe paths, generates the current
stdlib.json digest and requires an explicit version bump when content changes.
scripts/acceptance-stdlib.py is the root composition gate with explicit
--cli/--bundle inputs: it verifies the manifest independently, runs each active
component entry, runs the cross-repository composition fixtures (official
aliases, Table split, default-Bundle smoke), enforces fail-closed negatives and
optionally proves deterministic packaging with the CLI packer.
Contract tests build real temporary Git repositories and cover the gitlink
identity path, determinism, all rejection cases and the explicit version bump.
Refs cflmy/marqdo#9
The duplicate-settings guard compared the section field dict with a set
and could raise TypeError instead of reporting the real configuration
error. Compare sets and add a fixture accepting a section name that
differs from its path.
Implement the G01/G02 governance checks of ADR 0001 section 4:
- accept the single `kind = "domain"` role (release none/base, empty
requires, root-level extensions/<id> or stdlib path) while keeping the
existing root-layer rules for direct components;
- with `--checkouts`, expand every active domain at its pinned gitlink,
read that commit's own components.toml/.gitmodules, validate its
gitlinks, remotes, HEAD/dirty state and entries, and refuse a third
gitlink level or implementation files in aggregate layers;
- flatten the recursive tree into one in-memory global graph: unique
ids/remotes, active-never-depends-on-planned, requires DAG acyclic,
checks_with cycles allowed, stdlib/core/tool dependency boundaries and
requires never targeting a domain;
- structured failures name the responsible label/path and never skip
unverified layers silently. Existing six-component tree passes both
modes; 44 integration tests cover positive and negative nested Git
fixtures without network access.
Repeated --without flags were ignored by install.sh (last wins), so
rust-docs still filled /tmp and hit quota; prefer --components= and
a home-cache work dir instead of tmpfs.
Co-authored-by: Cursor <cursoragent@cursor.com>
Stop plan from clobbering an existing resources workbook with an explore
skeleton. Add llm.prompt helpers and agent-plan-preserve gold.
Co-authored-by: Cursor <cursoragent@cursor.com>
Launchpad builds only need rustc + cargo + rust-std (debian/rules PATH),
but install.sh was still shipping rust-docs-json-preview / rustfmt /
rls (~1G). Also drop the 1.5G extract dir via EXIT trap when install
fails — the leftover is what filled /tmp last run.
Co-authored-by: Cursor <cursoragent@cursor.com>
Switch ext add / gold / release builds to scripts/build-web-plugin.sh,
drop the Rust archive from the Cargo workspace, and resolve libweb from
plugins/web/build (and target copies) without MARQDO_WEB_PLUGIN.
Co-authored-by: Cursor <cursoragent@cursor.com>