docs: seed Golden Context#192
Conversation
Adds full Golden Context documentation for agent and contributor onboarding. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Changelist by BitoThis pull request implements the following key changes.
|
|
| Source | Requirement / Code Area | Status | Notes |
|---|---|---|---|
| DX-841 | Create reproducible development environment for contentful-management.php | ✅ Met | Reproducible development environment already implemented in existing codebase at .devcontainer/ |
| .bito.yaml, domain-invariants.txt, repo-truth-and-boundaries.txt, review-posture.txt, AGENTS.md | Added Bito PR review configuration and agent guidelines including .bito.yaml, .bito/guidelines/domain-invariants.txt, .bito/guidelines/repo-truth-and-boundaries.txt, .bito/guidelines/review-posture.txt, and AGENTS.md | ⭕ Out of Scope | Added Bito PR review configuration and agent guidelines including .bito.yaml, .bito/guidelines/domain-invariants.txt, .bito/guidelines/repo-truth-and-boundaries.txt, .bito/guidelines/review-posture.txt, and AGENTS.md |
Impact Analysis by BitoInteraction DiagramsequenceDiagram
participant Dev as Developer
participant Git as Git Platform
participant Bito as Bito PR Review Service
participant Config as Bito Configuration<br/>🟩 Added | ●●● High
Dev->>Git: Create PR with changes
Git->>Bito: Notify PR created
Bito->>Config: Read .bito.yaml
Bito->>Config: Read guidelines
Bito->>Config: Read AGENTS.md
Bito->>Git: Post review feedback
Note over Config: Configuration added<br/>for automated reviews
This MR adds Bito configuration files including .bito.yaml, domain invariants, review guidelines, and AGENTS.md to enable automated PR reviews with project-specific context. The changes integrate external review tooling into the development workflow. No direct upstream/downstream impact detected in repository scan or cross-repo dependency analysis. Code Paths AnalyzedImpact: Flow: Direct Changes (Diff Files): Repository Impact: Cross-Repository Dependencies: Database/Caching Impact: API Contract Violations: Infrastructure Dependencies: Additional Insights: Testing RecommendationsFrontend Impact: Service Integration: Data Serialization: Privacy Compliance: Backward Compatibility: OAuth Functionality: Cross-Service Communication: Reliability Testing: Additional Insights: Analysis based on known dependency patterns and edges. Actual impact may vary. |
There was a problem hiding this comment.
Code Review Agent Run #ca450c
Actionable Suggestions - 2
-
docs/ADRs/0001-extend-contentful-core-base-client.md - 1
- Spelling Error · Line 26-26
-
CONTRIBUTING.md - 1
- Documentation inaccuracy · Line 66-66
Review Details
-
Files reviewed - 16 · Commit Range:
5e417cc..5e417cc- .bito.yaml
- .bito/guidelines/domain-invariants.txt
- .bito/guidelines/repo-truth-and-boundaries.txt
- .bito/guidelines/review-posture.txt
- AGENTS.md
- ARCHITECTURE.md
- CONTRIBUTING.md
- README.md
- docs/ADRs/0001-extend-contentful-core-base-client.md
- docs/ADRs/0002-proxy-pattern-for-space-and-environment.md
- docs/ADRs/0003-api-configuration-central-registry.md
- docs/ADRs/0004-php-vcr-cassettes-for-integration-tests.md
- docs/ADRs/0005-devcontainer-for-reproducible-dev-and-ci.md
- docs/ADRs/0006-drop-php-7-require-php-8.md
- docs/ADRs/README.md
- docs/specs/README.md
-
Files skipped - 0
-
Tools
- Whispers (Secret Scanner) - ✔︎ Successful
- Detect-secrets (Secret Scanner) - ✔︎ Successful
Bito Usage Guide
Commands
Type the following command in the pull request comment and save the comment.
-
/review- Manually triggers a full AI review. -
/pause- Pauses automatic reviews on this pull request. -
/resume- Resumes automatic reviews. -
/resolve- Marks all Bito-posted review comments as resolved. -
/abort- Cancels all in-progress reviews.
Refer to the documentation for additional commands.
Configuration
This repository uses Default Agent You can customize the agent settings here or contact your Bito workspace admin at jared.jolton@contentful.com.
Documentation & Help
✅ Review Settings OverriddenStatus: Guidelines:
Note: Extra guidelines beyond 3 general purpose guidelines and 1 language specific guideline per language are not processed. Guidelines are fetched from the source branch. |
|
Bito Automatic Review Skipped – PR Already Merged |
Summary
Seeds Golden Context documentation into
contentful-management.phpto enable safe, coherent contributions from both humans and AI agents.Coverage: Before → After
README.mdARCHITECTURE.mdCONTRIBUTING.mdAGENTS.mddocs/ADRs/docs/specs/.gitkeep+ README.bito.yaml.bito/guidelines/review-posture.txt,repo-truth-and-boundaries.txt,domain-invariants.txt)Artifacts Created
ARCHITECTURE.md— full architecture doc: system context mermaid diagram, internal directory breakdown, data flow, key dependencies table, configuration table, upstream/downstream integration pointsAGENTS.md— agent routing table + 9 sharp-edge invariants (ApiConfiguration registration, mutation version requirement, upload host override, proxy laziness, PHP floor, BC policy, VCR cassettes, code style, optional nikic/php-parser)CONTRIBUTING.md— enriched: allcomposer.jsonscripts documented, testing tiers explained (Unit / Integration / E2E + VCR cassette workflow), branch strategy, release process, full CI job tableREADME.md— appended agent nav table pointing to Golden Context artifactsdocs/ADRs/0001— Extend contentful/core BaseClient Instead of Implementing HTTP from Scratchdocs/ADRs/0002— Proxy Pattern for Space and Environment Scoped Operationsdocs/ADRs/0003— Central ApiConfiguration Registry for URI Templatesdocs/ADRs/0004— php-vcr Cassette Recordings for Integration Testsdocs/ADRs/0005— Dev Container as the Canonical Development and CI Environment (DX-822)docs/ADRs/0006— Drop PHP 7.x Support, Require PHP 8.0+ (v4.0.0)docs/ADRs/README.md— ADR index with table + templatedocs/specs/README.md+.gitkeep— scaffold for future specs.bito.yaml— Bito PR review config referencing three guideline files.bito/guidelines/review-posture.txt— review priorities (BC breaks, ApiConfiguration registration, VCR cassettes, mutation version safety).bito/guidelines/repo-truth-and-boundaries.txt— doc-first review anchored to AGENTS.md, ADRs, ApiConfiguration as ground truth.bito/guidelines/domain-invariants.txt— 7 invariant categories: resource registration, mutation methods, upload host, proxy laziness, PHP version floor, BC compatibility, VCR cassettesADRs Generated (6)
Decisions sourced from: git archaeology (
git log --oneline --all),src/ApiConfiguration.php,src/ResourceBuilder.php,src/Proxy/,composer.json,phpunit.xml.dist,.devcontainer/,.github/workflows/ci.yml, andCHANGELOG.md.Flagged Items
tests/E2E/requires real Contentful space credentials (CONTENTFUL_PHP_MANAGEMENT_TEST_TOKEN+ space IDs). No documentation exists for how external contributors can run E2E tests or request cassette re-recordings. Recommend adding a note in CONTRIBUTING.md once the team decides on the policy.UPGRADE-2.0.mdexists but there is noUPGRADE-3.0.mdorUPGRADE-4.0.mdfor the PHP 7→8 BC break. Worth adding.Redaction Pass (PUBLIC repo)
No sensitive values found in generated files. Space IDs and test tokens referenced in
phpunit.xml.dist(pre-existing) were not copied into any generated file.🤖 Generated with Claude Code
Summary by Bito
This PR seeds Golden Context documentation into the contentful-management.php repository to enable safe, coherent contributions from both humans and AI agents. It adds extensive documentation artifacts including architecture guides, agent guidelines, contributing workflows, ADRs, and review configurations.
Detailed Changes