8000 Resolve proven superseded feature statuses across worktrees by rore · Pull Request #83 · rore/minimap · GitHub
[go: up one dir, main page]

Skip to content

Resolve proven superseded feature statuses across worktrees - #83

Merged
rore merged 16 commits into
mainfrom
feat/superseding-feature-status
Oct 31, 2026
Merged

rore merged 16 commits into
mainfrom
feat/superseding-feature-status

Conversation

@rore
@rore rore commented Oct 31, 2026 •
Copy link
Copy Markdown
Owner

What changed

Resolve superseded saved status from proven clean feature-revision ancestry, even when unrelated commits make checkout HEADs diverge. Status filters, status grouping, primary status, Done ordering, status-based In play and unfinished participant budgeting use the resolved evidence. Historical search/content, other placement, board order, all checkout versions and pinned-file editing remain intact. Dirty, incomparable, missing or capped proof retains saved evidence. No status/main/time priority, new dependencies, settings or synchronization.

The change includes generi 8000 c real-Git and large-board browser regressions, documentation and both runtime mirrors. Three existing conflict fixtures now create genuinely independent edits; their assertions are unchanged.

Supported-limit qualification exposed Windows native child-start stalls. The shared server now executes Git through one bounded lazy built-in worker, retaining the existing lineage slots, cancellation, deadlines, caps, error fidelity and close/drain checks. Cached source validation checks every source in drained four-source waves. No dependency, public switch, silent fallback or skipped proof is introduced.

Why

A clean historical Active state could mask a newer Done feature despite provable feature ancestry. Whole-checkout HEAD ordering cannot resolve this safely, and Done precedence would break genuine reopenings.

Verification

  • node --test test/worktree-status-supersession.test.js: 26 passed, including divergent HEADs, reopenings, merges, concurrent/equal revisions, dirty/staged/skipped-index files, late changes, missing/shallow/capped evidence, cancellation, normalization and bounded Git commands.
  • Existing aggregate/ancestry/evidence/scheduler/payload-server tests: 45 passed. Pure projection/payload/presence compatibility: 34 passed. Mirror/lint checks: 2 passed.
  • Isolated Playwright CLI: new This/Across cases cover List/Columns, 64 items, eight lanes, twelve milestones, desktop/narrow views, historical search with current status, pinned filtered versions through Refresh, actual-file edit confirmation and byte-preservation. Ten final captures inspected. Existing Done-last/appearance/tag checks: 7 passed.
  • node scripts/sync-mirrors.mjs; changed runtime files byte-identical in both packaged skills.
  • Structural follow-up: core checks 41/41; worker/server/snapshot/bootstrap/lifecycle/mirror/lint checks 49 passed with one intentional benchmark skip. Additional late-readiness and idle-worker checks pass. Real packaged stop confirms health during drainage, child closure and registry removal within three seconds. Test-only metrics count actual worker commands; warm zero-Git cannot pass from missing worker counters.
  • Independent clean-context plan and result reviews approved status behavior at d2ffd233 and structural application 35947fa859f84ab43d6658035d3ab60513ea673a; no remaining actionable findings. Full CI and owner/human architecture acceptance remain separate gates.

Final supported-limit HTTP qualification (MINIMAP_PERFORMANCE_STATUS_HISTORY=1, 25 sources, 100 features) preserves 2,500 versions, resolves 1,200 historical statuses and verifies real zero-Git warm reuse plus concurrent cold-third fairness:

Final local measurement Result
Full background validation, one cold sample 20.920 s
First usable HTTP snapshot, one sample 0.796 s
Warm Across p95, five reads 91.03 ms
Health p95, 175 probes 2.48 ms
Cached peer p95, 88 probes 42.77 ms

All existing 200 ms p95 targets pass. Individual health/peer maxima remain 294.58/247.16 ms; peer observations mix fresh and expired/stale retained snapshots. Concurrent cold-third HTTP completion was 0.879 seconds, before either independent scan completed (24.624/24.829 seconds). Idle cached-IO phase timings are separate from HTTP-thread event-loop measurements; zero-Git cached admission improvement is not attributed to child offloading.

Background cost is substantial: archived main, initial status candidate and final worker were 10.783/14.335/20.920 seconds in separate single cold calibrations. These do not establish a causal ratio, credible cold p95, unchanged latency or a universal guarantee. Earlier responsiveness misses and the insufficient launch-only trial remain recorded; no target, timeout or original assertion was relaxed. An Across browser run missed its five-second assertion during concurrent real-Git tests; the same case then passed alone unchanged. The failure is retained, not erased by retry.

Normal shutdown, cancellation and handled JavaScript failure confirm owned-child drainage. Unexpected native/hard worker termination cannot prove cleanup, so subsequent Git reads fail closed and shutdown reports blocked cleanup rather than success. No orphan-cleanup guarantee is claimed after arbitrary termination.

Required complete CI is pending this PR. No real project data or live installation changed; merge and delivery remain owner-managed.

CI follow-up restores deadline/ref-race injection at the real worker callback boundary, preserving the original assertions/deadlines and two-board-read phase evidence. A deterministic delayed-unlink regression fixes the registry-before-listener-close race without weakening ownership checks; worker cancellation preserves reason name/message and original parent reason identity. Two literal status interpolations are explicitly escaped, with no lint-rule changes. Focused checks pass 27/27 and targeted technical review approves publication as a draft CI candidate.

The default full Windows run on Node 24.14.1 was not green (564 passes, six failures, one cancellation, three skips): short-budget/setup failures plus three native stop-client crashes after successful stop output. The latter match the upstream Windows Node exit issue, whose fix is listed in Node 24.20.0 release notes; a single bounded local reproduction did not reproduce the race, so this is not claimed as deterministic attribution. The full isolated Windows run on an already-available Node 24.22.1 with two test processes finished with 568 passes, two failures, one cancellation and three skips, without native crashes. Related-work's 30-second test and the synthetic 1.5-second bound-read reuse case still missed their limits. Both passed alone serially with unchanged assertions/deadlines (five checks; related work 25.04 seconds, reuse 1.11 seconds). This supports scheduling sensitivity, not proof of an environment-only cause. No installation/PATH/service changed.

At application head 600ed819, Linux's complete Node suite passed 571 checks with three skips and no failures/cancellations. The first full browser run passed 246/247; the final Blocked In play Across hash navigation missed its original five-second visibility assertion. The same case passed alone unchanged, and desktop Columns/narrow List captures were inspected. Independent review found no concrete status-resolution regression: these dirty versions have identical committed HEADs and retain the legacy filter path. The bounded full Linux rerun passed the complete Node suite, all 247 browser tests and runtime sync/parity. The original browser failure remains recorded; a successful rerun does not establish its cause or erase the Windows full-suite misses. No assertion, deadline, fixture or product code was changed for this failure. Owner acceptance of the retained timing/flake evidence, human result/architecture review, merge and live delivery remain separate gates; PR remains draft.

Final head 4fc5d7e changes only the Work Record and canonical feature notes after reviewed application 600ed819. Independent review approves owner handoff only; its full CI and governance checks are tracked separately. Local governance has zero blockers and two disclosed advisories (architecture shadow checkpoint and initial Work Record commit-order heuristic). No live runtime, installed tools, project data, PATH or service changed.

@github-actions
github-actions Bot commented Oct 31, 2026 •
Copy link
Copy Markdown

agent-redline

❗ RED — Red-zone files changed.

  • red (9): package/minimap/CONTRACT.md, package/minimap/skills/minimap-roadmap/SKILL.md, package/minimap/skills/minimap-roadmap/references/roadmap-contract.md, package/minimap/skills/minimap-roadmap/references/server.md, package/minimap/skills/minimap-spec-review/references/server.md, playwright/appearance-ui.spec.js, playwright/done-last-ui.spec.js, playwright/group-aware-card-tags.spec.js, playwright/status-supersession-ui.spec.js
  • gray (37): package/minimap/server.js, package/minimap/skills/minimap-roadmap/runtime/server.js, package/minimap/skills/minimap-roadmap/runtime/src/git-read-worker.js, package/minimap/skills/minimap-roadmap/runtime/src/git-reads.js, package/minimap/skills/minimap-roadmap/runtime/src/roadmap-snapshots.js, package/minimap/skills/minimap-roadmap/runtime/src/worktree-aggregate.js, package/minimap/skills/minimap-roadmap/runtime/src/worktree-presence.js, package/minimap/skills/minimap-roadmap/runtime/src/worktree-sources.js, package/minimap/skills/minimap-roadmap/runtime/ui/app.js, package/minimap/skills/minimap-roadmap/runtime/ui/worktrees.js, package/minimap/skills/minimap-spec-review/runtime/server.js, package/minimap/skills/minimap-spec-review/runtime/src/git-read-worker.js, package/minimap/skills/minimap-spec-review/runtime/src/git-reads.js, package/minimap/skills/minimap-spec-review/runtime/src/roadmap-snapshots.js, package/minimap/skills/minimap-spec-review/runtime/src/worktree-aggregate.js, package/minimap/skills/minimap-spec-review/runtime/src/worktree-presence.js, package/minimap/skills/minimap-spec-review/runtime/src/worktree-sources.js, package/minimap/skills/minimap-spec-review/runtime/ui/app.js, package/minimap/skills/minimap-spec-review/runtime/ui/worktrees.js, package/minimap/src/git-read-worker.js, package/minimap/src/git-reads.js, package/minimap/src/roadmap-snapshots.js, package/minimap/src/worktree-aggregate.js, package/minimap/src/worktree-presence.js, package/minimap/src/worktree-sources.js, package/minimap/ui/app.js, package/minimap/ui/worktrees.js, roadmap/features/superseding-feature-status.md, scripts/test-fixtures/git-read-faults.mjs, scripts/test-fixtures/worker-metrics.cjs, test/git-read-faults.test.js, test/git-worker.test.js, test/roadmap-performance.test.js, test/roadmap-snapshot-deadline.test.js, test/roadmap-snapshots.test.js, test/worktree-payload-server.test.js, test/worktree-status-supersession.test.js
  • blue (2): README.md, roadmap/board.md
  • watch (18): package/minimap/skills/minimap-roadmap/runtime/server.js, package/minimap/skills/minimap-roadmap/runtime/src/git-read-worker.js, package/minimap/skills/minimap-roadmap/runtime/src/git-reads.js, package/minimap/skills/minimap-roadmap/runtime/src/roadmap-snapshots.js, package/minimap/skills/minimap-roadmap/runtime/src/worktree-aggregate.js, package/minimap/skills/minimap-roadmap/runtime/src/worktree-presence.js, package/minimap/skills/minimap-roadmap/runtime/src/worktree-sources.js, 8000 package/minimap/skills/minimap-roadmap/runtime/ui/app.js, package/minimap/skills/minimap-roadmap/runtime/ui/worktrees.js, package/minimap/skills/minimap-spec-review/runtime/server.js, package/minimap/skills/minimap-spec-review/runtime/src/git-read-worker.js, package/minimap/skills/minimap-spec-review/runtime/src/git-reads.js, package/minimap/skills/minimap-spec-review/runtime/src/roadmap-snapshots.js, package/minimap/skills/minimap-spec-review/runtime/src/worktree-aggregate.js, package/minimap/skills/minimap-spec-review/runtime/src/worktree-presence.js, package/minimap/skills/minimap-spec-review/runtime/src/worktree-sources.js, package/minimap/skills/minimap-spec-review/runtime/ui/app.js, package/minimap/skills/minimap-spec-review/runtime/ui/worktrees.js

Behavior contracts: playwright/appearance-ui.spec.js, playwright/done-last-ui.spec.js, playwright/group-aware-card-tags.spec.js, playwright/status-supersession-ui.spec.js
Workflow-only protection: checked in PR CI, but GitHub does not require it for merge.
Verification: test.

@github-actions
github-actions Bot commented Oct 31, 2026 •
Copy link
Copy Markdown

⚠️ Advisory: workflow checks have non-blocking findings

Scope: 2 task files (1 High, 1 unknown)

Audit detail — per-record checks

superseding-feature-status

  • ⚠️ Work Record structure — 7 checks, 1 advisory
    • ⚠️ workrecord.commit_order — advisory — Work Record and code landed in the same commit (6887a05). Ideally the WR is a separate commit BEFORE any code commit so it serves as recovery state. Non-blocking; treat as a signal to check whether the WR was written first or retroactively.
  • ✅ Risk classification — 5 checks, all passed
  • ⚠️ Required reviews — 2 checks, 1 advisory
    • ⚠️ review.checkpoints_satisfied — unsatisfied checkpoint 'architecture-review' — red-zone change: package/minimap/CONTRACT.md; To fix this: CODEOWNER approval, label architecture-reviewed [shadow — advisory]
  • ✅ Other checks — 5 checks, all passed
  • ✅ Exceptions — 3 checks, all passed
  • ✅ Plan approvals — 4 checks, all passed
  • ✅ Verification plan — 2 checks, all passed
Effective rules (28)
Rule Source
workrecord.exists core
workrecord.markers_present core
risk.declared core
complexity.declared core
workrecord.shape_matches_classification core
workrecord.expanded_fields_present core
workrecord.state_valid core
workrecord.relationships_valid core
risk.redline_findings_available default
risk.boundary_violation_absent default
risk.declared_not_below_detected default
review.checkpoints_satisfied default
requirements.baseline_present core
requirements.baseline_unchanged core
requirements.behavior_changes_well_formed core
requirements.task_context_traceable core
requirements.requirement_changes_authorized core
exceptions.well_formed core
exceptions.not_against_boundary core
exceptions.not_expired core
approval.elevated_clean_context_review_present core
approval.high_clean_context_review_present core
approval.high_risk_approval_recorded core
approval.clean_context_does_not_satisfy_human core
review.agent_result_review_present core
evidence.criteria_have_methods core
evidence.failure_not_claimed_as_success core
workrecord.commit_order core

<behavior-contracts>

  • ✅ Other checks — 4 checks, all passed
Effective rules (4)
Rule Source
behavior_contracts.changed_paths_complete repo
behavior_contracts.changed_paths_classified repo
behavior_contracts.requirement_changes_authorized repo
behavior_contracts.verification_linked repo

Updated against commit 4fc5d7e9.

@rore
rore marked this pull request as draft October 31, 2026 15:57
@rore
rore marked this pull request as ready for review October 31, 2026 18:03
@rore
rore merged commit 4689979 into main Oct 31, 2026
3 checks passed
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

0