Change Management Policy

CategorySecurity
Version1.0
StatusApproved
Approved2026-03-25 by Mishkin Berteig
Next Review2027-03-25
IDPOL-6
Document versionpolicies/change-management.md at commit 9c72db400a23 (SHA-256 a4f4e00468ee)

Linked Controls

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

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.

Change Management Tooling

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

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

  1. Move the card to "Tasking" (development) or "Planning" (business)
  2. Generate a detailed plan for the work
  3. Ask the user for feedback and iterate until approved
  4. Append the approved plan to the Kanban Zone card description before starting implementation
  5. Do the work, including writing or updating automated tests
  6. Present completed work to the user for review; proceed only if accepted
  7. Pull, commit, and push following the Pull Before Commit and Commit Style guidelines
  8. 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):

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:

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:

  1. 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.
  2. 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.
  3. Record the findings — In the review artifact, in a ## Red-Team Review section of the commit message and, when the commit message names a Kanban Zone card, in a ### Red-Team Review section appended to that card.
  4. 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 as PARTIAL 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 marked DEFERRED: <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.
  5. Report to the user — Present the findings, and any NOT REVIEWED or PARTIAL REVIEW line, 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

Separation of Environments

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

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:

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:

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.

  1. 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.
  2. 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.
  3. 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.
  4. Secrets and cryptography. No credential committed to the repository; secrets come from .env files or AWS Secrets Manager; cryptographic methods follow the Developer Guidance of the Encryption Policy.
  5. 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.
  6. Audit and logging. The change writes the audit events its action needs and logs no secret or one-time code.
  7. 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:

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:

SOC 2 Evidence Chain

Every change automatically produces these evidence artifacts:

  1. Kanban Zone card — Change request, approved plan, and red-team review summary
  2. Decision log — AI agent session transcript with "done." verifications
  3. Git commits — Structured messages with verification sections
  4. CLAUDE.md / AGENTS.md — Governance policy versions tracked in git
  5. Compliance database — Ingested decision logs and evidence records

Agile Process

MaxGood.work follows an agile development process managed through Kanban Zone:

← Back to Policy Library