Skip to content

Fix export-context history attribution - #1981

Merged
codeforester merged 1 commit into
mainfrom
bug/1978-20260823-source-project-command-helpers-in-basectl-export-context
Aug 23, 2026
Merged

Fix export-context history attribution#1981
codeforester merged 1 commit into
mainfrom
bug/1978-20260823-source-project-command-helpers-in-basectl-export-context

Conversation

@codeforester

@codeforester codeforester commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Load the shared project-command helpers before export-context sets history attribution.
  • Validate the resolved project name, root, and manifest before exporting them into the history environment.
  • Strengthen BATS coverage for clean output, complete history metadata, and incomplete resolver results.

Issue

Fixes #1978

Validation

  • BASE_BASH_LIBS_DIR="$HOME/work/base-bash-libs/lib/bash" bats cli/bash/commands/basectl/tests/export-context.bats (6 passed)
  • shellcheck cli/bash/commands/basectl/subcommands/export_context.sh
  • Real basectl export-context base --list-files smoke test with isolated cache; stderr was clean and the history record contained project, project_root, and manifest.
  • env -u BASE_HOME TZ=UTC BASE_BASH_LIBS_DIR="$HOME/work/base-bash-libs/lib/bash" BASE_CLI_SOURCE_DIR="$HOME/work/base-cli/lib/python" BASE_CACHE_DIR=/private/tmp/base-1978-full-utc ./bin/base-test (968 Python tests and 871 BATS tests passed)
  • git diff --check

Demo Impact

None.

Notes

.ai-context/ is unchanged because this restores the existing documented command and history contracts without changing the public command surface or product architecture.

@codeforester
codeforester requested a review from a team as a code owner August 23, 2026 16:10
@codeforester
codeforester merged commit 64bca36 into main Aug 23, 2026
28 checks passed
@codeforester
codeforester deleted the bug/1978-20260823-source-project-command-helpers-in-basectl-export-context branch August 23, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Source project command helpers in basectl export-context

1 participant