GEstimator

Development workflow and maintainability

Current workflow. Navigation: index · architecture · UI rules · verification. Root AGENTS.md owns mandatory code/comment/formatting rules.

Before changing code

  1. Use the task map and read the relevant current contract and source links. Check existing tests for retained behavior.
  2. Identify the owner: domain calculation, service orchestration, transaction, view state, native integration or public MCP adaptation. Read neighboring helpers before creating another abstraction.
  3. Check the quality audit and roadmap. Separate requested work from future proposals and historical migration notes.
  4. State the behavior/invariant being changed and choose focused regression evidence from the testing matrix.

Keep changes in their layer

Modularity review

Choose a named module for one concern and explicit inputs/outputs. Existing owners are listed in the backend and frontend maps.

Before extending an oversized shell/router, extract the new concern into a handler, composable or component. Small forwarding methods are acceptable when preserving an existing API. Do not replace a large file with hidden state mixins, numbered file fragments or layers that only forward every argument unchanged.

The root rules use 600-line modules and 80-line functions as review triggers. For a larger unit, explain why its responsibilities belong together and how it will be verified. Do not create many trivial helpers merely to pass a line count. Delete superseded implementations and update the owning contract in the same change.

Preserve data and compatibility

Frontend and user-facing behavior

Follow UI guidelines for shared controls, tokens, accessibility, keyboard behavior, draft actions, status/error presentation and both themes. Keep new IPC shapes explicit; isolate third-party any in an adapter rather than adding casts throughout a view. Preserve human inputs during stale/agent refresh.

User-facing text describes GEstimator behavior. Internal migration/GTK references belong in code comments or historical developer records. Name actions by their outcome and include counts when they help the user understand scope.

Finish a change

  1. Apply/check the configured formatting on changed source files. Keep unrelated files out of formatting-only churn. The testing guide owns commands.
  2. Run relevant focused checks and the required app/native suites for executable changes. Documentation-only work uses local link/anchor checks and diff checks.
  3. Review error paths, previews, undo and cleanup as well as the happy path. Do not weaken checks, increase schema budgets or replace expected values just to make a test pass.
  4. Update the owning current document and its cross-references. Keep one canonical description of each contract, using the documentation ownership rules.
  5. Append actual commands/results, warnings, skips and remaining platform limits to the validation log. Label targeted reruns and historical evidence accurately. Update roadmap/audit status only with evidence.