Skip to content

Latest commit

 

History

History
148 lines (121 loc) · 7.21 KB

File metadata and controls

148 lines (121 loc) · 7.21 KB

Ruby API Pack Cloudways Agent Guide

Repository Snapshot

Field Value
Project team project-ruby
Repository role Cloudways API client
Package/artifact ruby_api_pack_cloudways
Validation gate bundle exec rspec + bundle exec rubocop + gem build ruby_api_pack_cloudways.gemspec

Standard Authority Model

Agent Role Authority
Claude Code Lead implementation and validation CLAUDE.md
OpenAI Codex Documentation, release readiness, stabilization, and repo hygiene CODEX.md
ChatGPT Strategy, coordination, prompt design, and external review Support only
GitHub Copilot Development assistance COPILOT.md
Google Jules Bounded automated maintenance JULES.md

All AI agents in this roster — Claude Code, OpenAI Codex, GitHub Copilot, and Google Jules — have full commit, push, and tag authority in this repository, effective 2026-07-25 by explicit direction from Bradley Potts — see the Commit Policy section in each agent's own guide (CLAUDE.md, CODEX.md, COPILOT.md, JULES.md). OpenAI Codex additionally has release authority: Codex cuts releases autonomously — version bump, changelog versioning, v<version> git tag, and GitHub Release publish via gh — for every release-ready CHANGELOG.md [Unreleased] section, without waiting for per-release approval; see CODEX.md "Release Mechanics" for the full procedure. RubyGems publishing (gem push) remains Bradley Potts's sole authority — no agent pushes the gem. Bradley Potts retains ultimate ownership and holds final authority for merges and publishing. This grant covers git and release operations within each agent's own scope of work as defined above — it does not expand what any agent is authorized to decide otherwise. ChatGPT has no repository access and is excluded.

Cross-Repo Access

This repo may be worked on standalone or alongside any combination of other PHCDevworks repos — do not assume the company root or sibling project areas are present. The following rules are self-contained and apply whether or not that broader context is available.

File access. An agent working in this repo has full read/write access to every file in this repo. When this repo is present alongside other PHCDevworks repos (company root or sibling project-* areas), the same full read/write access extends to those repos too — there is no per-repo access restriction anywhere in this workspace. What differs repo-to-repo is not access, it's editorial ownership: each repo's own CLAUDE.md/AGENTS.md still governs what changes make sense there (design-token authority, layer boundaries, etc.) — being able to open and edit a file is not the same as it being this repo's job to change it.

Cross-repo changelog and TODO/roadmap requests. Full rules: company root AGENTS.md § "Cross-Repo Changelog Sync" and § "Upstream Requests and Roadmap Self-Expansion." Applied here without exception — this repo may append [Unreleased] changelog entries and downstream TODO requests to other present repos per those rules, and no AI agent creates commits, tags, publishes packages, or merges changes in this repo or any other unless that repo's own agent guide explicitly grants that authority.

Standard Handoff

Every AI-prepared change should report files changed, validation performed, public behavior or contract impact, and unresolved risks. Do not edit generated outputs directly. Do not update CHANGELOG.md unless the change is release-relevant.

This repository is maintained by PHCDevworks and contains the ruby_api_pack_cloudways gem for Cloudways API access from Ruby and Rails applications.

Upstream Requests and Roadmap Self-Expansion

Full directive: project-team AGENTS.md "Upstream Requests and Roadmap Self-Expansion." Applied to this repo:

  • This gem has no upstream or downstream dependency on any other repo within this workspace — it is an independent gem; do not invent a relationship. Any consuming Rails application lives outside this workspace.
  • No repo in this workspace is known to depend on this gem. If one ever does, it should append requests to this repo's own TODO.md under ## Requested by Downstream, kept visible and separate from self-planned work.
  • This repo's own ROADMAP.md may be proactively expanded with new or reordered phases by the agent's own analysis — but never mark a phase delivered without bundle exec rspec, bundle exec rubocop, and gem build ruby_api_pack_cloudways.gemspec all passing, and never introduce a dependency on another project-ruby gem without an explicit architectural decision (see project-ruby/CLAUDE.md "How the Repos Relate").
  • Surface any new TODO request or roadmap expansion in the handoff for Bradley Potts in the same change it was made, and reflect cross-repo-relevant changes in the project-team's own ROADMAP.md/TODO.md.

Shared Source Rules

Path Status Notes
lib/ruby_api_pack_cloudways.rb May edit carefully Public gem entry point and configuration hook
lib/ruby_api_pack_cloudways/configuration.rb May edit carefully Public configuration surface
lib/ruby_api_pack_cloudways/connection/ May edit Token and HTTP connection behavior
lib/ruby_api_pack_cloudways/api/ May edit Public Cloudways endpoint wrappers
lib/ruby_api_pack_cloudways/handlers/ May edit Response validation and logging helpers
spec/ May edit Required for behavior changes
README.md, CHANGELOG.md, docs May edit Keep public guidance synchronized
Credentials, secrets, tokens, live API payloads Never commit Do not expose Cloudways secrets or production account data

Full validation command:

bundle exec rspec
bundle exec rubocop
gem build ruby_api_pack_cloudways.gemspec

Core Rules

  1. Treat configuration, token handling, connection behavior, API wrappers, response validation, and specs as the public behavior contract.
  2. Keep host-application assumptions out of the gem.
  3. Do not log or document live Cloudways API keys, OAuth access tokens, production server IDs, or raw production API responses.
  4. Keep Cloudways HTTP access centralized through the connection classes.
  5. Update README and changelog when public usage changes.
  6. Add focused specs for changed endpoint or connection behavior.
  7. Preserve unrelated local changes.

Agent-Specific Guides

  • CLAUDE.md - primary implementation workflow.
  • CODEX.md - documentation, release readiness, and stabilization workflow.
  • COPILOT.md and .github/copilot-instructions.md - IDE support workflow.
  • JULES.md - bounded automated maintenance workflow.

Pull Request Creation

Every agent that opens a PR must populate every section of the repository PR template:

  • Linked issue - issue number (#N) or N/A
  • Summary of changes - one or two bullets
  • Change classification - additive, behavior change, breaking, or docs/config only
  • Checklist - completed items checked; blocked items left unchecked with a note

Never submit a PR with an empty body or only template headings.