Repository navigation
[CTX-0991] chore(plugin-host): remove S5-staged credential shims (S7) - #1745
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughbitty-plugin-host no longer exposes its provider credential module or deprecated re-exports. Its credential-reference documentation now points to the provider schema and resolution surface in bitty-ai. ChangesProvider credential API removal
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Merge Risk: ⚪ Minimal · up to No actionable issue is established for this change; it is ready to merge after normal checks. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Priority: P2 | Area: plugin-host | Labels: chore,P2 | Milestone: v0.1.0 | RFC: #1585 Phase 4 | Task: CTX-0991
S7 summary
CTX-0916 Phase 4 step S7: removes the S5-staged credential shims from Core.
S5 moved the provider-schema surface (
ProviderCredentialConfig+ checks/resolvers) with a deprecated re-export shim kept for one release; S6 established the canonical home inbitty-ai(bitty-ai-sliceai_contrib.rs); this step deletes the staged Core copy.crates/bitty-plugin-host/src/credential_ref.rs: removed the 6 deprecated re-export shims + thedeprecated_shim_matches_canonical_pathparity test; pure reference mechanism (CredentialRef,resolve_choice,check_project_override) untouched. Module docs now point atbitty-ai.crates/bitty-plugin-host/src/lib.rs: removedpub mod provider_credential+ re-export block; OQ-054 row now listscredential_refonly and points the schema surface atbitty-ai.crates/bitty-plugin-host/src/provider_credential.rs: deleted (347 lines).Caller evidence: repo-wide rg finds zero Core-internal callers outside the module itself, the shim, the parity test, and the lib re-exports/docs; no host, grant, effective, roles, or other crate references.
Gate evidence (worktree .worktrees/ctx-0991, base origin/main 3cecd03, commit 02c95e8)
cargo fmt --check: exit 0cargo test -p bitty-package -p bitty-plugin-host --locked: exit 0cargo clippy -p bitty-package -p bitty-plugin-host --all-targets --locked -- -D warnings: exit 0cargo check --workspace --all-targets --locked: exit 0just check: best-effort per PX-4955; initial run hit worktree-layout artifact (defaultBITTY_PERF_DIR=../bitty-perfmissing under.worktrees/); re-running withBITTY_PERF_DIR=<workspace>/bitty-perf. Remote CI is arbiter.Review
Independent review verdict: APPROVE — CarryCtx PX-5025 on CTX-0991 (reviewer ctx-0991-reviewer). Merging under program standing policy (merge on substantive gates without per-PR owner approve).
Note on Closes
No
Closestrailer yet: issue #1585 closes after the docs-sync follow-up lands — stated explicitly per shepherding instructions.Summary by CodeRabbit
Breaking Changes
bitty-aifor the provider-credential configuration surface.Documentation
bitty-aiand clarify the credential-reference entry point.