Skip to content

Add canonical browser artifact persistence#449

Merged
chubes4 merged 1 commit into
mainfrom
issue/437-browser-artifact-persistence
Jun 2, 2026
Merged

Add canonical browser artifact persistence#449
chubes4 merged 1 commit into
mainfrom
issue/437-browser-artifact-persistence

Conversation

@chubes4

@chubes4 chubes4 commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds wp-codebox/persist-browser-artifact as a REST-visible ability for parent sites to receive browser-produced files and persist a canonical WP Codebox artifact bundle.
  • Stores mixed text/binary browser artifacts under files/browser/ with manifest entries, SHA-256 digests, changed-file metadata, review evidence, test-result placeholder, runtime metadata, and caller provenance.
  • Reuses the existing artifact store/list/get bundle shape and validation rules, including safe relative paths, duplicate rejection, encoding validation, size limits, MIME type inference, and blocked server-executable extensions.

Verification

  • php -l packages/wordpress-plugin/src/class-wp-codebox-artifacts.php
  • php -l packages/wordpress-plugin/src/class-wp-codebox-abilities.php
  • php -l tests/smoke-wordpress-plugin.php
  • npm run wordpress-plugin-smoke
  • npm run build

Issues

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Implemented the parent-side browser artifact persistence ability, canonical artifact bundle writer, and smoke coverage; Chris remains responsible for review and merge.

@chubes4 chubes4 changed the title Add browser artifact persistence ability Add canonical browser artifact persistence Jun 2, 2026
@chubes4
chubes4 merged commit bda5e52 into main Jun 2, 2026
@chubes4
chubes4 deleted the issue/437-browser-artifact-persistence branch June 2, 2026 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add canonical browser artifact persistence from Playground back to parent

1 participant