Repository navigation
fix(workspace): fail closed and report delegated test execution state - #2613
Conversation
|
Automated review findings
Posted via Claude Code |
|
Addressed the automated review findings in ed66295.
Validation: full local gate passed (1,827 Python tests and 1,052 BATS tests), stable compatibility passed, targeted pylint passed, and git diff --check passed. PR remains open and unmerged. |
## Summary Workspace test preflight, individual project commands, and `basectl trust status` describe the same blocked trust state with different wording. Share `blocked_command_summary()` across all three paths for missing approval, a changed manifest, and changed test requirements. Workspace text and JSON `detail` use the same explanation as command diagnostics and interactive trust status. Each surface keeps its existing layout, identity details, and review/allow guidance. Trust decisions, execution behavior, exit codes, and structured status fields are unchanged. ## Issue Closes #2618 Follow-up to #2613. Addresses the [review finding about the remaining trust-status formatter](#2619 (comment)). ## Validation - The cross-command regression failed before the trust-status fix for all three blocked reasons and passes afterward. - Focused workspace/trust/schema tests: 58 passed, 27 subtests passed. The final cross-command regression separately passed with 9 subtests. - Coverage compares interactive `trust status`, individual project preflight, and workspace text/JSON explanations; retains identity and review/allow guidance; and verifies zero delegated test starts when blocked. - Targeted Pylint and `git diff --check` passed. - Full local Python suite: 1,830 passed. Runtime stable-compatibility check against `origin/main` passed. - The local `bin/base-test` shell run was stopped after hosted full-suite validation passed; 492 local shell cases had passed before the next case was interrupted. Full shell-suite evidence comes from CI. - Hosted validation on `a61f9f2c`: 24 successful checks; the optional hosted release-train readback was skipped. Python 3.10–3.13, Pylint, BATS, macOS smoke, integration, pinned and moving-provider Ubuntu source suites, security, compatibility, and branch policy passed. ## Demo Impact None. This aligns diagnostic wording without changing demo behavior or workflows. ## Notes The changelog records the visible wording improvement. `.ai-context/` needs no update: this is a formatter consolidation with no product, architecture, command-surface, or trust-contract change. JSON schema version 2 is unchanged; only its existing human-readable `detail` text changes.
Summary
Issue
Closes #2612
Validation
env -u BASE_HOME BASE_TEST_PYTHON=/Users/rameshhp/.base.d/base/.venv/bin/python BASE_BASH_LIBS_DIR=/Users/rameshhp/work/base-bash-libs/lib/bash ./bin/base-test— 1,826 Python tests and 1,052 Bats/integration tests passed.0/7 project test commands startedand marked trusted projectsNOT RUN.Notes
The PR is intentionally not merged by this train; merge requires explicit approval.