feat(journey): recover project and session journey workflow - #827
Draft
Harry19081 wants to merge 33 commits into
Draft
feat(journey): recover project and session journey workflow#827Harry19081 wants to merge 33 commits into
Harry19081 wants to merge 33 commits into
Conversation
(cherry picked from commit 8121d4c)
(cherry picked from commit 240867c)
Add Workspace→Project→WorkItem→Session/Todo tree and project journey view with mainline pin, file category blink, and soft prune. Ship as org2-patch parallel to production ORG2. (cherry picked from commit 647d981)
(cherry picked from commit 3387310)
(cherry picked from commit 74fdc15)
(cherry picked from commit 047ca47)
(cherry picked from commit 7580fc904750090c463179e08dd3d16cd653d4b5)
(cherry picked from commit 0f3cb16)
(cherry picked from commit ad985b1)
(cherry picked from commit 8a3ec2b)
(cherry picked from commit eca1065)
(cherry picked from commit e55b2eb)
Replace the P1 fail-closed stub with the real data path:
- read persisted canonical sessions/edit artifacts/commit links
- scope filter: project/{id} matches workspace_path; session/{id}
selects the session plus its parent lineage chain
- project_canonical_journey projector + independent audit (fail closed
on uncovered canonical units)
- fork edges only emitted when parent is inside the selected scope
(cherry picked from commit 755ae6d)
…t store
project/{id} now reads linked_repos_json from projects.db and selects
every canonical session whose workspace_path is inside one of the linked
workspaces (exact or direct child). Unknown project ids and projects
without linked workspaces stay fail-closed: no guessed paths, no
synthesized data.
(cherry picked from commit db1b6b3)
Journey-only extraction from mixed historical commits. (cherry picked from commit eb31a18ed606d9b7e071944ab6a7d4262f3a3596) (cherry picked from commit dbe58cb6cf6313a73f2c4bb23b814a8aa2c77ce)
(cherry picked from commit 4262031)
(cherry picked from commit bbf3af2)
(cherry picked from commit 465ba79)
(cherry picked from commit 4ae9c1b)
(cherry picked from commit 274c916)
(cherry picked from commit 1cbb5ed)
(cherry picked from commit 83a0cc8)
(cherry picked from commit 5330b0c)
(cherry picked from commit ed29374)
(cherry picked from commit 37ac161)
(cherry picked from commit 492d9c1)
(cherry picked from commit 186e080)
(cherry picked from commit c2bf1a9)
(cherry picked from commit 572d378)
(cherry picked from commit fc7756a)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
PR #770 contains a substantial contributor-built Journey feature, but repeated rebases and force-pushes left duplicated commit history and conflicts with current
develop. Replaying the branch wholesale would also restore obsolete app-shell/history paths and unrelated provider, key-vault, search, release, and ProgressMindMap changes.The missing product capability is one cross-layer workflow: a canonical Project → Session Journey, explicit task/fork/checkpoint/review lifecycle state, branch-scoped provider history, and exact navigation back to the durable transcript evidence.
Solution
Recovered the focused Journey workflow onto current
developusing cherry-picks with source provenance, then adapted conflicts to the current architecture:orgtrack_graphcrate into the desktop application; no third-party dependency was added.Contributor commits whose changes were already represented were skipped instead of replayed as duplicate patches. Obsolete Journey Station routes and mixed-scope provider/key-vault/search/release changes were intentionally excluded.
Potential risks
Contributor credit
This feature was primarily contributed by @chsimonpan. Their original commit authorship and cherry-pick provenance are preserved throughout this PR; the recovery work resolves the rebased history and adapts the feature to current
develop.Verification
pnpm typecheck— passed.src/**/*.tsandsrc/**/*.tsxwith--max-warnings 0— passed.cargo test -p agent_core journey --lib— 51 passed.cargo test -p agent_core persistence::messages --lib— 15 passed.cargo test -p orgtrack_graph journey— 7 passed.cargo test -p orgtrack_core— 547 passed / 8 ignored local-data benchmarks.cargo test -p org2 journey— 6 passed; targeted runtime artifact projection — 1 passed; targeted file-session-history fixtures — 4 passed.cargo check -p org2— passed.cargo clippy --workspace --all-targets -- -D warnings— passed under Rust 1.97.0, matching the failed CI job's toolchain and exact command.rustfmt --checkover every Rust file changed by this branch with child traversal disabled — passed.git diff --checkand added-line scans for secrets, personal paths, debug logging, build artifacts, and caches — passed.cargo fmt --all -- --checkwas also attempted. It still reports formatting drift in three files unchanged by this PR:render_inline_canvas.rs,ui_metadata_tests.rs, andturn_window.rs. Those baseline files were not reformatted into this feature PR.Not run: rendered WDIO/Tauri E2E, visual screenshots/recordings, real-process performance measurements, and Windows/Linux platform checks.
Audits
docs/architecture-audit-2026-08-17/SessionJourneyRecovery.md— pass for draft review across all ten layers.docs/frontend-ui-audit-2026-08-17/ProjectTreeAndSessionJourney.md— 0 fix / 10 keep-with-reason / 0 abstract. The configured audit skill was unavailable, so the equivalent review is recorded manually.docs/org2-performance-guard-2026-08-17/SessionJourneyRecovery.md— lifecycle invariants pass; release verdict remains blocked on real-process measurement.