Skip to content

Test: add forms claude codex#47144

Open
CGastrell wants to merge 5 commits intotrunkfrom
test/forms-add-claude-codex
Open

Test: add forms claude codex#47144
CGastrell wants to merge 5 commits intotrunkfrom
test/forms-add-claude-codex

Conversation

@CGastrell
Copy link
Contributor

WIP

Proposed changes:

Add a thin codex system to keep up with our code major guidelines and processes. The idea is to provide agents with pointers to processes and flows, tooling and commands, so that whenever a task is started it doesn't have to search the entire base.

Other information:

  • Have you written new tests for your changes, if applicable?
  • Have you checked the E2E test CI results, and verified that your changes do not break them?
  • Have you tested your changes on WordPress.com, if applicable (if so, you'll see a generated comment below with a script to run)?

Jetpack product discussion

p1771259406233769-slack-C052XEUUBL4

Does this pull request change what data or activity we track or use?

No

Testing instructions:

TBD

@CGastrell CGastrell self-assigned this Feb 16, 2026
Copilot AI review requested due to automatic review settings February 16, 2026 16:30
@CGastrell CGastrell added Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Status] In Progress [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Package] Forms Coverage tests to be added later Use to ignore the Code coverage requirement check when tests will be added in a follow-up PR labels Feb 16, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 16, 2026

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (Jetpack), and enable the test/forms-add-claude-codex branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack test/forms-add-claude-codex

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions
Copy link
Contributor

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


Follow this PR Review Process:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

If you have questions about anything, reach out in #jetpack-developers for guidance!


Jetpack plugin:

The Jetpack plugin has different release cadences depending on the platform:

  • WordPress.com Simple releases happen as soon as you deploy your changes after merging this PR (PCYsg-Jjm-p2).
  • WoA releases happen weekly.
  • Releases to self-hosted sites happen monthly:
    • Scheduled release: March 3, 2026
    • Code freeze: March 3, 2026

If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a codex system to help Claude AI agents (and human developers) navigate the Jetpack Forms package more efficiently. The codex serves as a persistent architecture documentation system that provides quick orientation without requiring developers to re-read thousands of lines of source code.

Changes:

  • Added a comprehensive .codex/ documentation system for the Forms package with architecture maps, flow documentation, and file deep-dives
  • Created command templates (codex-init and codex-update) to bootstrap and maintain codex systems for other projects
  • Updated root and project-level CLAUDE.md files with guidance on using the codex system

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
projects/packages/forms/changelog/test-forms-add-claude-codex Changelog entry documenting the addition of the codex system
projects/packages/forms/CLAUDE.md Project-specific documentation with tooling commands and codex reference
projects/packages/forms/.codex/README.md Bootstrap file explaining how to use the codex system
projects/packages/forms/.codex/map.md Architecture overview with file inventory and class relationships
projects/packages/forms/.codex/references.md External dependency references including Gutenberg, WordPress Core, and Jetpack packages
projects/packages/forms/.codex/log.md Creation log documenting initial codex setup
projects/packages/forms/.codex/flows/*.md Five flow documentation files covering form rendering, submission, validation, JWT encryption, and email sending
projects/packages/forms/.codex/files/*.md Three deep-dive documentation files for complex classes (3,000+ lines each)
CLAUDE.md Root-level documentation providing repository overview and development commands
.claude/CLAUDE.md Updated to reference the new codex system
.claude/commands/codex-init.md Command template for bootstrapping new codex systems
.claude/commands/codex-update.md Command template for maintaining codex documentation

@jp-launch-control
Copy link

jp-launch-control bot commented Feb 16, 2026

Code Coverage Summary

This PR did not change code coverage!

That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷

Full summary · PHP report · JS report

Coverage check overridden by Coverage tests to be added later Use to ignore the Code coverage requirement check when tests will be added in a follow-up PR .

Copilot AI review requested due to automatic review settings February 16, 2026 18:56
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated 9 comments.

Significance: minor
Type: added

Add codex system for Claude to keep track of useful guidelines for our code
Copy link

Copilot AI Feb 16, 2026

Choose a reason for hiding this comment

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

Changelog entry should follow the repo guidelines (imperative, capitalized, and ending with a period). Line 4 is missing a trailing period, and it may be worth wording it as a user-facing/docs change rather than referencing a specific tool name (“Claude”).

Suggested change
Add codex system for Claude to keep track of useful guidelines for our code
Add codex system to document useful coding guidelines.

Copilot uses AI. Check for mistakes.
CGastrell and others added 2 commits February 16, 2026 16:23
Forms: update codex with file field email rendering gotchas

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@CGastrell CGastrell force-pushed the test/forms-add-claude-codex branch from dbfda24 to ea81c84 Compare February 16, 2026 19:24
CGastrell and others added 2 commits February 16, 2026 18:56
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 16, 2026 22:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.

Comment on lines 41 to 50
### 6. Log the update

Append to `.codex/log.md`:

```markdown
## YYYY-MM-DD — [Brief description of changes]
- Changed files: [list]
- Updated codex docs: [list]
- Notes: [any gaps found, improvements needed]
```
Copy link
Contributor

Choose a reason for hiding this comment

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

This confused Claude in my test. It added a log of the branch changes, not of the changes it made to the codex files (none). We should probably make it clearer that the log is for changex in the codex only, not a changelog of the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Coverage tests to be added later Use to ignore the Code coverage requirement check when tests will be added in a follow-up PR Docs Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Feature] Forms [Package] Forms [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Status] In Progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants