Skip to content

feat(setup): offer the Apache Incubator's marketplace to ASF projects - #2383

Merged
potiuk merged 4 commits into
mainfrom
feat/incubator-marketplace-offer
Nov 26, 2026
Merged

potiuk merged 4 commits into
mainfrom
feat/incubator-marketplace-offer

Conversation

@potiuk

@potiuk potiuk commented Nov 26, 2026

Copy link
Copy Markdown
Member

Summary

The Apache Incubator now ships every one of its skills as a plugin in its own Claude Code, Codex and Copilot marketplaces (the skills-as-directories change in apache/incubator). Magpie's ASF catalogue still described most of them as single files nobody could install, and nothing pointed an ASF project at them. This refreshes the catalogue and offers the marketplace, once, during setup.

  • Catalogue refreshed from tools/dev/check-skill-source-drift.py: nine skills move from single-file to untagged (each is now a directory, not yet tagged), and every published skill lists claude-code, codex, copilot (even releasecheck was missing Copilot). The note that moving them into directories was still to be proposed to the Incubator is replaced. releasecheck-0.5.1 stays the only pin: no new tags exist.
  • Marketplace name recorded: all three Incubator catalogs name the marketplace apache-incubator; the descriptor now carries marketplace: apache-incubator, so a skill installs as <skill>@apache-incubator.
  • The releasecheck descriptor is renamed from apache-incubator to apache-incubator-releasecheck, matching the apache-incubator-<skill> ids of the skills pinned after it and freeing apache-incubator for the marketplace. A project that already trusts the old id in its <project-config>/skill-sources.md needs to update it.
  • The offer, for an ASF project. "ASF" is decided by the fail-closed parser the ASF network reconciliation already uses, through a new setup_preflight.organization_network --is-asf flag (run, like every pre-flight call, with PYTHONPATH set to the installed checker), so the project template's examples and a TODO value never count.
    • setup install Step M5 and a marketplace setup update list the Incubator skills the ASF catalogue gives for the detected agent (Claude Code, Codex, Copilot), minus those already installed, then print the marketplace's add command and how to install a skill from it; when nothing is left, they offer nothing. Printed, never run: the Incubator is a separate trust decision, and it maintains these skills, not Magpie.
    • The offer says plainly that a marketplace install tracks apache/incubator's default branch: no tag, no commit pin, nothing Magpie verified, unlike a source pinned through setup skill-sources. The catalogue says the same.
    • A pinned-snapshot setup update points once at the catalogue and /magpie-setup skill-sources, when the project trusts no apache-incubator- source yet.
    • Each offer is recorded once in ~/.cache/apache-magpie/companions-offered (apache-incubator <agent>, apache-incubator snapshot), the per-user file the companion offer already uses; an unwritable file only skips the record.
  • The drift check verifies the marketplace name: check-skill-source-drift.py reads each catalog's own name and reports a descriptor whose marketplace differs, since <skill>@<marketplace> would then not install.

A follow-up PR will tell adopters when a curated pin they use moves (setup update proposing and staging the bump).

Type of change

  • Skill change (plugins/magpie-setup/skills/setup/install.md Step M5, update.md Step 0b and Step 6f)
  • Python (setup_preflight.organization_network --is-asf; tools/dev/check-skill-source-drift.py reads catalog names)
  • Organization adapter (organizations/ASF/skill-sources.md, docs/skill-sources/registry.md)
  • Specs (adoption-and-setup.md, organization-adapters.md)

Test plan

  • prek on the changed files, all hooks
  • check-skill-source-drift.py before the refresh: its findings were the status and marketplace drift fixed here, and nothing else. A rerun after the refresh hit GitHub's unauthenticated rate limit; the weekly skill-source-drift workflow re-checks with a token.
  • Tests: --is-asf prints true only for a real declaration (TODO and a missing file are false); the drift check passes a matching marketplace name and reports a different one
  • Evals: setup/step-m5-companion-offer 7/7, with two new cases (an ASF project is offered the Incubator marketplace; a non-ASF project is not); setup/step-upgrade-companion-offer 3/3
  • Adversarial review (codex, copilot, antigravity): fixed the snapshot command form, an offer with nothing left in it, a non-fail-closed ASF check, update's offer only pointing at install's rules, the unchecked marketplace name and a missing write fallback. Not changed: the rename (an alias was considered and declined; see above), and the September design document, which records the proposal as it stood.

RFC-AI-0004 compliance

  • HITL: the offer prints commands; adding the marketplace and installing a skill are the operator's.
  • Sandbox: no new host access; the catalogue is read from the installed tree or raw.githubusercontent.com, as the companion page already is.

🤖 Generated with Claude Code

@potiuk potiuk added family:setup setup-* skills capability:platform Framework / agent substrate skills (install, verify, doctor, override, status, setup bootstrap) labels Nov 26, 2026
@potiuk
potiuk added this pull request to stack #2385 November 26, 2026 21:47
@github-actions github-actions Bot added family:tools tools/* family:docs Docs, MISSION.md, READMEs family:ci .github workflows, prek, validators substrate:framework-dev Tool substrate: build / validate / eval the framework itself substrate:setup Tool substrate: adopter-side setup state resolved at runtime (lock parsing, floors, fingerprints) family:dev Repo dev: .asf.yaml, spec-loop specs, Node manifests, .claude/settings.json labels Nov 26, 2026
- Refresh the ASF catalogue of Incubator skills from apache/incubator:
  every skill is now a directory (untagged rather than single-file) and
  all eleven are listed in the Incubator's Claude Code, Codex and
  Copilot marketplaces.
- Record the marketplace name, apache-incubator, which all three
  catalogs use, on the descriptor (marketplace: apache-incubator), and
  rename the releasecheck descriptor from apache-incubator to
  apache-incubator-releasecheck, matching its siblings and freeing the
  name for the marketplace.
- For an ASF project, install Step M5 and a marketplace update offer
  the Incubator's marketplace once per agent: the skills it lists for
  that agent (minus those already installed), the add command and how
  to install a skill from it, printed and never run. A pinned-snapshot
  update points once at the catalogue and setup skill-sources. Both
  are recorded in ~/.cache/apache-magpie/companions-offered.
- Two eval cases for the offer: an ASF project gets it, a non-ASF
  project does not.

Generated-by: Claude Opus 5
- Decide "ASF project" with the fail-closed parser the ASF network step
  uses, through a new setup_preflight.organization_network --is-asf
  flag, so the project template's examples and a TODO value never count.
- Offer nothing when every Incubator skill for the agent is already
  installed; keep them all, and say so, when the plugin list cannot be
  read; skip the record when the offered-file cannot be written.
- Say in the offer and the catalogue that a marketplace install tracks
  apache/incubator's default branch, with no tag, no commit pin and
  nothing Magpie verified.
- Spell the offer's rules out in update Step 0b rather than only
  pointing at install, and give the snapshot pointer its own paragraph
  with the snapshot command, /magpie-setup skill-sources.
- check-skill-source-drift.py reads each catalog's own name and reports
  a descriptor whose marketplace differs.

Generated-by: Claude Opus 5
The --is-asf calls named the module without PYTHONPATH, so under
python3 -P they could not import setup_preflight. They now set it to
the installed pre-flight checker's parent directory, as every other
pre-flight call in install and update does.

Generated-by: Claude Opus 5
…the plugin

Install Step V.2 copied the read-only gatherer agent from
<framework>/tools/agent-isolation/agents/, a path no marketplace install
had, which the tools-plugin check flagged. The magpie-security-tools
plugin now ships the agent file, and Step V.2 copies it from the
installed plugin through its stable link
(~/.claude/magpie/security-tools/agent-isolation/agents/), or from an
unmodified framework checkout, never from the <framework> tree under
~/.cache/apache-magpie/framework/: that tree is writable from the
sandbox, and the agent's hook runs outside it.

The check-family-plugins hook now matches the agent file, so its plugin
copy never goes stale, and doctoc leaves the copy's frontmatter alone.

Generated-by: Claude Opus 5
@potiuk
potiuk force-pushed the feat/incubator-marketplace-offer branch from ce41e67 to 08cd8f7 Compare November 26, 2026 22:15
@potiuk
potiuk enabled stacked auto-merge (squash) November 26, 2026 22:17
@potiuk
potiuk merged commit ed94583 into main Nov 26, 2026
14 checks passed
@potiuk
potiuk deleted the feat/incubator-marketplace-offer branch November 26, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:platform Framework / agent substrate skills (install, verify, doctor, override, status, setup bootstrap) family:ci .github workflows, prek, validators family:dev Repo dev: .asf.yaml, spec-loop specs, Node manifests, .claude/settings.json family:docs Docs, MISSION.md, READMEs family:setup setup-* skills family:tools tools/* substrate:framework-dev Tool substrate: build / validate / eval the framework itself substrate:setup Tool substrate: adopter-side setup state resolved at runtime (lock parsing, floors, fingerprints)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant