Change Management Policy
| Category | Security |
|---|---|
| Version | 1.0 |
| Status | Approved |
| Approved | 2026-03-25 by Mishkin Berteig |
| Next Review | 2027-03-25 |
| ID | POL-6 |
| Document version | policies/change-management.md at commit 9c72db400a23 (SHA-256 a4f4e00468ee) |
Linked Controls
- PDP-10 SDLC - Separation of environments
- PDP-11 SDLC - Security Reviews
- PDP-15 Agile Process
- INFRA-10 Infrastructure-as-code
- PDP-16 Change Management Tooling
- PDP-7 Change Management Workflow
- PDP-8 Change Management Approvals
Change Management Policy
Purpose
This policy defines the change management process for the MaxGood.work platform, ensuring all changes are requested, planned, reviewed, approved, tested, and documented with a complete audit trail.
Scope
All changes to production code, infrastructure, configuration, and governance documents across all MaxGood.work repositories.
Approved AI Agent Tools
Only the following AI agent tools are authorized for development work on MaxGood.work:
| Tool | Model | Provider |
|---|---|---|
| Claude Code | Opus 4.6 or better | Anthropic |
| Codex | GPT-5.4 or better | OpenAI |
| OpenClaw | Opus 4.6 or GPT-5.4 or better | Community |
| OpenClaude | Local LLM qwen3.6-35b-a3b or better | Community |
Requirements for all authorized tools
- Reasoning level: "High" or better
- Context window: Minimum 256k tokens; 1M tokens preferred
- Governance: All agents must load and follow CLAUDE.md/AGENTS.md governance files
No other AI agents, models, or configurations are authorized for use on MaxGood.work repositories. Use of unauthorized tools is a policy violation subject to the disciplinary process defined in the Acceptable Use Policy.
Automated Red-Team Review Engine
This section authorizes the engine of the automated pre-commit red-team review (MGSecurityAssessment). The Approved AI Agent Tools table and its requirements govern development agents.
- Engine: two primary reviewers, GPT-6 Luna (
us.openai.gpt-6-luna) and Claude Haiku 5.5 (us.anthropic.claude-haiku-5-5), on AWS Bedrock, called fromca-central-1through their US inference profiles (a request is processed inca-central-1or a US Region) with the developer's own AWS identity; and a decider, the model aliasamazingon the self-hosted private-ai gateway, reached withPRIVATE_AI_BASE_URLandPRIVATE_AI_API_KEYfrom the workspace-root.env. Both primaries review every part of the change; the primaries have a 240-second budget and the decider a 360-second budget. - Combining rules: code sets each finding's severity by the claims table and caps a coding error at High. A Critical finding is disputed when the other primary reports nothing or Medium or lower; a High finding is disputed when the other primary reports nothing or Low. Code settles a dispute with no decider call when the diff decides it: an Alembic revision whose upgrade only adds a table, a nullable column or an index is not real, a fake credential in a test file is test data, and a nearby finding of the other primary that claims the same claims-table item is the same problem already raised. The decider settles every other dispute; code drops a decider match between findings on different topics and raises a real finding to the severity the diff proves. An undecided dispute keeps the higher severity. Only a Critical that stands blocks a commit; Medium or lower never blocks.
- Spending limit: each developer's Bedrock use is limited to US$1.00 per local day, recorded on the developer's workstation.
- Deferral: when Bedrock is unreachable or the daily limit is reached, the commit goes through marked
DEFERRED, and the push reviews the deferred commits as one batch before the scan. - Adoption: the engine (MGSecurityAssessment commit
fca70a7) is in use by decision of the Security Officer of 2026-10-29, after its evaluation run of 2026-10-29. A change of a primary, the decider, the checks that settle disputes in code, the prompts or the combining rules becomes the engine only after an evaluation run (python3 scripts/llm-benchmark.py evaluate --setup review-v2: the three frozen held-out suites, timing at the production budgets, and the approved pass bars) and a decision record. - Records: each adoption keeps two records: the evaluation run's report, which the benchmark hands to the evidence automation through
scripts/commit-evidence.pyand which is stored underevidence/artifacts/llm-benchmarks/(seeMGDataAndEvidence/README.md), and a hand-written approval decision record inevidence/artifacts/decisions/. - Benchmark evidence review: a benchmark run's
results.jsonlorsummary.mdthat the evidence store's secret check holds back is released automatically under the review rule setbenchmark-review-v1(scripts/evidence_review.py) only when no workspace secret is anywhere in it, every finding of the check is located, no finding value is shaped like a live credential (a known credential format, letters and digits interleaved like a generated token, or a long high-entropy token) other than text of the suite's public planted-flaws fixture, and thesecrets-v2redaction removes exactly the findings the check found. The workspace secrets are the values in the workspace-root and direct sub-repo.env*files (examples and templates left out) whose name containskey,secret,token,pass,pwd,credential,auth,private,webhook,dsn,cookie,signingorsaltand does not end in a plain-setting suffix such as_URL,_HOSTor_ID, and the password of everyscheme://user:password@hostvalue; each has at least 12 characters, or 8 with two character classes, is not a placeholder, and is compared as written, without an unquoted#comment, and as the text inside its quotes. The released file is stored redacted withsecrets-v2, exactly asscripts/evidence-store.py redactredacts it, and only after its review record (<file>.review.json: the review version, the file's SHA-256 before and after redaction, the findings per rule and the values per tier, never a value) is stored beside it. A person reviews every other held file;python3 scripts/evidence-store.py reviewshows the findings with each value masked.
Change Management Tooling
- Kanban Zone — Change request tracking and workflow management (Roadmap board for human-directed work; "Jane's Team" board for the Chief AI Agent Officer and its five persistent sub-agents)
- Git / AWS CodeCommit — Source control and version history
- AWS CodeBuild / CodePipeline / EventBridge — CI/CD pipelines for automated builds and deployments. Most production services use CodePipeline; some use EventBridge-triggered pipelines. Non-critical or pre-production repos (e.g., MGWordPressPlugin, MGIntentionDrivenRAG) may not have CI/CD configured and are deployed manually when updated.
- CLAUDE.md / AGENTS.md — Formal governance policy documents enforced on all AI agents
Pipeline Configuration
The stages a change passes are configured in the CI/CD tools, so that the order is enforced by the tool and each run is recorded in the pipeline's execution history. Seven AWS CodePipeline pipelines in ca-central-1 carry MaxGood.work's own services to production, each sourced from the repository's CodeCommit branch:
| Pipeline | Stages in order |
|---|---|
MaxGoodApp (MaxGoodAI) |
Source, Build, StageMigrate, StageDeploy, Approval, ProdMigrate, ProdDeploy |
MaxGoodWeb |
Source, Build, StageDeploy, Approval, ProdDeploy |
MGSlackApp, MGTeamsApp, MGEmailApp, MGDiscordApp, MGGoogleSpacesApp |
Source, Build, Deploy (staging), Approval, ProdDeploy |
- Every pipeline holds a manual
Approvalaction between the staging deployment andProdDeploy; the pipeline cannot reach production without a recorded approval result (approver, time and comment) in its execution history. StageMigrateandProdMigrateare CodeBuild stages ofMaxGoodApp.ProdMigratestarts an RDS snapshot, applies the Alembic revisions with the image being deployed, and verifies the database revision and the snapshot beforeProdDeploy; a failure stops the pipeline beforeProdDeploy(MaxGoodAI/deploy/README.md).- The pipeline's Build stage follows the repository's
buildspec.yml; the pre-commit red-team review and the pre-push security scan run as git hooks before a change reaches CodeCommit, and their evidence is stored underMGDataAndEvidence. - Each push to CodeCommit posts a notice to the team Discord through the
codecommit_discord_webhookLambda (lambdas/codecommit_discord_webhook/README.md). - The Kanban Zone card carries the request, the approved plan and the review summary; the weekly report of pipeline executions is produced by
lambdas/mg-weekly-deploy-report.
Change Request Process
All non-trivial changes originate as Kanban Zone cards on the Roadmap board. Each card must include a title, description, and acceptance criteria. Extremely small, low-risk changes (as judged by the Security Officer) may proceed without a Kanban Zone card, but must still have a git commit record and AI agent decision log.
Kanban Zone 8-Step Card Workflow
- Move the card to "Tasking" (development) or "Planning" (business)
- Generate a detailed plan for the work
- Ask the user for feedback and iterate until approved
- Append the approved plan to the Kanban Zone card description before starting implementation
- Do the work, including writing or updating automated tests
- Present completed work to the user for review; proceed only if accepted
- Pull, commit, and push following the Pull Before Commit and Commit Style guidelines
- Move the card to "Ready to Release to the World" (Expedite), "Final Review" (normal development), or "Reflection / Learning" (business). Never move cards directly to "DONE"
Emergency Changes
Emergency changes use the Expedite lane on the Kanban Zone board (max WIP: 6):
- An abbreviated review is permitted: the plan is still required, but the red-team review or detailed human review may follow the commit
- Post-implementation review must occur within 7 days
- Emergency cards move to "Ready to Release to the World" (not "Final Review")
Change Approval and Review
The change-approval control is three steps, all required for every change in scope (below) except an authorized skip: the independent AI red-team review, the automated security scan, and the card owner's "done." verification. Pull requests and merge approvals are not part of the change process.
Scope
The three-step control applies to every repository that faces customers or processes customer data. The risk register designates, from time to time, the repositories that do neither; changes to a designated repository follow the Source Control rules below without the three-step control.
Authorized Skips
In rare cases the human developer skips the red-team review or the security scan for a specific change. Each skip records its reason and the person who authorized it in the decision log and in the evidence, which is handed to the evidence automation through scripts/commit-evidence.py (MGDataAndEvidence/README.md names where it is stored), and the skip mechanism is removed once the change is pushed.
A change that alters only the wording of documentation files (*.md and *.txt), with no change to code, configuration, tests or data, is an authorized skip by standing rule. It is committed and pushed without the red-team review and the security scan, and presented for the "done." verification without the full end-to-end test suite run. Its commit message's ## Verified section names each step it skipped under this rule. The card owner's "done." verification still applies.
Human Review
The card owner reviews and approves the implementation plan before work begins. The "done." protocol serves as formal smoke test acknowledgment:
- When an AI agent presents completed work and asks the user to verify, the user responding "done." means they have tested the changes AND smoke-tested likely areas of regression
- This is captured in the decision log as formal testing evidence
Independent AI Red-Team Review
Before every commit, the pre-commit hook (MGSecurityAssessment) runs an automated AI red-team review of the commit on the engine authorized under "Automated Red-Team Review Engine", an LLM different from the one which produced the changes:
- Act as the RED team — Do not trust anything other than the overall stated goal. The plan may be flawed, the implementation may be flawed, the testing may be flawed.
- Review all changes — Examine the commit's code diff, tests included, against the platform rules and the commit's stated goal; documentation and text files are context only.
- Record the findings — In the review artifact, in a
## Red-Team Reviewsection of the commit message and, when the commit message names a Kanban Zone card, in a### Red-Team Reviewsection appended to that card. - Gate the commit — Critical findings block the commit unless an override is recorded with its reason. A review that could not run lets the commit through and is recorded as
NOT REVIEWED: <reason>; a review that covered only some of the commit's files is recorded asPARTIAL REVIEW, naming the files it could not cover: those for which either primary has no answer, past the primaries' 240-second budget, malformed, or refused. When Bedrock is unreachable or the developer's US$1.00 daily limit is reached, the commit goes through markedDEFERRED: <why>; reviewed at push., and the push reviews the deferred commits as one batch before the scan and stops on a Critical that stands or on a reviewer still unreachable, unless an override is recorded. The decider has a 360-second budget, and Medium or lower findings never block. - Report to the user — Present the findings, and any
NOT REVIEWEDorPARTIAL REVIEWline, to the user.
Automated Security Scan
The pre-push hook runs the automated security scan (MGSecurityAssessment) on every push, and its result is handed as evidence to the evidence automation through scripts/commit-evidence.py (MGDataAndEvidence/README.md names where it is stored). A finding is fixed in the commit whose scan surfaced it, or recorded with a SCAN_EXCEPTION: attestation.
Source Control
- All code is stored in AWS CodeCommit repositories
- Changes are pushed directly to main (or master for older repos); code review is performed by the independent AI agent review and human verification prior to commit, not through pull requests
- All commits follow the structured message format:
## Problem,## Solution,## Verified - Kanban Zone card URL included in commit messages
Co-Authored-Byattribution for AI-assisted changes
Separation of Environments
- Development: Local Docker containers via
docker compose -f docker-compose.dev.yml up --build - Staging: AWS ECS (pre-production verification)
- Production: AWS ECS (deployed via CodePipeline only)
Production deployment access is restricted to authorized personnel through CodePipeline. Direct access to production systems for code deployment is prohibited. CodePipeline is the path for MaxGood.work's own code.
Production Deployment Access
- Who can approve and start a production deployment. The right to approve a production deployment (
codepipeline:PutApprovalResult) and to start a pipeline (codepipeline:StartPipelineExecution) belongs to IAM users that hold theAdministratorAccessmanaged policy: the Security Officer and four further IAM users. A read-only IAM policy simulation of every IAM user, role and group on 2026-11-27 found no other principal holding either action on the seven pipelines. - Who cannot. The two developer groups (
FullStackDevelopers,AutomationDevelopers) carry CodeCommit access only; the AI agent identities (the read-only agent role and the read-onlyjane.maxgooduser) hold read-only access; the SES, storage and application users hold none. An AI agent therefore never approves or starts a production deployment. - What deploys.
ProdDeployandProdMigraterun as the pipelines' service roles and the CodeBuild rolemg-codebuild-migrate-prod. - Granting access. Access to approve or deploy is granted, reviewed and removed under the Access Control Policy ("Requesting and Approving Access", "Termination Process"). The listing of principals that held these rights on 2026-11-27 is in
MGDataAndEvidence/evidence/artifacts/decisions/2026-11-27-engineering-policy-tests-record.md.
Standard Change: Easypanel Host Updates
MaxGood.work runs a self-hosted Easypanel on the AWS Lightsail instance MaxGood.work-n8n (ca-central-1), hosting three third-party applications: n8n (internal automation), Apache Tika (document text extraction) and AFFiNE (the team knowledge base). Updating an app service on that host to a newer release of the same upstream image is a pre-approved standard change under the standing approval of the Chief Executive Officer (Mishkin Berteig) of 2026-11-18 (Kanban Zone card #1769, https://kanbanzone.io/b/QJxJGohF/c/1769); an agent or the weekly job runs each update under that standing approval. The conditions of the standing approval are:
- One release at a time. Each update moves a service to the release immediately after the running one, until the service is current, and stops at the first failure.
- Probe first, backup, update, probe again. The project's probe passes before the update. The service's data is backed up (AFFiNE: its two Easypanel volume backups and its Postgres database backup; n8n: its Easypanel volume backup; Tika is stateless). The image is set to the next release and deployed. The probe then confirms the new version runs and the service still works (n8n: health, running version and the same active workflows; AFFiNE: the reported version; Tika: the reported version and a sample document that still extracts).
- Automatic rollback. A failed update is rolled back to the previous release, redeployed and probed again, and an URGENT production issue message is published to the
Production_MonitoringSNS topic, which thesns-to-discordLambda posts to the team Discord with the alert role. - Evidence record. Every step, applied, rolled back or stopped before any change, writes a record under
MGDataAndEvidence/evidence/artifacts/easypanel-updates/(versions before and after, backup and deployment ids, probe results, what changed from the upstream release notes and commit list, and any rollback or alert), committed throughscripts/commit-evidence.pyand attached to the trust portal's "Patch management - Easypanel Host" (INFRA-4) and "Change management workflow" (PDP-7) tests. - Manual updates. Postgres, Redis and Easypanel itself are reported by the tool and updated by a person. A restart of Docker or of the host may also start Easypanel, Postgres, Redis and Tika from the newest build of their image tag. That is accepted when the weekly server patching job causes it, because a snapshot precedes it and verification follows it.
- One workstation. The updates run only on the workstation designated in
agent-config/launchd/work.maxgood.easypanel-updates.host; designating another is a change to that file. - Weekly card. The weekly job moves the week's "WEEKLY Operational Activities" card from Expedite to DONE, with a comment naming what was applied and its evidence, when nothing needs a person; otherwise it comments on the card what still does.
The backup, the probes and the automatic rollback stand in for a staging environment on this host. Mechanism: scripts/easypanel-update-check.py module docstring and the workspace-root CLAUDE.md → "Cross-Cutting Conventions".
Standard Change: Self-Managed Server Patching
Patching a server MaxGood.work administers itself, by the weekly job scripts/server-patching.py weekly --apply, is a pre-approved standard change under the standing approval of the Chief Executive Officer (Mishkin Berteig) of 2026-11-24 (Kanban Zone card #1792, https://kanbanzone.io/b/QJxJGohF/c/1792). The conditions of the standing approval are:
- Scope. The servers listed with mode
applyininfrastructure/server-patching/servers.json. The changes are the operating system's package updates, installed without removing a package or replacing a configuration file, and a reboot when a kernel or a reboot notice waits. - Clean before. The site check passes, a Lightsail snapshot of the server, automatic or taken on demand, succeeded within the last 26 hours, and the review shows no sign of compromise. Otherwise the server is left unchanged.
- Verify after. The server verification and the full site check run after every change.
- Access. The job runs on the one workstation designated in
agent-config/launchd/work.maxgood.server-patching.host, with the CEO's AWS identity. It reaches a server with a temporary Lightsail SSH key that it checks against the server's host keys and deletes after use. - Alerts. Anything that needs a person is published to the
Production_MonitoringSNS topic, which thesns-to-discordLambda posts to the team Discord. - Evidence record. Every run writes a record under
MGDataAndEvidence/evidence/artifacts/server-patching/, committed throughscripts/commit-evidence.py, attached to the trust portal, and reflected in the outcome of the server's patch test.
Every other change to such a server is supervised under policies/compliance/server-patching.md. Restoring a snapshot needs the Security Officer's approval.
Security Design Review
Every change with a card passes a security design review made of two steps that already run: the plan the card owner approves before implementation, and the automated red-team review before each commit. The checklist below is what those steps examine. A change that fails an item is revised before it is committed.
- Data handling and privacy. Which personal data the change reads, writes, logs or sends; whether any appears in logs, errors or responses; whether the change follows the Avatar Membership Model (an interaction belongs to exactly one Avatar and an Avatar's Owner and Admins see only what was stored under it); and the retention and erasure effect.
- Authentication and authorization. Every data endpoint authenticates its caller; destructive routes check that the caller is an Owner or Admin;
/maxadmin/*routes check staff permission; no test-only login or backdoor exists; no id or role supplied by the client is trusted; no caller can gain admin, owner or staff rights. - Injection and unsafe input. No SQL, shell or template injection, path traversal, server-side request forgery, unsafe deserialization or open redirect; CORS allows no wildcard origin with credentials.
- Secrets and cryptography. No credential committed to the repository; secrets come from
.envfiles or AWS Secrets Manager; cryptographic methods follow the Developer Guidance of the Encryption Policy. - Database and deployment safety. Every schema or data change is an Alembic revision that is compatible with the running release; no production SQL is run by hand; new environment variables are documented.
- Audit and logging. The change writes the audit events its action needs and logs no secret or one-time code.
- Tests. The change carries automated tests for its business logic and its permission-denied and error paths, and passes the full unit and end-to-end suites.
The red-team review reports each finding with a severity; a Critical finding that stands blocks the commit, and the other findings are recorded on the card.
Release Communication
Changes that alter how people use the platform, its policies or its terms are communicated to the people they affect through these channels:
- Staff announcements. MaxGood.work staff compose an announcement in MaxGoodAdmin, choose its audience (all users, Avatar Owners, Avatar Admins, Avatar coaches, Foundation Authors or staff, narrowed by Avatar, Avatar type, language or recent activity) and send it by email. The categories of announcement are Privacy Policy and Terms changes, security and maintenance notices, and feature changes. A person can opt out of product announcements. The send, its recipients and each delivery outcome are stored (
staff_announcements,staff_announcement_recipients). - Public announcements. Releases of the public API are announced in posts on the MaxGood.work blog, drafted with
scripts/publish_v1beta_announcement.pyand published by a person. - Team notices. Every push to CodeCommit and every production alarm posts to the team Discord (
codecommit_discord_webhookandsns-to-discord), so the team learns of each change as it is made.
Database Changes
Every change a release makes to the production database, to its schema or to
its data, is a version-controlled Alembic revision in the MaxGoodAI repository,
reviewed and approved under this policy like any other code change. The
deployment pipeline applies the revisions after the manual Approval step: it
starts a snapshot of the production database, runs them with the image being
deployed while the snapshot completes and, before the new release is deployed,
verifies that the database is at the expected revision and that the snapshot is
complete and was taken before the first change; any failure stops the
deployment. Outside the pipeline the
production database receives only read-only queries, the operator procedures
in the MaxGoodAI deployment guide (MaxGoodAI/deploy/README.md) and recovery
under the BCDR plan (policies/compliance/bcdr-plan.md); SQL run by hand is
not a change mechanism. An urgent database fix is an emergency change (see
Emergency Changes) and ships as a revision through the pipeline.
Data the running application manages is the exception. Whatever MaxGoodAdmin manages, each setting from the release that adds its MaxGoodAdmin editor, is changed by MaxGood.work staff in MaxGoodAdmin, and data written through the other user interfaces and the APIs is changed there too. That is application use, not a database change, and needs no revision.
A change to what a staff role may do is a standard change shipped as a guarded Alembic revision through the pipeline; the revision's test is its evidence and the revision writes a staff_role_definition.changed audit event. Staff role assignments are application data and follow the Access Control Policy.
An AI agent that uses application APIs under a staff role is an operational agent governed by the Access Control Policy, and the rules for development tools in this policy do not apply to it.
Read-only SQL that validates existing data, relationships or schemas may be
run by hand while working on the system, inside a read-only transaction; the
query and its results are never committed to the platform code base.
Mechanism: the workspace-root CLAUDE.md → "DATABASE REFACTORING".
Infrastructure as Code
Infrastructure configuration is managed through:
- Docker Compose files for local development
- AWS CloudFormation / ECS task definitions for staging and production
- Environment configuration via
.envfiles in development and staging (never committed; documented in READMEs), and via ECS task definitions and AWS Secrets Manager / KMS in production
SOC 2 Evidence Chain
Every change automatically produces these evidence artifacts:
- Kanban Zone card — Change request, approved plan, and red-team review summary
- Decision log — AI agent session transcript with "done." verifications
- Git commits — Structured messages with verification sections
- CLAUDE.md / AGENTS.md — Governance policy versions tracked in git
- Compliance database — Ingested decision logs and evidence records
Agile Process
MaxGood.work follows an agile development process managed through Kanban Zone:
- Work is visualized on the Roadmap board with explicit WIP limits
- Cards flow through defined columns representing workflow states
- The Definition of Done requires staging environment review before completion
- Retrospective learning is captured in the "Reflection / Learning" column