tracking(storage): complete managed dependencies
- Dominant language
- TypeScript
- Stars
- 5.4k
- Forks
- 502
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 715
Description
## Problem
`ManagedDependencyEnvironmentAuthority` landed in #2485, but it remains a
stacked foundation without a production consumer. The producer boundary,
bundled runtime supply chain, and owner/worker composition are documented but
have no focused tracker, so M1.3 can remain indefinitely incomplete.
#4174 removed the dormant Git-executable managed-workspace path. The follow-up
must compose with the current Gitoxide direction rather than restore that path.
## Completed baseline
- Canonical dependency identity, exclusive storage-root ownership, immutable artifact publication, external SQLite receipts, leases, pending reservations, GC, crash convergence, and tamper/ADS/reparse checks are implemented by #2485.
- The storage authority is intentionally fail-closed and still has no production owner or consumer.
## Remaining work
- [ ] Add a producer boundary that proves the process tree exited before `provision()` resolves, with quota, cancellation, timeout, and real npm `.bin` symlink coverage
- [ ] Add the bundled npm runtime supply chain and hermetic network policy, including manifest, audit, license/SBOM material, packaging, and packaged-runtime smoke
- [ ] Bind an admitted Gitoxide workspace baseline to an owner-scoped dependency lease and expose only read-only `Read`/`Glob`/`Grep` access
- [ ] Compose the lifecycle through Desktop, CLI, and Runtime Host, including drain/close ordering and execution-scope revalidation
- [ ] Keep the storage build, focused authority/crash suites, and real Windows ADS gate green
## Non-goals
- Shell/Build execution, dependency mutation, secrets, or scratch access
- Automatically enabling managed mode for existing users
- Restoring the retired Git CLI owner or weakening fail-closed rules
## Design
- [Managed Dependency Storage Authority v1](https://github.com/apache/maka/blob/main/docs/architecture/managed-dependency-storage-authority-v1.zh-CN.md)
- Baseline implementation: #2485
- Retired dormant path: #4174
Contributor guide
Research direction
Start with docs/architecture/managed-dependency-storage-authority-v1.zh-CN.md and the baseline from #2485, then trace the producer, bundled npm runtime, Gitoxide workspace, and Desktop/CLI/Runtime Host composition. Done means the focused authority and crash suites, storage build, packaged-runtime smoke, and real Windows ADS gate remain green while lifecycle and read-only access requirements are met.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, node.js, sqlite, typescript
- Domain
- cli, databases, desktop, devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100