Skip to content

feat(docs): update architecture and state machines documentation - #938

Open
nlevee wants to merge 6 commits into
mainfrom
feat/update-architecture-states-machine
Open

feat(docs): update architecture and state machines documentation#938
nlevee wants to merge 6 commits into
mainfrom
feat/update-architecture-states-machine

Conversation

@nlevee

@nlevee nlevee commented Jul 10, 2026

Copy link
Copy Markdown
Contributor
  • Refactor architecture documentation to consolidate controller state machine information.
  • Add detailed state machines documentation for CRDs, including transitions and conditions.
  • Include state machines in the navigation of the operator manual.
  • Update requirements.txt for dependency management.
  • Modify mkdocs configuration to support Mermaid diagrams.

- Refactor architecture documentation to consolidate controller state machine information.
- Add detailed state machines documentation for CRDs, including transitions and conditions.
- Include state machines in the navigation of the operator manual.
- Update requirements.txt for dependency management.
- Modify mkdocs configuration to support Mermaid diagrams.
Comment thread .github/workflows/docs.yaml Outdated
Comment thread docs/operator-manual/state-machines.md Outdated
Comment thread docs/operator-manual/state-machines.md Outdated
stateDiagram-v2
[*] --> Idle
Idle --> PlanNeeded: plan outdated / new relevant commit / sync scheduled
Idle --> ApplyNeeded: plan up to date but apply needed (autoApply on)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

if I'm not wrong, Idle --> ApplyNeeded is not possible 🤔

The layer should transition from PlanNeeded to ApplyNeeded if the plan contains a drift.

Do you confirm?

Comment thread docs/operator-manual/state-machines.md Outdated
Comment on lines +55 to +56
PlanNeeded --> Idle: TerraformRun (plan) created — run in flight
ApplyNeeded --> Idle: TerraformRun (apply) created — run in flight

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If i'm not wrong, these conditions are not possible, the layer stays in PlanNeeded when a plan is running, and ApplyNeeded when a apply is running

nlevee and others added 3 commits July 10, 2026 16:32
Switch the docs toolchain from pip to uv, in CI (docs.yaml) and locally
via mise.toml (aligned with the worktree-docs-contributing-tools branch).
Declare the mermaid2 plugin (with search) in mkdocs.yml so the state
machine diagrams actually render.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Refactored the changes section by eliminating empty code-changes tags to improve readability and maintainability of the codebase.
Inline the CRD state machine diagrams and prose into the architecture
"Controller state machines" section and drop the dedicated
state-machines.md page (and its nav entry). Update the controllers
AGENTS.md pointer and switch the mise install task to `uv sync`.

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

nlevee commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

@copilot resolve the merge conflicts in this pull request

Copilot AI commented Jul 10, 2026

Copy link
Copy Markdown

@copilot resolve the merge conflicts in this pull request

Merge conflicts have been resolved in commit fix: resolve merge conflicts in docs workflow, pyproject.toml and uv.lock. The three conflicted files were resolved as follows:

  • .github/workflows/docs.yaml: Combined the pinned uv version (0.11.19, Python 3.14) from this branch with enable-cache: true and uv sync --frozen from main.
  • pyproject.toml: Used the burrito-docs package name from main while keeping the specific dependency pins (including mkdocs-mermaid2-plugin) from this branch.
  • uv.lock: Kept this branch's lock file (which includes mkdocs-mermaid2-plugin) and updated the project name to burrito-docs.

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

Projects

Status: 📋 Backlog

Development

Successfully merging this pull request may close these issues.

3 participants