Repository navigation
[CTX-0918] chore: decouple non-core crates from Core - #1603
Conversation
The CTX-1585 extraction (commit 6b830fa) moved bitty-agent and bitty-ipc out of the Core workspace into independent git-dependency repositories, following the same pattern already allowed for bitty-network. deny.toml's allow-git allowlist was never updated, so every main CI run since the extraction fails cargo-deny with source-not-allowed for both crates, blocking the Supply chain gate on main and on every subsequent PR. Add https://github.com/bitty-terminal/bitty-agent and https://github.com/bitty-terminal/bitty-ipc to allow-git per the deny.toml exception policy (CTX-0634, P0-AC-034): dated, enumerated, no silent allowlist edit. Priority: P0 | Area: area:runtime | Labels: fix,P0,area:runtime | Milestone: v0.1.0 | Task: CTX-0917
The Cargo.toml git-dependency rev was bumped to 6841646 in the prior commit, but Cargo.lock was never regenerated to match, so every CI job run with --locked (clippy, test, build) failed with 'cannot update the lock file because --locked was passed to prevent this'. cargo update -p bitty-ipc -p bitty-agent regenerates only the affected entries (bitty-ipc-*, plus three new transitive deps: base16ct, const-oid, serde_json, zmij pulled in by the new bitty-ipc rev); no unrelated dependency drift. Verified locally: cargo clippy --workspace --all-targets --locked -- -D warnings and cargo deny check both pass. Priority: P0 | Area: area:runtime | Labels: fix,P0,area:runtime | Milestone: v0.1.0 | Task: CTX-0917
The CTX-1585 extraction (6b830fa) moved bitty-ipc out of the Core workspace into an independent repository. 'cargo test -p bitty-ipc --examples --locked' in the four Linux/Wayland/macOS matrix legs now fails every run with 'package bitty-ipc cannot be tested because it requires dev-dependencies and is not a member of the workspace', since -p can no longer resolve a git dependency that is not a workspace member. The bitty-ipc example moved with the crate to its own repository and has its own CI; nothing here replaces that coverage, it only removes a step that can never succeed again. Renamed the surrounding 'Run benches and examples' steps to 'Run benches' to match. Verified locally: cargo test -p bitty-perf --benches --locked passes; actionlint .github/workflows/ci.yml is clean. Priority: P0 | Area: area:runtime | Labels: fix,P0,area:runtime | Milestone: v0.1.0 | Task: CTX-0917
…raction bitty-panels, bitty-runtime, and bitty-terminal READMEs listed bitty-agent/bitty-ipc as 'workspace-internal dependencies' under their Boundaries sections. Since CTX-1585 (6b830fa) extracted both crates to independent repositories, they are now external git dependencies, not workspace members; the prior wording was now factually wrong about the dependency's current nature. Priority: P2 | Area: area:docs | Labels: docs,P2,area:docs | Milestone: v0.1.0 | Task: CTX-0917
Retire the empty bitty-core seed and the emptied bitty-panels staging crate, drop bitty-agent from bitty-runtime (agent invariants live in the bitty-agent repository tests) and from the deny.toml allow-git list, make bitty-perf opt-in for bitty-terminal behind the non-default dev-perf feature (bitty dev trace reports "built without dev-perf feature" otherwise), bump bitty-ipc to e9714e7, and sync READMEs, the status-drift crate count, and the CHANGELOG (also removes stray merge-conflict markers that broke markdownlint). Closes #1602
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (25)
💤 Files with no reviewable changes (8)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe workspace retires ChangesCore workspace decoupling
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Other Sequence Diagram(s)sequenceDiagram
participant CLI as bitty-terminal CLI
participant Output as trace_output
participant Perf as bitty-perf
CLI->>Output: Submit validated trace request
alt dev-perf enabled
Output->>Perf: Dispatch startup or latency trace
Perf-->>Output: Return trace output
Output-->>CLI: Return trace output
else dev-perf disabled
Output-->>CLI: Return missing-feature diagnostic
end
Merge Risk: ⚪ Minimal · up to The workspace decoupling and opt-in tracing behavior are consistent with the intended changes. No actionable merge-blocking issue is established; merge after normal checks pass. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change reduces Core’s linked components and disables developer tracing by default. Existing local IPC checks remain in place, but the refreshed IPC dependency’s security and lifecycle behavior has not been compared across revisions. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Out of Scope Changes checkExplanation The PR removes the Windows owned-process-tree and live-configuration-reload entries from
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
Independent review (ctx-0918-reviewer, semantic review): APPROVE. Non-blocking follow-ups tracked as separate tasks: trace-success coverage only in Quality gates; explicit TraceStartup arm in dev.rs; stale bitty-panels claim in specifications/ai-surface-reconciliation.md; stale bitty-agent path in .gitleaks.toml. |
Priority: P0 | Area: runtime | Labels: chore,area:runtime,P0 | Milestone: v0.1.0 | RFC: ADR-0003, DIR-030 | Task: CTX-0918
Closes #1602
Summary
crates/bitty-core(empty seed) andcrates/bitty-panels(only empty scaffolding left); no crate depended on either.bitty-agentfrom Core: dropped frombitty-runtime[dependencies]/[dev-dependencies]and thedeny.tomlallow-git list. Agent assertions removed fromtests/final_integration.rs; the same invariants (side-queue drop-oldest, untrusted labeling, truncation,TitleChangedvalidation, stub dispatch state machine) are tested in thebitty-agentrepository.bitty-perfis now optional forbitty-terminalbehind the new non-defaultdev-perffeature. Without it,bitty dev tracestill validates its arguments (usage errors exit 2) and then fails with exit 1 andbuilt without dev-perf feature; help/usage text says so.bitty-perfstays a workspace crate (benches unchanged).just clippy/just testadd adev-perfclippy run and acargo test -p bitty-terminal --features dev-perf --test cli_devrun so the trace success paths stay covered; the default nextest run covers the compiled-out path.bitty-ipctoe9714e7(currentmain); it stays linked as Core's inbound socket mechanism.Cargo.lockupdated viacargo update -p bitty-ipc.bitty-runtime,bitty-terminal), status-drift crate count (22 -> 18), CHANGELOG entry. Also removes stray merge-conflict markers inCHANGELOG.mdalready onmainthat mademarkdownlintfail.Out of scope:
bitty-network-lua/networkfeature (CTX-0906).Testing
just check— passjust test— passcargo check --target x86_64-pc-windows-gnu --workspace --all-targets --locked— passjust ci-local(act, Quality gates job) — job succeededact -n -j quality— passSummary by CodeRabbit
bitty dev tracenow requires a build with performance tracing enabled. Without it, valid trace requests return an error; with it, startup and latency tracing remain available.