Skip to content

P4-12: risk and replacement order - #496

Merged
sknampally merged 1 commit into
mp/source-packagesfrom
p4/replacement-order
Nov 28, 2026
Merged

sknampally merged 1 commit into
mp/source-packagesfrom
p4/replacement-order

Conversation

@sknampally

Copy link
Copy Markdown
Collaborator

P4-12 (#422), part of #386. Specification: docs/pipeline-4.md, section 4 D11.

Stacked on #495 (release 1.1), which is stacked on #494 and #493. Retarget to develop once those are merged.

The design orders capabilities for replacement with no model, from each one's risk and what it touches:

  • Read-only first: reporting only, or nothing on the list, at low risk.
  • Then updates: record updates, card data or personal data.
  • Money, security and audit last, with any other high-risk capability.

Within a wave the order is lower risk first, then final before draft. A capability that shares a data contract or a screen with one already placed follows it at once, but never moves into an earlier wave. Each place gives its reason in words.

Where the order shows:

  • the design page: an "Order of replacement" table;
  • the package's constitution: line 6 states the rule, and an "Order of replacement" section lists the capabilities;
  • Claude Code's tasks.md: capabilities in that order;
  • every form's tasks: each capability says where it comes and why.

The package's data-contracts.md heading also now covers tables and entities, a follow-on from L1-06.

Checked locally with the dev extra: ruff check src tests passes, mypy finds no issues, and the 526 tests pass.

Prepared with AI assistance.

The design orders the capabilities for replacement, with no model
(docs/pipeline-4.md, section 4 D11), and writes design/order.json with
each place's wave and reason.

- Three waves, from each capability's risk and what it touches (P3-24):
  read-only first (reporting only, or nothing on the list, and low
  risk); then updates (record updates, card or personal data); then
  money, security and audit, or any high-risk capability, last.
- Within a wave: lower risk first, then final capabilities before
  drafts, then the specifications' own order.
- A capability that shares a data contract or a screen with one already
  placed follows it at once, within its own wave. Sharing never pulls a
  money or security capability into an earlier wave.
- Each place says why in words, for example "Money, security or audit,
  so last: it touches security; high risk." or "... Follows View an
  account: they share CVACT01Y."
- The design page has an "Order of replacement" table linking each
  capability. The package's constitution replaces its placeholder line
  6 with the rule and an "Order of replacement" list. Claude Code's
  tasks.md is in that order, and every form's tasks for a capability
  say where it comes and why.

The package's data-contracts.md now speaks of copybooks, tables or
entities (L1-06's contracts).

Tests: the three waves and their reasons, the order within a wave,
shared data and screens kept together, a shared contract never moving a
capability to an earlier wave, and a whole design round's page,
constitution and tasks in each form.

Prepared with AI assistance.
Base automatically changed from l1/any-legacy to mp/source-packages November 28, 2026 17:19
@sknampally
sknampally merged commit 223941e into mp/source-packages Nov 28, 2026
@sknampally
sknampally deleted the p4/replacement-order branch November 28, 2026 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant