[Feature] Target-state module update planner #231
Closed
opened 2026-07-10 21:27:35 +02:00 by zemion
·
8 comments
No Branch/Tag Specified
Labels
Clear labels
area/api
HTTP API contracts, routers, schemas, or API smoke behavior.
area/auth
Authentication, sessions, access bootstrap, or login behavior.
area/db
Database sessions, models, transactions, or persistence primitives.
area/devex
Local developer workflow, scripts, tests, tooling, or release helpers.
area/docs
Durable documentation and project guidance.
area/governance
Governance policy, audit, privacy, retention, or compliance behavior.
area/marketing
Public website, product messaging, publication copy, or legal page content.
area/migrations
Alembic migrations, schema bootstrap, or persistence evolution.
area/module-system
Module discovery, manifests, capabilities, routing, or optional integrations.
area/rbac
Permissions, roles, delegation, or authorization policy.
area/release
Versioning, release locks, tags, packaging, or dependency pins.
area/security
Security posture, static analysis, supply-chain hardening, or vulnerability remediation.
area/tenancy
Tenant boundaries, provisioning, or tenant-scoped data behavior.
area/webui
Shared WebUI shell, frontend components, routing, or frontend tests.
audit/complexity
Complexity finding from Radon, Xenon, or equivalent maintainability scans.
audit/duplication
Duplicated-code finding from jscpd or equivalent similarity scans.
audit/false-positive
Audit finding reviewed as a narrow false positive or acceptable risk.
audit/needs-design
Audit finding that needs an architectural or product decision before implementation.
audit/quick-fix
Audit finding that appears narrow and directly fixable.
audit/structural
Audit finding that needs design, refactoring, or behavior review.
codex/needs-human
Needs an explicit human decision before Codex should implement.
codex/ready
Suitable for Codex to pick up with the existing issue context.
module/access
GovOPlaN access, identity, authentication, RBAC, and administration behavior.
module/addresses
GovOPlaN Addresses module behavior or integration.
module/admin
GovOPlaN Admin module behavior or integration.
module/appointments
GovOPlaN Appointments module behavior or integration.
module/audit
GovOPlaN Audit module behavior or integration.
module/calendar
GovOPlaN Calendar module behavior or integration.
module/campaign
GovOPlaN campaign module behavior or integration.
module/cases
GovOPlaN Cases module behavior or integration.
module/connectors
GovOPlaN Connectors module behavior or integration.
module/core
GovOPlaN core runner, shared primitives, shell, or extension points.
module/dataflow
GovOPlaN Dataflow module behavior or integration.
module/datasources
GovOPlaN governed datasource contracts, catalogs, and integrations.
module/dist-lists
GovOPlaN Distribution Lists module behavior or integration.
module/dms
GovOPlaN Dms module behavior or integration.
module/erp
GovOPlaN Erp module behavior or integration.
module/evaluation
GovOPlaN Evaluation module behavior or integration.
module/files
GovOPlaN files module behavior or integration.
module/fit-connect
GovOPlaN Fit Connect module behavior or integration.
module/forms
GovOPlaN Forms module behavior or integration.
module/identity
GovOPlaN Identity module behavior or integration.
module/identity-trust
GovOPlaN Identity Trust module behavior or integration.
module/idm
GovOPlaN Idm module behavior or integration.
module/ledger
GovOPlaN Ledger module behavior or integration.
module/mail
GovOPlaN mail module behavior or integration.
module/notifications
GovOPlaN Notifications module behavior or integration.
module/ops
GovOPlaN Ops module behavior or integration.
module/organizations
GovOPlaN Organizations module behavior or integration.
module/payments
GovOPlaN Payments module behavior or integration.
module/permits
GovOPlaN Permits module behavior or integration.
module/policy
GovOPlaN Policy module behavior or integration.
module/poll
GovOPlaN Poll module behavior or integration.
module/portal
GovOPlaN Portal module behavior or integration.
module/postbox
GovOPlaN Postbox module behavior or integration.
module/reporting
GovOPlaN Reporting module behavior or integration.
module/risk-compliance
GovOPlaN Risk Compliance module behavior or integration.
module/scheduling
GovOPlaN Scheduling module behavior or integration.
module/search
GovOPlaN Search module behavior or integration.
module/tasks
GovOPlaN Tasks module behavior or integration.
module/templates
GovOPlaN Templates module behavior or integration.
module/tenancy
GovOPlaN Tenancy module behavior or integration.
module/views
GovOPlaN governed task views, interface projections, and workflow view integration.
module/workflow
GovOPlaN Workflow module behavior or integration.
module/xoev
GovOPlaN Xoev module behavior or integration.
module/xrechnung
GovOPlaN Xrechnung module behavior or integration.
module/xta-osci
GovOPlaN Xta Osci module behavior or integration.
priority
p0
Immediate stop-the-line priority.
priority
p1
High priority for the next focused work window.
priority
p2
Normal planned priority.
priority
p3
Low priority or opportunistic cleanup.
source/backlog-import
Imported from markdown backlog, roadmap, plan, or TODO files.
source/security-audit
Created from a structured security or code-quality audit report.
source/todo-scan
Imported from inline TODO/FIXME/HACK markers by the Gitea TODO importer.
status
blocked
Cannot progress without a decision, dependency, credential, or external change.
status
in-progress
Currently being worked.
status
needs-info
Needs clarifying input before implementation can proceed safely.
status
ready
Ready for implementation.
status
triage
Needs review, ownership, priority, or acceptance criteria.
type
bug
A reproducible defect, regression, or incorrect behavior.
type
debt
Cleanup, refactoring, risk reduction, or deferred engineering work.
type
docs
Documentation, process, or developer workflow work.
type
feature
New user-visible behavior or platform capability.
type
task
Implementation, maintenance, migration, or operational work.
type
user-story
End-to-end user journey or real-world process story used to steer product slices.
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: GovOPlaN/govoplan-core#231
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Module package changes are currently planned as install/uninstall items with catalog provenance and preflight checks. That is enough for trusted catalog-sourced installs, but not enough for safe module updates where multiple modules must move together.
The risky case is a coupled update path:
The platform needs a first-class update planner that treats updates as a target-state operation, not as one-module-at-a-time runtime toggles.
Current state
Already available:
provides_interfaces/requires_interfacessource: manual|catalogdocs/RELEASE_DEPENDENCIES.mdRequired behavior
Implement a core update planner that can plan a desired target module version set before activation.
The planner should:
Live data and migrations
The planner must account for live data risk:
Suggested implementation slices
update, current/target versions, target refs, catalog metadata.Acceptance criteria
First slice implemented locally: install plans now support explicit update rows; catalog planning records update when a module is already installed; package catalog entries preserve dependency metadata; preflight resolves catalog-sourced installs/updates as a target state and blocks activation with companion_update_required when a planned update needs another catalog module update or would break an installed consumer. Docs updated in RELEASE_DEPENDENCIES.md and MODULE_ARCHITECTURE.md. Verification: python -m unittest tests.test_module_system passes.
Next slice implemented locally: release catalog entries can now declare migration_safety (automatic/requires_review/forward_only/destructive) plus migration_notes; generated catalogs mark migration-owning modules as requires_review; install-plan rows can carry data_safety_acknowledged; installer preflight blocks unacknowledged forward-only/destructive catalog updates and requires a cleanup/retirement note for destructive entries. Admin schemas and UI expose the safety metadata and acknowledgement toggle. Verification: python -m unittest tests.test_module_system passes (89 tests).
Next slice implemented locally: installer preflight now returns a structured target_plan summary for planned package changes, including action, source, current version, catalog target version, package refs, migration_safety, migration_notes, and data_safety_acknowledged. Admin API schemas and the module-management UI now surface this target plan above the raw preflight issues so operators can review the intended current->target state without JSON editing. Docs updated in RELEASE_DEPENDENCIES.md and MODULE_ARCHITECTURE.md. Verification: python -m unittest tests.test_module_system passes (90 tests); git diff --check passes in core and admin.
Merged related scope from
add-ideas/govoplan-core#35: add-ideas/govoplan-core#35The older issue asks for WebUI-driven update/rollback with backup and rollback guardrails. Those requirements are part of the target-state update planner and its installer/preflight/rollback guardrail work, so #231 remains canonical.
Implemented the next update-planner slice.
Done now:
Validation:
Still not part of this slice:
Implemented the next update-planner slice: module-aware migration execution planning.
Done now:
Validation:
Remaining boundary:
Implemented the remaining live-data migration task slice for the target-state update planner.
What is now covered:
MigrationSpecsupports constrainedmigration_taskswith explicit phases, task version, safety, idempotency, optional timeout, and executor metadata.scripts/generate-release-catalog.pypreserve task metadata so operators see warnings before activation.migration_plan.tasksand blocks unsafe activation:govoplan_core.commands.init_dbruns pre-migration tasks before Alembic and post-migration tasks after Alembic, writing task records back to installer run records.Validation run:
python -m unittest tests.test_module_systemOKpython -m unittest tests.test_database_migrationsOKnpm run buildingovoplan-core/webuiOKgit diff --checkOK for core/adminI am closing this because the target-state planner, companion update resolution, catalog trust/contract validation, migration ordering, live-data task diagnostics/execution, and admin preflight surface are now implemented. Any concrete module-specific migration task can be tracked separately.
Follow-up refinement after the closing note: failed module migration task execution now raises a task-execution error carrying partial records, and init_db writes the migration task record file from a finally block. That keeps installer/audit evidence available even when a pre/post migration task blocks or fails.