> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** Remove `customer.updatedDate` and `customer.goodsOrder` from every create-order API request without mutating page state or removing unrelated customer fields.
**Goal:** Remove `customer.updatedDate`, `customer.goodsOrder`, and `customer.actualDeliveryDate` from every create-order API request without mutating page state or removing unrelated customer fields.
**Architecture:** Extend the existing customer-property denylist used by the pure `buildSubmitPayload` serialization helper. Verify behavior at that boundary so every submission route receives the same cleanup.
**Architecture:** Extend the existing customer-property denylist used by the pure `buildSubmitPayload` serialization helper. Verify behavior at that boundary so every submission route receives the same cleanup.
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
## Global Constraints
## Global Constraints
- Remove only `customer.updatedDate` and `customer.goodsOrder` in addition to the customer properties already cleaned.
- Remove only `customer.updatedDate`, `customer.goodsOrder`, and `customer.actualDeliveryDate` in addition to the customer properties already cleaned.
- Do not modify the page's `orderObj` or customer archive echo data.
- Do not modify the page's `orderObj` or customer archive echo data.
- Preserve unrelated customer fields.
- Preserve unrelated customer fields.
- Apply the cleanup to normal payment, prerecorded, correction, and supplement submissions through their shared payload builder.
- Apply the cleanup to normal payment, prerecorded, correction, and supplement submissions through their shared payload builder.
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
**Interfaces:**
**Interfaces:**
- Consumes: `buildSubmitPayload(orderObj, context)` and `SUBMIT_CUSTOMER_PROPERTIES_TO_DELETE` from `submitPayload.helpers.js`.
- Consumes: `buildSubmitPayload(orderObj, context)` and `SUBMIT_CUSTOMER_PROPERTIES_TO_DELETE` from `submitPayload.helpers.js`.
- Produces: A cloned request object that omits `customer.updatedDate` and `customer.goodsOrder` while preserving other customer properties.
- Produces: A cloned request object that omits `customer.updatedDate`, `customer.goodsOrder`, and `customer.actualDeliveryDate` while preserving other customer properties.
The create-order page must omit `customer.updatedDate` and `customer.goodsOrder` from every order submission request while leaving the page's customer archive data unchanged.
The create-order page must omit `customer.updatedDate`, `customer.goodsOrder`, and `customer.actualDeliveryDate` from every order submission request while leaving the page's customer archive data unchanged.
## Design
## Design
Add `updatedDate` and `goodsOrder` to the existing `SUBMIT_CUSTOMER_PROPERTIES_TO_DELETE` list in `submitPayload.helpers.js`. `buildSubmitPayload` already deep-clones `orderObj` and removes the listed customer properties at the final request serialization boundary, so the page state and customer profile echo remain untouched.
Add `updatedDate`, `goodsOrder`, and `actualDeliveryDate` to the existing `SUBMIT_CUSTOMER_PROPERTIES_TO_DELETE` list in `submitPayload.helpers.js`. `buildSubmitPayload` already deep-clones `orderObj` and removes the listed customer properties at the final request serialization boundary, so the page state and customer profile echo remain untouched.
This applies consistently to normal payment, prerecorded, correction, and supplement submissions because all of them use the same payload builder. Root-level `updatedDate` continues to be removed by the existing root cleanup rule.
This applies consistently to normal payment, prerecorded, correction, and supplement submissions because all of them use the same payload builder. Root-level `updatedDate` continues to be removed by the existing root cleanup rule.
## Verification
## Verification
Extend the submit-payload unit test fixture with `customer.updatedDate` and `customer.goodsOrder`, then assert that the generated request omits both while preserving an unrelated customer field. Run the focused unit test, the create-order test suite, and the full work-order verification suite.
Extend the submit-payload unit test fixture with `customer.updatedDate`, `customer.goodsOrder`, and `customer.actualDeliveryDate`, then assert that the generated request omits all three while preserving an unrelated customer field. Run the focused unit test, the create-order test suite, and the full work-order verification suite.