Skip to content

Commit 36ac9d4

Browse files
committed
PR_26171_059 rollback restore plan
1 parent 20fd280 commit 36ac9d4

5 files changed

Lines changed: 338 additions & 224 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# PR_26171_059 Manual Validation Notes
2+
3+
## Manual Review
4+
5+
- Confirmed this PR only documents the rollback restore plan.
6+
- Confirmed the restore list keeps Local API sign-in recovery, env diagnostics, toolbox image restoration, Text To Speech rebuild, and Game Journey corrections as separate future scoped PRs.
7+
- Confirmed this PR does not reapply implementation.
8+
- Confirmed this PR excludes disconnected PC branch reuse, broad cherry-picks, wrong-path `tools/text2speech/` work, placeholder Text To Speech shell work, and unrelated report churn.
9+
10+
## Runtime Notes
11+
12+
- No browser sign-in flow was manually exercised for this PR.
13+
- No Local API runtime was started for this PR.
14+
- No Project Workspace runtime validation was run for this PR.
15+
- No Text To Speech runtime validation was run for this PR.
16+
- No toolbox image runtime validation was run for this PR.
17+
- No Game Journey runtime validation was run for this PR.
18+
19+
Runtime validation must happen in the future scoped implementation PRs listed in `PR_26171_059-rollback-restore-plan.md`.
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
# PR_26171_059 Rollback Restore Plan
2+
3+
## Purpose
4+
5+
Commit the clean recovery state from latest `main` and document the work that must be restored after rollback.
6+
7+
This PR is documentation-only. It does not reapply implementation work, does not reuse the disconnected PC branch, and does not cherry-pick broad contaminated history.
8+
9+
## Baseline Evidence
10+
11+
- Verified starting branch: `main`.
12+
- Removed leftover local-only PR_26171_057 report artifacts before branching.
13+
- Pulled latest `origin/main` with a fast-forward update.
14+
- Recovery baseline commit used for this PR branch: `20fd280c608917b960b3080484a5d28c51990ccb`.
15+
- Created scoped branch: `pr/26171-059-rollback-restore-plan`.
16+
- No runtime, toolbox, engine, API, or test implementation files are changed by this PR.
17+
18+
## Restore List After Rollback
19+
20+
1. Local API sign-in recovery
21+
- Inspect the sign-in page and its external JavaScript first.
22+
- Remove preview-disabled sign-in behavior.
23+
- Use the configured API URL instead of hardcoded preview-disabled behavior.
24+
- Submit email and password to the Local API session auth endpoint used by `npm run dev:local-api`.
25+
- On valid DEV credentials, create a Local API session and redirect to the expected signed-in destination.
26+
- On invalid credentials, show a visible actionable error.
27+
- Keep Continue Browsing for guest browsing.
28+
- Do not create fake login.
29+
- Do not use browser-owned auth as the source of truth.
30+
- Do not create custom password tables.
31+
- Do not change Create Account or Password Reset beyond keeping placeholders safe.
32+
33+
2. Env diagnostics and runtime ports
34+
- Print all env keys one per row.
35+
- Mask secrets.
36+
- Print the active site, API, and database ports.
37+
38+
3. Toolbox image restoration
39+
- Restore valid toolbox images.
40+
- Remove excessive `image-missing.svg` fallbacks.
41+
- Keep image restoration scoped to real existing assets or approved replacements.
42+
43+
4. Text To Speech engine/audio rebuild
44+
- Use `old_text2speech-V2` as the functionality sample.
45+
- Move reusable Text To Speech engine code to `src/engine/audio/`.
46+
- Make `toolbox/text-to-speech/` consume the reusable engine module.
47+
- Restore old controls, options, and features from the working sample.
48+
- Do not use the wrong `tools/text2speech/` path.
49+
- Do not ship placeholder Text To Speech shell work that does not restore functionality.
50+
51+
5. Game Journey table correction
52+
- Add row under the table.
53+
- Support inline edit row behavior.
54+
- Treat Note Tree as a subtable.
55+
- Show metadata in table columns.
56+
- Ensure system notes cannot be deleted.
57+
58+
6. Game Journey post-rollback verification
59+
- Confirm friendly descriptions.
60+
- Confirm dashboard, targets, and insights only if those surfaces are still present on clean `main`.
61+
- Reapply missing approved Journey work only from clean `main`.
62+
63+
## Reapply Rules
64+
65+
- Every reapply PR starts from clean `main`.
66+
- Every reapply PR gets its own branch.
67+
- Every reapply PR is scoped to one approved purpose.
68+
- Do not reuse the disconnected branch.
69+
- Do not merge the disconnected branch.
70+
- Do not cherry-pick broad PC commits.
71+
- Prefer file-level or diff-level reapplication for approved scoped changes.
72+
- Exclude wrong-path work such as `tools/text2speech/`.
73+
- Exclude placeholder Text To Speech shell work.
74+
- Exclude unrelated report churn.
75+
- Run targeted validation only after each reapply PR implements its scoped change.
76+
77+
## Approved Reapply Order
78+
79+
1. Local API sign-in recovery.
80+
2. Env diagnostics and runtime ports.
81+
3. Toolbox image restoration.
82+
4. Text To Speech engine/audio rebuild from the old working Text To Speech sample.
83+
5. Game Journey table corrections if still missing.
84+
6. Game Journey post-rollback verification and approved follow-up only if still needed.
85+
86+
## Discarded Contaminated Work
87+
88+
- Disconnected PC branch history.
89+
- Broad cherry-picks from contaminated commits.
90+
- Wrong-path `tools/text2speech/` work.
91+
- Placeholder Text To Speech shell work.
92+
- Unrelated report churn.
93+
- Any implementation work not revalidated from clean `main`.
94+
95+
## Validation Boundary
96+
97+
This PR is limited to docs/static validation. It intentionally does not run Local API sign-in validation, Text To Speech runtime validation, toolbox image runtime validation, or Project Workspace validation because implementation reapply is out of scope for PR_26171_059.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# PR_26171_059 Validation Report
2+
3+
## Scope
4+
5+
Validation is docs/static only for this rollback restore plan PR.
6+
7+
Implementation validation is intentionally deferred until each approved restore item is reapplied in its own scoped PR from clean `main`.
8+
9+
## Commands
10+
11+
- `git status --short --branch`
12+
- PASS: starting branch was `main`.
13+
- PASS: leftover PR_26171_057 local-only report artifacts were removed before branching.
14+
- PASS: PR branch was created from clean latest `main`.
15+
- `git pull --ff-only origin main`
16+
- PASS: local `main` fast-forwarded to `20fd280c608917b960b3080484a5d28c51990ccb`.
17+
- `npm run test:playwright:static`
18+
- PASS: static-only validation completed successfully.
19+
- Note: the command refreshed generated validation reports; those generated report changes were restored because they are unrelated to this rollback plan PR.
20+
- `git diff --check`
21+
- PASS: no whitespace errors.
22+
23+
## Not Run
24+
25+
- `npm run dev:local-api`
26+
- `npm run test:workspace-v2`
27+
- Runtime sign-in validation
28+
- Text To Speech runtime validation
29+
- Toolbox image runtime validation
30+
- Game Journey runtime validation
31+
32+
These commands are intentionally out of scope for this docs/static rollback plan PR.
Lines changed: 24 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,39 @@
1-
# Codex Changed Files - PR_26171_039-table-first-workspace-governance
1+
# Codex Changed Files - PR_26171_059-rollback-restore-plan
22

33
## Git Workflow
4-
- Current branch: `codex/pr-26171-039-table-first-workspace-governance`.
5-
- Expected starting branch: `main` (PASS before branch creation).
6-
- Created branch: `codex/pr-26171-039-table-first-workspace-governance`.
4+
- Verified starting branch: `main`.
5+
- Verified repo scope: clean after removing leftover local-only PR_26171_057 report artifacts.
6+
- Pulled latest `origin/main`: `20fd280c608917b960b3080484a5d28c51990ccb`.
7+
- Created branch: `pr/26171-059-rollback-restore-plan`.
78
- Push result: pending until after commit.
89
- PR URL: pending until after push.
910
- Merge result: pending until after PR validation/merge.
10-
- Final main commit: pending until after merge and final pull.
11+
- Final main sync: pending until after merge and final pull.
1112

1213
## Changed Files
13-
- docs_build/dev/PROJECT_INSTRUCTIONS.md
14-
- docs_build/dev/reports/codex_changed_files.txt
14+
- docs_build/dev/reports/PR_26171_059-rollback-restore-plan.md
15+
- docs_build/dev/reports/PR_26171_059-validation.md
16+
- docs_build/dev/reports/PR_26171_059-manual-validation-notes.md
1517
- docs_build/dev/reports/codex_review.diff
18+
- docs_build/dev/reports/codex_changed_files.txt
1619

1720
## Requirement Evidence
18-
- PASS: Added `TABLE-FIRST WORKSPACE GOVERNANCE` section to `docs_build/dev/PROJECT_INSTRUCTIONS.md`.
19-
- PASS: Section states primary work surface is a table.
20-
- PASS: Section says to prefer inline table workflows over forms.
21-
- PASS: Section prohibits detached selected-item context panels.
22-
- PASS: Section prohibits detached notes/detail panels when child rows can render under the parent row.
23-
- PASS: Parent/child patterns include Idea 1-* Notes, Character 1-* Dialog, Quest 1-* Objectives, and Audio Profile 1-* Effects.
24-
- PASS: Section says parent name cell owns accordion behavior.
25-
- PASS: Section says chevron appears inside parent name cell.
26-
- PASS: Section says entire parent name cell toggles expansion.
27-
- PASS: Section says child count columns are informational only.
28-
- PASS: Section says only one parent row may be expanded at a time.
29-
- PASS: Section says default state is all collapsed.
30-
- PASS: Section says child rows are indented.
31-
- PASS: Section says child Add button aligns with child rows.
32-
- PASS: Section says metadata remains stored but hidden unless explicitly needed.
33-
- PASS: Section says Add buttons are left aligned and self-describing.
34-
- PASS: Section says enumerated fields become dropdowns during edit mode.
35-
- PASS: Visual examples include default collapsed table, expanded parent with indented child rows, normal Edit/Delete row, edit Save/Cancel row with dropdown status, and add Save/Cancel row.
36-
- PASS: Explicit row-state rules include Normal row actions: Edit Delete.
37-
- PASS: Explicit row-state rules include Edit row actions: Save Cancel.
38-
- PASS: Explicit row-state rules include Add row actions: Save Cancel.
39-
- PASS: Explicit row-state rules state Save/Cancel is row-level only.
40-
- PASS: Explicit row-state rules prohibit page-level Save for normal row editing.
41-
- PASS: Explicit row-state rules state Cancel restores previous row state.
42-
- PASS: Explicit row-state rules state Save commits only the edited row.
43-
- PASS: Explicit row-state rules prohibit multiple simultaneous row edits unless explicitly approved.
44-
- PASS: Runtime code was not changed.
45-
- PASS: Tests were not changed.
46-
- PASS: Roadmap status was not changed.
21+
- PASS: Documented Local API sign-in recovery requirements.
22+
- PASS: Documented env diagnostics and runtime port requirements.
23+
- PASS: Documented toolbox image restoration requirements.
24+
- PASS: Documented Text To Speech engine/audio rebuild requirements.
25+
- PASS: Documented Game Journey table correction requirements.
26+
- PASS: Documented Game Journey post-rollback verification requirements.
27+
- PASS: Documented reapply rules requiring clean `main`, scoped branches, and no disconnected branch reuse.
28+
- PASS: Documented discarded contaminated work list.
29+
- PASS: No implementation reapply in this PR.
4730

4831
## Validation
32+
- PASS: `npm run test:playwright:static`.
33+
- PASS: Restored unrelated generated validation report churn after static validation.
4934
- PASS: `git diff --check`.
50-
- PASS: Heading confirmation found `## TABLE-FIRST WORKSPACE GOVERNANCE`.
51-
- PASS: Visual examples confirmation found `Visual examples:` and numbered examples.
52-
- PASS: Save/Cancel row-state confirmation found edit/add examples and explicit row-state rules.
53-
- PASS: No Playwright impact; this PR is docs/workflow only.
35+
- NOT RUN: `npm run dev:local-api` by design for docs/static-only scope.
36+
- NOT RUN: `npm run test:workspace-v2` by design for docs/static-only scope.
5437

5538
## ZIP
56-
- Path: `tmp/PR_26171_039-table-first-workspace-governance_delta.zip`.
57-
- Size and contents: reported after final ZIP generation.
39+
- Path: `tmp/PR_26171_059-rollback-restore-plan_delta.zip`.

0 commit comments

Comments
 (0)