ADR 0025 T7: session forge — workspace scan with fail-closed ambiguity #33
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add
internal/config/sessionforge.goand insert at the marked point in the T4 chain (// (ADR 0025 §3 session-forge scan inserted here by sessionforge.go)), active only when cwd is not inside a git repo:scanChildOriginHosts(root) []string— unique sorted origin hosts of immediate child repos (skip symlinks, .git, remoteless).https://<host>), source "workspace scan" — outranks global.ErrAmbiguousForge{Hosts}:ambiguous forge: found <h1>, <h2> — pass dir= or set madtea.url. Empty scan → global fallback.Depends on: T5 (both touch the chain region; land T5 first).
Acceptance: table-driven workspace fixtures (unanimous/mixed±global/empty/remoteless-child) green; ADR 0022 guard cases still pass.
Part of #30.