Private
Public Access
0
0
Commit Graph

4745 Commits

Author SHA1 Message Date
ed 864100b4a7 fix(chronology): archive = completed (the git mv IS the completion signal; don't guess Abandoned) 2026-07-02 08:56:15 -04:00
ed 2d5ce12c7b docs(report): update quality + completion reports with honest Needs Review status for 43 ambiguous archive tracks 2026-07-02 08:25:12 -04:00
ed 792dd7d430 fix(chronology): mark genuinely-ambiguous archive tracks as Needs Review instead of guessing Abandoned (work may be in src/ not track folder) 2026-07-02 08:24:25 -04:00
ed f0eba0c5eb docs(report): update TRACK_COMPLETION with honest manual-review notes 2026-07-02 08:19:03 -04:00
ed 03b0403a35 docs(report): update CHRONOLOGY_QUALITY_20260701 with corrected status distribution (167 Completed / 43 Abandoned) + manual review notes 2026-07-02 08:18:40 -04:00
ed cc23a0586d fix(chronology): add 'mark as completed' + archive-move heuristic for old tracks without state.toml 2026-07-02 08:17:54 -04:00
ed ebd4704324 fix(chronology): respect state.toml status as override + plan-progression heuristic for old archive tracks 2026-07-02 08:14:30 -04:00
ed 9f268fd3e2 docs(report): add TRACK_COMPLETION_chronology_v2_20260701 2026-07-01 23:56:44 -04:00
ed c6593278ab conductor(state): mark Phase 5 complete for chronology_v2_20260701 2026-07-01 23:55:21 -04:00
ed a4b8158f01 conductor(checkpoint): Phase 5 complete (tracks.md de-gunked + workflow.md maintenance rule) 2026-07-01 23:54:47 -04:00
ed 5a0453b3b9 docs(workflow): add Chronology Maintenance section (regeneration cadence + quality gate obligation) 2026-07-01 23:54:30 -04:00
ed 342638e158 docs(tracks): de-gunk tracks.md — remove Phase 0-9 history + shipped rows; keep active queue + standby + pointer to chronology.md (941→90 lines) 2026-07-01 23:53:14 -04:00
ed 0ea6dc24f6 conductor(state): mark Phase 4 complete for chronology_v2_20260701 2026-07-01 23:51:33 -04:00
ed 0b8bf0793b conductor(checkpoint): Phase 4 complete (chronology.md regenerated + quality report) 2026-07-01 23:51:02 -04:00
ed ddc4cb7d60 docs(report): add CHRONOLOGY_QUALITY_20260701 (v2 quality report with status distribution + Needs Review queue) 2026-07-01 23:50:55 -04:00
ed f5a08634b3 feat(chronology): regenerate chronology.md with v2 git-history classifier (closes 5-day desync gap) 2026-07-01 23:50:19 -04:00
ed fedfa6efc8 conductor(state): mark Phase 3 complete for chronology_v2_20260701 2026-07-01 23:33:02 -04:00
ed 6323b3ec56 conductor(checkpoint): Phase 3 complete (Green: classifier + quality gate implemented) 2026-07-01 23:32:28 -04:00
ed 9010e69007 feat(chronology): add chronology_quality_gate.py (4 checks + --strict mode) 2026-07-01 23:29:52 -04:00
ed 945751b99a feat(chronology): rewrite classifier to use git-history evidence + 7-status enum + Needs Review section 2026-07-01 23:29:45 -04:00
ed 9d8fc90415 conductor(state): mark Phase 2 complete for chronology_v2_20260701 2026-07-01 23:26:06 -04:00
ed 25c5dbbc71 conductor(checkpoint): Phase 2 complete (Red tests for classifier + quality gate) 2026-07-01 23:24:10 -04:00
ed 078a84b608 test(chronology): write Red tests for quality gate (4 checks) 2026-07-01 23:24:04 -04:00
ed 6f57c893cd test(chronology): write Red tests for v2 classifier + summary extractor 2026-07-01 23:23:01 -04:00
ed 60ce940204 conductor(state): mark Phase 1 complete for chronology_v2_20260701 2026-07-01 23:21:27 -04:00
ed cc98205642 conductor(checkpoint): Phase 1 complete (close out old track + scaffold new one) 2026-07-01 23:19:58 -04:00
ed c1da0f9942 conductor(track): init chronology_v2_20260701 (spec + metadata + state + plan) 2026-07-01 23:19:42 -04:00
ed fefc152602 conductor(superpowers_review): remove chronology_20260619 blocker (superseded) 2026-07-01 23:18:50 -04:00
ed 0b00671b8b conductor(chronology): archive chronology_20260619 folder (superseded) 2026-07-01 23:18:23 -04:00
ed 1867d1c6f2 conductor(tracks): mark chronology_20260619 row as superseded 2026-07-01 23:18:01 -04:00
ed 2e52944b5f conductor(chronology): mark chronology_20260619 as superseded by chronology_v2_20260701 2026-07-01 23:17:29 -04:00
ed e5f37e7443 conductor(track): init mma_quarantine_rag_test_decoupling_20260701 (spec + metadata + state + tracks.md row)
Track artifacts for the MMA quarantine + RAG test decoupling effort.
Design doc lives at docs/superpowers/specs/ (historical record preserved).
Plan.md pending user spec approval.
2026-07-01 18:54:05 -04:00
ed 7c046ee7b4 docs(spec): clarify ai_settings.toml vs manual_slop.toml for mma.enabled flag 2026-07-01 18:41:30 -04:00
ed 9a6fd8066b docs(spec): MMA quarantine + RAG test decoupling design 2026-07-01 18:41:18 -04:00
ed 195c626ad8 fix(generate_type_registry): atomic write_registry to fix xdist race
The previous write_registry wiped existing .md files first, then wrote
new ones. When multiple xdist workers ran the script concurrently, they
would clobber each other mid-write, causing intermittent test failures
(test_generate_type_registry.py would see missing or stale files).

Fix: generate to a sibling staging directory (PID+timestamp suffix)
first, then use os.replace() to atomically swap into place. No observer
can see the registry in a partial state.

The staging dir is built manually (not via tempfile) because
scripts/audit_no_temp_writes.py forbids tempfile imports in scripts/.

Verified: 6/6 tests in test_generate_type_registry.py PASS in isolation
and in tier-1-unit-core batch (was: 2 failed due to race); audit CLEAN.
2026-06-30 11:54:40 -04:00
ed e48bca01d5 docs(type_registry): regenerate for src_paths layouts field + new src_layouts
Auto-generated by scripts/generate_type_registry.py after the recent
src/gui_2.py and src/paths.py changes:

- src_paths.md: adds 'layouts: Path' to the Paths struct fields list
- src_layouts.md: NEW module file (src/layouts.py added by the
  default_layout_install track)
- index.md: includes the new src_layouts.md entry

Pure doc regeneration; no production code changed.
2026-06-30 09:58:15 -04:00
ed 2c447af10b fix(app_controller): clear undo/redo history in btn_reset
test_undo_redo_lifecycle in tests/test_undo_redo_sim.py was failing in
the live_gui batch (passes in isolation) because btn_reset
(_handle_reset_session) was not clearing the HistoryManager's undo and
redo stacks. Prior tests in the same live_gui session leave stale
entries that interfere with tests that assume btn_reset provides a
clean history baseline.

Adds clearing of:
- app.history._undo_stack
- app.history._redo_stack
- app._last_ui_snapshot (None so the next take sets the baseline)
- app._pending_snapshot (False so debounce starts fresh)
- app._state_to_push (None so no stale state queued for push)

at the end of _handle_reset_session. The App is reached via
self.hook_server.app (set during _init_ai_and_hooks); all accesses are
guarded with hasattr/getattr for safety when the hook_server isn't
initialized yet (tests that construct AppController without starting
services).

Tests: test_undo_redo_lifecycle, test_undo_redo_discussion_mutation,
test_undo_redo_context_mutation all pass (3/3). The previously-failing
batch context also passes (verified with 14 tests from the gw7 worker
plus the test_undo_redo_sim set).
2026-06-30 09:57:42 -04:00
ed ebd9ad3119 refactor(gui_2): migrate 2 sites to Result[T] (Phase 8/9/10 audit invariant fixes)
Migrates two INTERNAL_BROAD_CATCH / INTERNAL_SILENT_SWALLOW sites in
src/gui_2.py to the drain-aware Result[T] pattern per Phase 10:

1. L1540 _install_default_layout_if_empty: extract the
   imgui.load_ini_settings_from_memory try/except (broad Exception
   catch) into a new _apply_default_layout_to_session_result helper
   that returns Result[bool]. The helper converts the exception to
   ErrorInfo; the caller propagates the error so App._post_init can
   drain it to _startup_timeline_errors.

2. L7136 render_tier_stream_panel (else branch, tier3_keys loop):
   replace the inline except (TypeError, AttributeError): pass with
   the existing _tier_stream_scroll_sync_result helper, mirroring
   the migration already applied to the if-branch (L7074). Errors
   drain to app._last_request_errors with source
   'render_tier_stream_panel.tier3_dispatcher'.

Audit: BROAD_CATCH count 1 -> 0; SILENT_SWALLOW count 1 -> 0.
Tests: test_phase_8_invariant_property_setter_count_dropped,
test_phase_9_invariant_helper_utility_count_dropped,
test_phase_10_invariant_silent_swallow_count_zero all pass.
2026-06-30 09:56:51 -04:00
ed 093bafe51b Merge remote-tracking branch 'origin/master' 2026-06-30 09:18:30 -04:00
ed ee7b1e263e docs(ascii-dsl): add §8 Screenshot-to-ASCII Reverse Engineering (opt-in extension)
Documents the MiniMax_understand_image workflow for converting
screenshots to ASCII Layout Maps. Covers: when to use it, the
6-step workflow, the proportional-measurement prompt pattern,
faithful rendering rules (width ratios, empty space, floating
window position, color annotations, tab bars, table rows),
multi-screenshot composition, and limitations.
2026-06-30 09:04:09 -04:00
ed 7e3ce307e1 Merge remote-tracking branch 'tier2-clone/tier2/default_layout_install_20260629' into tier2/default_layout_install_20260629 2026-06-30 08:10:08 -04:00
ed c8a17e3a29 fix(layout): use provide_full_screen_dock_space for window anchoring
The previous fix (commit 5ab23f9e) used no_default_window to preserve
the INI's dock tree structure, but that left the dockspace NOT anchored
to the native window. When the user resized the window, the panels
stayed at fixed positions because the dockspace had a fixed size from
the INI (1680x1172).

Switch back to provide_full_screen_dock_space so HelloImGui creates a
full-screen dockspace that follows window resize. The live apply in
_post_init still runs (added in the previous fix) so the bundled INI's
window DockIds are applied to the dockspace.

Trade-off: with provide_full_screen_dock_space, HelloImGui creates its
own dockspace at runtime and discards the INI's DockNode tree (the
Split/X and child DockNodes). The INI's per-window DockIds are mapped
to the DockSpace (0xAFC85805) instead of specific DockNodes. Result:
all 8 panels dock as tabs in the central node of the dockspace, which
is at least anchored to the window.

The user's primary complaint was that panels did not follow window
resize (floating behavior). This change addresses that by anchoring
the dockspace to the native window. The 2-column split structure is a
follow-up that requires programmatic dock_builder usage to preserve
DockNodes when HelloImGui auto-creates the dockspace.

Verification (imgui.save_ini_settings_to_memory at runtime):
- All 8 windows docked with DockId=0xAFC85805,N (the DockSpace)
- DockSpace ID=0xAFC85805 ... CentralNode=1 (anchored to window)
- [Docking][Data] block fully preserved

Tests (16/16 PASS):
- tests/test_default_layout_install.py: 3/3 PASS
- tests/test_api_hooks_gui_health_live.py: 1/1 PASS
- tests/test_command_palette_sim.py: 7/7 PASS
- tests/test_saved_presets_sim.py: 2/2 PASS
- tests/test_live_gui_integration_v2.py: 3/3 PASS
2026-06-30 07:56:17 -04:00
ed 5ab23f9eea fix(layout): make 2-column dock layout actually auto-apply
The pre-run install wrote the bundled INI to cwd, and the
_install_default_layout_if_empty helper applies it via
imgui.load_ini_settings_from_memory() when cwd is empty. But the
GUI was rendering all panels as floating windows at default position
(60, 60) with no DockId, despite the bundled INI having a full
[Docking][Data] block with DockSpace + DockNodes + per-window DockIds.

Root cause analysis (via imgui.save_ini_settings_to_memory() at runtime):

1. With default_imgui_window_type=provide_full_screen_dock_space:
   HelloImGui creates its own DockSpace at runtime, overriding the INI's
   DockSpace settings. The DockSpace ID matches (0xAFC85805) but the
   Split/X and child DockNodes from the bundled INI are discarded.
   Runtime INI shows: 'DockSpace ID=0xAFC85805 Window=0x079D3A04 Pos=0,28
   Size=1666,1172 CentralNode=1' (no DockNodes, no DockIds honored).

2. The pre-run install writes the INI to disk, but HelloImGui's
   load_user_pref runs BEFORE post_init, so even a perfect on-disk
   INI doesn't get re-applied to the current session's dock state
   unless we call imgui.load_ini_settings_from_memory() after the
   first frame.

Two-part fix:

A. src/gui_2.py line 678: change default_imgui_window_type from
   'provide_full_screen_dock_space' to 'no_default_window'. Without
   the auto-created DockSpace, HelloImGui honors the INI's full
   docking tree structure.

B. src/gui_2.py _post_init (line 575): always call
   imgui.load_ini_settings_from_memory() after _install_default_layout
   runs, regardless of whether the cwd INI was empty. This re-applies
   the bundled INI to the live session after the first frame is
   rendered, so the panels are docked correctly on the current launch.

Layouts/default.ini: replace the simple 'DockSpace + 2 direct
DockNode children' structure (silently ignored by HelloImGui) with
the user's working nested DockNode tree (5-level deep), mapped to:
- LEFT column (DockNode 0x10, CentralNode=1): Theme, Project Settings,
  AI Settings, Files & Media, Operations Hub
- RIGHT column (DockNode 0x01): Discussion Hub, Log Management,
  Diagnostics

Verification (imgui.save_ini_settings_to_memory at runtime after
15s + first frame):
- LEFT column windows: Pos=0,28, Size=881,1697 (5 panels stacked)
- RIGHT column windows: Pos=883,28, Size=1183,1697 (3 panels stacked)
- [Docking][Data] block fully preserved (DockSpace + 8 DockNodes)
- All 8 panels docked (not floating)

Tests:
- tests/test_default_layout_install.py: 3/3 PASS
- tests/test_api_hooks_gui_health_live.py: 1/1 PASS
- tests/test_command_palette_sim.py: 7/7 PASS
- tests/test_saved_presets_sim.py: 2/2 PASS
- tests/test_live_gui_integration_v2.py: 3/3 PASS
2026-06-30 07:30:44 -04:00
ed 8797726ebb Merge branch 'tier2/default_layout_install_20260629' of C:\projects\manual_slop_tier2 into tier2/default_layout_install_20260629 2026-06-30 05:40:28 -04:00
ed 670e255505 artifacts 2026-06-30 05:40:19 -04:00
ed f2054fbaf3 fix(gui): replace self with app in render_theme_panel
render_theme_panel is a module-level function that takes app as its
parameter, but two lines still referenced 'self' (line 6373 and 6376).
The function was converted from a method (_render_theme_panel) to a
module-level function in the module_taxonomy_refactor_20260627 Phase 1.3
(commit 3dd153f7), but the self -> app substitution was missed.

Symptom: on every frame, render_theme_panel called imgui.begin('Theme', ...)
which pushed the Theme window onto the imgui stack. Then the
'getattr(self, ...)' raised NameError. The exception was swallowed by
_render_main_interface_result's try/except, but the imgui.end() call
at the end of the function was never reached. The Theme window stayed
pushed on the stack, and HelloImGui's auto-managed MainDockSpace asserted
'Missing End()' on every frame.

The bug was masked earlier by commit 71028dad, which fixed a stale
'from src.command_palette import' in render_main_interface. Before that
fix, render_main_interface aborted entirely every frame, so the Theme
window's never-reached end() was hidden behind a different error.

Bisect confirmed: disabling any other default-visible window left the
error; only disabling Theme made /api/gui_health report healthy=True.

Verification:
- tests/test_default_layout_install.py: 3/3 PASS (install behavior unchanged)
- tests/test_api_hooks_gui_health_live.py: 1/1 PASS (was failing)
- tests/test_command_palette_sim.py: 7/7 PASS
- tests/test_saved_presets_sim.py: 2/2 PASS
2026-06-29 23:43:25 -04:00
ed ef6315135c Merge branch 'master' into tier2/default_layout_install_20260629 2026-06-29 22:22:49 -04:00
ed 410d81fb3f fix(track): correct line numbers in default_layout_extract spec/plan for master (not cruft branch)
The spec was drafted while the working tree was on tier2/post_module_taxonomy_de_cruft_20260627, but the track targets master. 2 line numbers were from the cruft branch, not master:
- src/commands.py reset_layout: spec said :342-378 + :371; master is :248-275 + :268
- src/command_palette.py: spec said 208 lines; master is 165 lines

Also added a Branch State Warning section documenting:
- main working tree is on tier2/post_module_taxonomy_de_cruft_20260627 (NOT master)
- module_taxonomy_refactor_20260627 + post_module_taxonomy_de_cruft_20260627 are NOT merged to master
- this track does NOT depend on those cruft tracks
- master worktree at C:\projects\manual_slop_master is the editing surface

All other line numbers (App._post_init:566, App.run:619, _run_immapp_result:691, _post_init_callback_result:1449, render_persona_editor_window:3433, orphan end_child:6990, paths.py themes:60/83/150/209-216/295) verified correct against master.
2026-06-29 22:18:25 -04:00
ed b2c0cefc62 aahhhh 2026-06-29 22:02:29 -04:00
ed 466d26567b conductor(track): init default_layout_extract_20260629 (extract tier-2 good work + build hard 4-layer visual verification)
Plan (per user direction, hybrid approach C + single track):
1. Port layouts/default.ini + src/layouts.py fresh from tier-2 (clean history)
2. Cherry-pick c2155593 (orphan end_child) + 3b966288 (reset_layout)
3. Add _install_default_layout_* helpers + App.run + App._post_init wiring
4. Build 4 verification layers:
   - Layer 1: per-panel render sentinel (catches 'panel never opens')
   - Layer 2: Win32 PrintWindow pixel baseline (catches ALL visual regressions)
   - Layer 3: forced test viewport + theme env vars (makes baseline deterministic)
   - Layer 4: cannot-skip gates (standalone CLI + CI + VERIFIED-<date> tag)
5. Negative test proves the verification catches the original bug

Tier-2 commits NOT extracted:
- e9654518 (wrong-theory INI strip, superseded)
- 13ad9d3e 'idk' (meaningless)
- 28527851 'artifacts' (meaningless)
- 9437af6c (27 diagnostic scripts)
- 71028dad (drop stale src.command_palette import - tier-2 specific; master has the module so the import WORKS)

Scope: 9 phases, 36 tasks, ~36 atomic commits.
Files: 3 new (src/layouts.py, layouts/default.ini, tests/artifacts/visual_baseline_default.png, scripts/check_visual_baseline.py, docs/guide_visual_verification.md), 6 modified (src/gui_2.py, src/paths.py, src/commands.py, scripts/run_tests_batched.py, conductor/tracks.md, docs/Readme.md).

HARD verification: cannot be skipped. VERIFIED-<date> tag required for [x]-completion.
2026-06-29 21:59:52 -04:00