Skip to content

Rename BD_ACTOR env var to AF_ACTOR (bdstore cleanup tail) #85

Description

@stempeck

internal/session/session.go still exports BD_ACTOR alongside AF_ROLE, AF_ROOT, BEADS_DIR. The bd-era store (internal/issuestore/bdstore/) was deleted, but BD_ACTOR is not dead code: ~12 sites in internal/cmd/ (bead.go, done.go, handoff.go, mail.go, prime.go, sling.go, step.go) read it and pass it to newIssueStore(…, actor) as the mcpstore actor default.

The risk documented in docs/architecture/gaps.md (GAP-1): a developer sees BD_ACTOR, assumes it's vestigial, deletes it, and silently breaks actor-scoping in every command that runs outside an agent session.

Task

  • Rename BD_ACTORAF_ACTOR at the export site and all consumer sites (grep for BD_ACTOR)
  • Consider collapsing into AF_ROLE instead — session.go sets both to m.agentName, so they are always equal in practice; if you take this route, document why
  • Update docs/architecture/gaps.md GAP-1 and any references in subsystems/session.md

Well-scoped: mechanical rename + one design decision, all sites greppable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions