Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,22 @@ the initial snapshot of the prototype.

## [Unreleased]

### Added
### Changed

- **Breaking (experimental):** Renamed every experimental-tier ability from the
`wp/` namespace to `core-experimental/` so the name itself tells consumers
the ability is still in development
([issue #18](https://github.com/WordPress/abilities/issues/18)). Every
`wp/<name>` became `core-experimental/<name>` — the twelve experimental
abilities: `media-query`, `media-upload`, `media-update`, `media-delete`,
`settings-update`, `user-create`, `user-update`, `user-delete`,
`terms-query`, `term-create`, `term-update`, `term-delete`. Per the rename
protocol (NAME-LIFECYCLE.md) the manifest entries record the old name under
`renamed_from` (stamped into each ability's `meta.renamed_from`), the old
names stop working with the release carrying this change, and no alias
period is offered. Tier values and promise levels are unchanged:
`core-experimental/` abilities keep the no-promises experimental tier;
`core/` and `wordpress/` semantics are untouched.

### Added

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ canonical ability.

Ability names are adopted with a paper trail: a `core/`-prefix or `core`-tier
ability must link a core trac/GitHub ticket, recorded in its manifest entry's
`proposal` field. Experimental (`wp/`) abilities don't need one yet; filing
`proposal` field. Experimental (`core-experimental/`) abilities don't need one yet; filing
it is part of promotion. Promotions and renames follow the promotion path and
rename protocol in [NAME-LIFECYCLE.md](NAME-LIFECYCLE.md).

Expand Down
12 changes: 6 additions & 6 deletions KNOWN-ISSUES.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ until core decides otherwise:
- Deletion formats the post before deleting it.
- `get_post_by_slug` is unreachable via the write schemas — a dead path kept
for parity with core.
- `wp/media-query` (WordPress/ai PR #1098):
- `core-experimental/media-query` (WordPress/ai PR #1098):
- A status the caller may not query reports `media_invalid_param` (with a
400 status), not the ability framework's `ability_invalid_permissions` —
the PR wraps its internal status error in the execute callback.
Expand All @@ -48,7 +48,7 @@ until core decides otherwise:
- With raw fields requested, a collection is answered in the edit context:
items the caller cannot edit are withheld from the list but still counted
in the totals.
- `wp/settings-update` (WordPress/ai PR #764):
- `core-experimental/settings-update` (WordPress/ai PR #764):
- All-or-nothing by design (`settings_invalid_param` 400 →
`settings_cannot_manage_privacy_options` 403 →
`settings_invalid_stored_value` 500 → writes): an error leaves every
Expand All @@ -70,7 +70,7 @@ until core decides otherwise:
settings endpoint skips the setting without an error.
- `settings-update` is not registered when every exposed setting is
read-only (multisite), where the endpoint always exists.
- `wp/terms-query` (WordPress/ai PR #1099):
- `core-experimental/terms-query` (WordPress/ai PR #1099):
- A missing, hidden, or taxonomy-mismatched term is denied like an unreadable
one — a generic permission denial (no 404 vs 403 distinction), so terms
cannot be probed through the ability. A direct (unvalidated) call reports
Expand All @@ -95,7 +95,7 @@ until core decides otherwise:
branches of the matrix; a custom taxonomy's non-bool opt-in value (e.g.
`'yes'`) is not normalized to a bool, which the loose object-list match
and the ability's truthiness check read exactly like 7.2's bool cast.
- `wp/media-upload` / `wp/media-update` / `wp/media-delete` (WordPress/ai PR #1104):
- `core-experimental/media-upload` / `core-experimental/media-update` / `core-experimental/media-delete` (WordPress/ai PR #1104):
- Trashing an attachment requires the site to enable the media trash
(`MEDIA_TRASH`): without it, a non-forced delete answers
`media_trash_not_supported` (501), and `force` string values coerce like
Expand All @@ -117,8 +117,8 @@ until core decides otherwise:
- The delete capability is re-checked right before anything is removed, so
a hook refusal surfaces as `media_cannot_delete` (500) on the
`pre_delete_attachment` veto.
- `wp/term-create` / `wp/term-update` / `wp/term-delete` (WordPress/ai PR #1103):
- Terms cannot be trashed, so `wp/term-delete` only deletes with `force`
- `core-experimental/term-create` / `core-experimental/term-update` / `core-experimental/term-delete` (WordPress/ai PR #1103):
- Terms cannot be trashed, so `core-experimental/term-delete` only deletes with `force`
set to true: a missing or false `force` answers `terms_trash_not_supported`
(501), and string values coerce like booleans through the delete route's
query-string input (`"false"` does not delete, `"true"` does).
Expand Down
12 changes: 6 additions & 6 deletions NAME-LIFECYCLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ integrations — for good.

| Prefix | Tier | Meaning | Promises |
|---|---|---|---|
| `wp/` | experimental | Incubation. Where **all** new abilities — including every write ability — start. | **None.** Name AND schema may change or vanish in any release. |
| `core-experimental/` | experimental | Incubation. Where **all** new abilities — including every write ability — start. | **None.** Name AND schema may change or vanish in any release. |
| `core/` | stable | Core-destined. Adopted **at proposal filing**, after iteration is done. From then on it is frozen: schema backwards compatibility applies immediately. | Semver applies. |
| `wordpress/` | stable | Package-owned, not core-destined. Rare. | Semver applies. |
| *(tier flips to)* — | core | Landed in actual core. The package copy is a **backport only**, mechanically generated, and never diverges from core's implementation. | Identical to core's. |

### Promotion path

Iteration happens under `wp/`; landing in core is a mechanical pipeline, not a
rewrite. Worked example, `wp/post-update` (a planned write ability, not yet
Iteration happens under `core-experimental/`; landing in core is a mechanical pipeline, not a
rewrite. Worked example, `core-experimental/post-update` (a planned write ability, not yet
shipped):

1. **Incubate:** `wp/post-update` iterates and gets tested through the MCP
1. **Incubate:** `core-experimental/post-update` iterates and gets tested through the MCP
adapter against real tasks. Names and schema may still change freely.
2. **Ready:** file the core proposal (a trac ticket or GitHub issue).
3. **Same release:** rename to `core/post-update` — tier becomes `stable`,
Expand Down Expand Up @@ -49,7 +49,7 @@ Reviewers **reject alias PRs** — see [CONTRIBUTING.md](CONTRIBUTING.md).
Backwards-compatibility promises are **per-ability-tier, not
per-package-version**:

- Removing or changing an experimental (`wp/`) ability or its schema is fine
- Removing or changing an experimental (`core-experimental/`) ability or its schema is fine
in any release; it is documented as a CHANGELOG breaking-for-experimental
entry.
- Breaking changes to `stable` (`core/`, `wordpress/`) or `core` tier
Expand All @@ -61,7 +61,7 @@ per-package-version**:

Tier/prefix rules are machine-checked, not aspirational: `ManifestTest` and
`composer run verify:manifest` enforce that experimental names start with
`wp/` (and neither `core/` nor `wordpress/`), stable names start with `core/`
`core-experimental/` (and neither `core/` nor `wordpress/`), stable names start with `core/`
or `wordpress/`, `core`-tier entries have `core_since` and a `proposal` set,
`core/`-prefix stable entries have a `proposal`, names are unique,
`renamed_from` never collides with a live name, and every `class` exists and
Expand Down
Loading
Loading