Skip to content

Distribution S1: single pitch, all capabilities Community, gispulse demo, QGIS plugin publishable, MCP/data.gouv manifests - #517

Merged
imagodata merged 12 commits into
mainfrom
claude/distribution-s1
Nov 1, 2026
Merged

imagodata merged 12 commits into
mainfrom
claude/distribution-s1

Conversation

@imagodata

@imagodata imagodata commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Why

GISPulse 2.5.1 ships 144 capabilities, 20+ business templates and 29 plugins — and has 2 GitHub stars, no listing on plugins.qgis.org, no data.gouv.fr reuse, a docs site announcing v2.0.0 / 118 capabilities, a README promising an ArcGIS add-in and a Tauri app that do not exist, and a Show HN drafted three times and never posted. This PR is sprint S1 ("vitrine") of the Q4 2026 distribution plan in docs/roadmap-distribution-2026-q4.md (milestone Distribution Q4 2026, issues #504–#516).

What

One pitch (README.md, docs-site home FR/EN, pricing, FAQ, capabilities guide): French & Belgian open geodata ready to run — 22 sources, 20+ business workflows, 144 capabilities, DuckDB inside, "save in QGIS, rules fire". Counters aligned to 2.5.1 / 144 (scripts/build_capability_matrix.py --check is in sync). ArcGIS add-in / Tauri app references removed; ArcGIS Pro stays documented as an OGC API Features consumer. Python badge fixed to 3.12+ (what pyproject.toml requires). README carries mcp-name: io.github.imagodata/gispulse for the MCP registry ownership check.

All 144 capabilities are Community (decision 2026-11-01): raster and network leave pro.features in core/pricing_catalog.yml; the per-capability check_tier("pro") calls are removed from capabilities/{raster,network,network_expansion,network_resilience,routing,surface_sampling}.py. Pro is scoped to operations (PostGIS/hybrid, cluster ESB triggers, DAG executor, visual editor, monitoring, cron). The generic gate is untouched — tests/unit/test_pricing_catalog_tiers.py proves postgis / esb_triggers / dag_executor still raise TierError in Community. Not in this PR: gispulse-enterprise/config/pricing_commercial.yml and the portal-pro TierGate (tracked in #505).

gispulse demo list|run (src/gispulse/cli_demo.py): offline demos driven by a demo: block in templates/manifest.yml, executed through SessionManager.run_pipeline_v2 (same path as gispulse run), every DAG leaf written to <out>/<template>.gpkg next to a replayable pipeline.json. Samples resolve from --data-dir → repo examples/ → ~/.cache/gispulse/demo → release tag on GitHub (SHA-256 verified), because neither examples/ nor templates/ ships in the wheel. Four demos run end to end on the bundled Muret data: cadastre_topology_cleanup (20 s, 17 212 parcels), risques_inondation_parcelles, services_aires_influence (two new small Community templates), reseau_topology_prep (works only with the tier move above).

Template library fixes found on the way (#507 tracks the rest): 18/22 templates failed the v2 schema (additionalProperties) — the schema now accepts domain, author, tags, inputs_notes, requires_pro, requires_plugins; cadastre_topology_cleanup and reseau_topology_prep passed parameters their capabilities do not accept. Most business templates still call calculate / spatial_aggregate with incompatible signatures — not rewritten here.

QGIS plugin publishable (#508): plugins.qgis.org rejects any ZIP without gispulse/LICENSE (mandatory since June 2024), so the plugin was never uploadable; experimental=False so it shows in the default catalogue; homepage → docs site while gispulse.dev is down (#509). Optional publish-qgis-plugin job in release.yml (scripts/upload_qgis_plugin.py, XML-RPC plugin.upload), skipped without the OSGEO_* secrets. qgis_plugin/PUBLISHING.md rewritten on the validator's real rules; install docs no longer link to a private issue.

Distribution manifests: server.json (official MCP registry, validated against the 2025-12-11 schema; publishing needs a PyPI release that contains the README mcp-name: line — #510), docs/distribution/mcp-registry.md, docs/distribution/datagouv-reuses.md (13 ready-to-paste reuse sheets with resolved dataset/service slugs + Belgian contacts — #511), docs/roadmap-distribution-2026-q4.md.

Verification

  • python scripts/build_capability_matrix.py --check → "Matrix in sync (144 capabilities)".
  • gispulse demo run reseau_topology_prep 0.8 s, cadastre_topology_cleanup ~20 s, demo list → 4 with sample / 20 without.
  • Targeted: test_cli_demo (31), test_pricing_catalog_tiers, raster/network S11, scaffold, pipeline schema, templates router, network expansion, routing → 223 passed. Full tests/unit on the vitrine lot: 6543 passed, 11 failed — all pre-existing (step_kinds/run_control/run_events, test_cli_source S3, test_cli_storage), reproduced on origin/main.
  • ruff check clean on every changed .py; uv.lock untouched; plugin ZIP rebuilt with gispulse/LICENSE (15 files, 33 kB).
  • Not verified: VitePress build (no node_modules locally) — docs CI will tell.

Review round (Opus reviewer, 14 findings + 11 omissions)

Fixed in 6061a39 / 222932e: surfaces in the two new templates were measured in EPSG:3857 (1.9× off) — now EPSG:2154 and asserted; risques_inondation_parcelles rebuilt on overlay_intersection (exposed surface per parcel × level, no duplicates: high 627 parcels / 52.5 ha, medium 1 670 / 116.9 ha); services_aires_influence names 10/10 cells; --force only removes a directory carrying the .gispulse-demo marker; --data-dir covers manifest and templates (true offline); cache keyed on the download ref; reseau_topology_prep declares the [network] extra and demo run checks it up front; step_results opt-in (keep_step_results=True) so gispulse run/portal keep their memory profile; rules_applied no longer counts input/ref nodes; six templates lose a stale requires_pro; postgis_sql listed as Community; ArcGIS add-in pages, their sidebar entries and the Tauri install mode removed (plus the dead link); README no longer claims "no download"; gispulse demo documented in the CLI guide; coverage pages regenerated.

CI: plugins, capability-matrix-drift, security-audit, build-docker, changelog, DCO green. test (3.12) runs the full suite for the first time since October (lint now uses the locked ruff): 6 600 passed, 8 failed — the eight pre-existing orchestration failures tracked in #518, reproduced on origin/main. Merged with admin override on that basis, as for #496/#501/#503.

After merge

Next release must ship this so that a wheel-installed gispulse demo finds the demo: blocks at the tag, the PyPI README carries mcp-name:, and the plugin ZIP from the GitHub Release can be uploaded by hand once (#508). CI lint on main is already red (ruff 0.16 unpinned) independently of this PR.

Closes #504, closes #505, closes #506.
Refs #507, #508, #509, #510, #511, #512, #513.

🤖 Generated with Claude Code

sducournau and others added 9 commits November 1, 2026 15:38
The QGIS plugin repository rejects any ZIP without a LICENSE file next to
metadata.txt (mandatory since June 2024), so the plugin was never
publishable. Ship qgis_plugin/LICENSE (AGPL-3.0, copy of the repo licence),
flip experimental=False so the plugin shows in the default catalogue, point
homepage at the documentation site while gispulse.dev is not served, and
prepend the changelog entry.

Add an optional publish-qgis-plugin job to release.yml that uploads the
built ZIP through the repository's XML-RPC endpoint
(scripts/upload_qgis_plugin.py, same plugin.upload call as the Plugin
Builder) when OSGEO_USERNAME / OSGEO_PASSWORD are set; skipped otherwise.
Rewrite qgis_plugin/PUBLISHING.md around the validator's actual rules, add
the plugin checklist to RELEASING.md, and drop the private-issue link from
the install docs (FR + EN). The scaffold test now asserts LICENSE is in the
ZIP and experimental is False.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: sducournau <simon@imago.dev>
All 144 capabilities are now free; Pro is scoped to operations (PostGIS/hybrid
engine, cluster-grade ESB triggers, DAG executor, visual editor, monitoring,
cron pipelines).

- pricing_catalog.yml: raster and network move from pro to community features
- drop the per-capability check_tier("pro") gates in raster, network,
  network_expansion, network_resilience, routing and surface_sampling
- tests: 'blocked in community' become 'allowed in community'; add catalog
  invariants and keep proving the generic gate blocks Pro-only features
- docs: capability guide, CLI listing, playground scenes and usage matrix no
  longer label raster/network as Pro

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: sducournau <simon@imago.dev>
…nters to 2.5.1

- README: new hero (French & Belgian open geodata, ready to run), 60-second
  demo quick start, sources / workflows / capabilities / QGIS / MCP overview,
  'save in QGIS, rules fire', open-core section (all capabilities free)
- remove the ArcGIS add-in and Tauri desktop app (neither exists) from the
  README, pricing, FAQ and community pages; fix repository structure
- docs-site home pages FR/EN: new tagline, sources and workflows cards, banner
  and counters to 2.5.1 / 144 capabilities
- pricing pages FR/EN: Community = all 144 capabilities, Pro = operations
- CHANGELOG: Unreleased entries (mirrored in docs-site changelogs)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: sducournau <simon@imago.dev>
… 2026 distribution roadmap

Add server.json for the official MCP registry (PyPI gispulse 2.5.1, uvx, stdio),
docs/distribution/mcp-registry.md (publish steps, Smithery/mcp.so/Glama status,
client configs), docs/distribution/datagouv-reuses.md (13 data.gouv.fr reuse
sheets with resolved dataset slugs, plus a Belgium section) and the 90-day
distribution roadmap.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: sducournau <simon@imago.dev>
`gispulse demo list` reads templates/manifest.yml and shows which bundled
templates carry a `demo:` block (sample files, layer, ref layers, param
overrides, pinned SHA-256); `gispulse demo run <template>` stages the
sample into ./gispulse-demo/<template>/, runs the template through
SessionManager.run_pipeline_v2 (the `gispulse run` path) and writes every
DAG leaf as a layer of <template>.gpkg next to a replayable pipeline.json.
Samples resolve from --data-dir, the checkout's examples/, then a per-user
cache filled from the release tag on GitHub with SHA-256 verification,
because neither examples/ nor templates/ ships in the wheel.

Demos: cadastre_topology_cleanup (Muret parcels, ~20 s),
risques_inondation_parcelles and services_aires_influence (two new small
Community templates, < 1 s), reseau_topology_prep (stops at
connectivity_check with a readable message while that capability is Pro).

Also:
- pipeline v2 schema accepts the catalogue metadata keys carried by the
  bundled templates (domain, author, tags, inputs_notes, requires_pro,
  requires_plugins) — `gispulse run -r templates/<x>.json` was rejected.
- cadastre_topology_cleanup / reseau_topology_prep: drop params that
  topology_check / connectivity_check do not accept.
- PipelineResult.step_results exposes every step output.
- docs: "Try it in 60 seconds" in the quickstart (FR + EN), [demo] marker
  in templates/INDEX.md, CHANGELOG entry, `slow` pytest marker.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: sducournau <simon@imago.dev>
…angelog, soften template counters

Compose the [Unreleased] section as the union of the vitrine/pricing, demo
command, QGIS plugin and distribution-manifests entries (the merges kept
only the first branch's block) and mirror it in docs-site/changelog.md
(FR) and docs-site/en/changelog.md. README, home pages and pricing pages now
say "20+ business workflows" instead of a hard-coded 22 — the demo lot added
two templates and the count drifts with every addition — and the pricing
pages count the same 22 FR/BE sources as the home pages. The
reseau_topology_prep demo note no longer says "(Pro)": network capabilities
are Community.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: sducournau <simon@imago.dev>
Copilot AI balanced review requested due to automatic review settings November 1, 2026 15:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved critical defects allow destructive deletion of ancestor directories and produce incorrect flood-exposure calculations and incomplete service catchments.

5 open issues
What changed in this PR

This PR implements the first stage of GISPulse’s distribution plan: clearer FR/BE open-data positioning, easier demo onboarding, Community access to raster and network capabilities, and preparation for external listings.

Changes:

  • Adds gispulse demo list|run, sample resolution, replayable pipelines, and two demonstration templates.
  • Moves raster and network capabilities to Community while preserving Pro operational gates.
  • Updates documentation and prepares QGIS plugin publishing, MCP registration, and data.gouv.fr reuse submissions.
File Description
tests/​unit/​test_raster_capabilities_s11.py Verifies Community raster access.
tests/​unit/​test_qgis_plugin_scaffold.py Checks packaged license and stable metadata.
tests/​unit/​test_pricing_catalog_tiers.py Tests Community access and retained Pro gates.
tests/​unit/​test_network_capabilities_s11.py Verifies Community network access.
tests/​unit/​test_cli_demo.py Covers demo resolution, overrides, and execution.
templates/​services_aires_influence.json Adds service catchment demonstration.
templates/​risques_inondation_parcelles.json Adds parcel flood-exposure demonstration.
templates/​reseau_topology_prep.json Removes unsupported connectivity parameters.
templates/​manifest.yml Registers demos and sample checksums.
templates/​INDEX.md Documents demos and new templates.
templates/​cadastre_topology_cleanup.json Removes unsupported topology parameter.
src/​gispulse/​orchestration/​session_manager.py Exposes individual pipeline step outputs.
src/​gispulse/​core/​pricing_catalog.yml Moves raster and network to Community.
src/​gispulse/​core/​pipeline_schema.py Accepts template catalogue metadata.
src/​gispulse/​cli.py Registers the demo command group.
src/​gispulse/​cli_demo.py Implements demo discovery, staging, and execution.
src/​gispulse/​capabilities/​surface_sampling.py Removes the Pro execution gate.
src/​gispulse/​capabilities/​routing.py Removes routing Pro gates.
src/​gispulse/​capabilities/​raster.py Removes raster Pro gates.
src/​gispulse/​capabilities/​network.py Removes network Pro gates.
src/​gispulse/​capabilities/​network_resilience.py Removes resilience Pro gates.
src/​gispulse/​capabilities/​network_expansion.py Removes the expansion Pro gate.
server.json Adds MCP registry metadata.
scripts/​upload_qgis_plugin.py Adds XML-RPC plugin upload support.
RELEASING.md Adds QGIS publishing checklist.
qgis_plugin/​PUBLISHING.md Revises submission and release guidance.
qgis_plugin/​metadata.txt Marks plugin stable and updates homepage.
qgis_plugin/​LICENSE Includes the license required for submission.
pyproject.toml Registers the slow-test marker.
docs/​USAGE_MATRIX.md Updates workflow tier assignments.
docs/​roadmap-distribution-2026-q4.md Records the distribution plan.
docs/​distribution/​mcp-registry.md Documents MCP publishing procedures.
docs/​distribution/​datagouv-reuses.md Provides reuse sheets and Belgian outreach guidance.
docs-site/​templates.md Updates French preset counts.
docs-site/​pricing.md Revises French tier descriptions.
docs-site/​plugins/​qgis-install.md Clarifies installation pending publication.
docs-site/​playground/​index.md Removes the network demo’s Pro label.
docs-site/​integrations/​bdtopo.md Updates capability-count comments and text.
docs-site/​index.md Refreshes French positioning and counters.
docs-site/​guide/​cli.md Labels raster and network as Community.
docs-site/​guide/​capabilities.md Updates counts and tier guidance.
docs-site/​getting-started/​quickstart.md Adds French demo onboarding.
docs-site/​getting-started/​configuration.md Updates Community and Pro feature lists.
docs-site/​faq.md Refreshes release and shipped-component descriptions.
docs-site/​en/​templates.md Updates English preset counts.
docs-site/​en/​pricing.md Revises English tier descriptions.
docs-site/​en/​plugins/​qgis-install.md Clarifies installation pending publication.
docs-site/​en/​playground/​index.md Removes the network demo’s Pro label.
docs-site/​en/​index.md Refreshes English positioning and counters.
docs-site/​en/​guide/​capabilities.md Updates counts and tier guidance.
docs-site/​en/​getting-started/​quickstart.md Adds English demo onboarding.
docs-site/​en/​getting-started/​configuration.md Updates Community and Pro feature lists.
docs-site/​en/​faq.md Refreshes release and shipped-component descriptions.
docs-site/​en/​changelog.md Summarizes changes in English.
docs-site/​community.md Updates delivered-feature descriptions.
docs-site/​changelog.md Summarizes changes in French.
CHANGELOG.md Records demo, pricing, and distribution changes.
.gitignore Excludes generated demo output.
.github/​workflows/​release.yml Adds optional QGIS plugin publishing.

Review effort: Balanced

Comment thread src/gispulse/cli_demo.py Outdated
if not force:
raise DemoError(f"output directory {out_dir} already exists — pass --force to overwrite it")
resolved = out_dir.resolve()
if resolved in (Path.cwd().resolve(), Path.home().resolve(), Path(resolved.anchor)):
Comment on lines +29 to +35
"capability": "spatial_join",
"params": {
"ref_layer": "zones_retenues",
"predicate": "intersects",
"how": "inner",
"columns": ["risk_level"]
},
"id": "aires",
"type": "capability",
"capability": "voronoi_polygons",
"params": { "tolerance": 0.0, "only_edges": false },
Comment thread templates/services_aires_influence.json Resolved
Comment thread src/gispulse/cli_demo.py Outdated
Comment on lines +245 to +247
cached = self.cache_dir / rel
if cached.is_file() and (sha256 is None or sha256_of(cached) == sha256):
return cached
… release

The dev extra allowed any ruff <1.0 while uv.lock pins 0.15.11, so the
runners installed the newest ruff and failed on rules the codebase was never
checked against (2488 errors on main, 5 in plugins). With the locked minor,
`ruff check .` and `ruff check plugins/` pass on this branch.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: sducournau <simon@imago.dev>
sducournau and others added 2 commits November 1, 2026 16:54
…sioned cache, extras check

Templates
- area_length measures in EPSG:2154 (crs_meters) instead of its EPSG:3857
  default: area_m2 was ~1.9x off in risques_inondation_parcelles and
  services_aires_influence. Both demos now assert area_m2 == geometry.area.
- risques_inondation_parcelles is rebuilt on overlay_intersection: the
  `indicateurs` layer holds the part of each parcel inside a zone (one row
  per parcel x level, surface of that part), `bilan_zones` the dissolved
  exposed footprint per risk level with its surface. Description, manifest
  note and INDEX.md say so.
- services_aires_influence joins with `intersects` so schools sitting on the
  concave-hull boundary keep their name (10/10 cells, was 8/10).
- Stale Pro flags dropped: requires_pro false on six presets, "(PRO)"
  markers and legend removed from INDEX.md, stale connectivity_check note
  removed from manifest.yml and INDEX.md.
- New `demo.requires_extras` key (documented in the manifest header),
  declared for reseau_topology_prep (network -> networkx).

gispulse demo
- --force only removes a directory carrying the `.gispulse-demo` marker
  written by every run; anything else is refused with a clear message.
  An existing empty directory is reused.
- --data-dir is a repository-like root: templates/ resolves under it too
  (plus the examples/ mirror and flat layouts), so an offline wheel-only
  install works with a copy of the two directories.
- Cache keyed on the download ref (~/.cache/gispulse/demo/<ref>/...) for
  manifest, templates and samples alike: upgrading never serves the
  previous release's manifest.
- requires_extras checked before staging; exit 1 with the
  pip install "gispulse[<extra>]" to run. `demo list` shows an Extras column.
- "N step(s) executed" is the executed count; the replay hint says that
  `gispulse run` writes only the final step when several leaves were written.

SessionManager
- PipelineResult.step_results is opt-in (run_pipeline_v2(keep_step_results=True),
  passed by demo run); default callers get an empty dict and intermediate
  frames can be collected. rules_applied counts spec steps only (the DAG
  executor also returns the input nodes).

scripts/precompute_accessibility.py no longer claims to need a Pro tier or
licence key.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: sducournau <simon@imago.dev>
… mode, postgis_sql is Community, document gispulse demo

Review follow-ups on the S1 lot. README no longer claims the demo runs
without download (samples are fetched once from the release tag and
cached; a checkout reads examples/) and names the four templates verified
end to end, pointing to #507 for the rest; "ready-made workflows" becomes
"workflow templates"; compact Deployment / Development / Contributing /
Related projects sections restored. docs-site: ArcGIS add-in pages and
their sidebar entries removed (with the dead link from integrations/
arcgis.md), Tauri "Mode 4" install section and FAQ item removed, engine
guide no longer names a Tauri app, counters harmonised (22 sources, 20+
workflows), postgis_sql listed as Community in pricing/configuration/CLI
guide, `gispulse demo` documented in the CLI guide (FR/EN), coverage
pages regenerated (overlay_intersection and select_columns now used by a
template). CHANGELOG and its mirrors reworded to match what shipped
(schema fix scope, step_results opt-in, licence side effect, upload steps
gated on both OSGEO secrets). release.yml gates on both secrets;
RELEASING.md adds the server.json bump.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: sducournau <simon@imago.dev>
@imagodata
imagodata merged commit eae0dff into main Nov 1, 2026
10 of 11 checks passed
@imagodata
imagodata deleted the claude/distribution-s1 branch November 1, 2026 16:29
@imagodata imagodata mentioned this pull request Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants