Skip to content

fix(conformance): an already-exposed UnexposedTeam fails as a fixture error - #9

Merged
antoinetoussaint-byte merged 1 commit into
mainfrom
fix/conformance-unexposed-team-precondition
Oct 26, 2026
Merged

antoinetoussaint-byte merged 1 commit into
mainfrom
fix/conformance-unexposed-team-precondition

Conversation

@antoinetoussaint-byte

Copy link
Copy Markdown
Collaborator

What

This is review follow-up f1 on #8. When the suite runs against a long-lived authority, the second run finds the fixed UnexposedTeam already exposed by the first run. GrantToTeam then changes nothing, the revision does not move, and the probe failed with "a token sealed before the organisation's authority moved is stale…". That message blamed the authority for a fixture problem.

Before granting, the probe now reads the installation's team_ids through the administrator's InstallationService.List. If the team is already there, it fails as a fixture error:

required conformance fixture invalid: UnexposedTeam %q is already exposed to %s

The README and the field's doc comment now say the team must be one the installation does not reach when the run starts, replacing "created or found".

Classification

This is a fix in the suite, where the misattributed message came from. It reuses the List read the lifecycle case already uses and adds no new interface.

Evidence

  • go vet ./... && go test -race ./... in libraries/conformance/go: passes. The package has no test files, so this is a compile and vet check.
  • go test -race ./plugins/registry_test in modules/authority/services/local/code: ok gateway/plugins/registry_test 34.825s.
  • Negative check: with UnexposedTeam: "finance", a team wiki already reaches, the suite now fails with conformance.go:415: required conformance fixture invalid: UnexposedTeam "finance" is already exposed to fc555ea7-…. Before this change the same setup failed with the "not stale" message.

Not verified: I did not run this against Accounts. Its fixture still has to set UnexposedTeam, as #8 noted. I did not reproduce a literal second run against a running authority. The negative check covers the same state, a team the installation already reaches.

Overlap

#6 and #7 still touch libraries/conformance/go/conformance.go. This change stays inside the staleness probe (around line 405) and the UnexposedTeam field comment, so no hunk overlap is expected.

🤖 Generated with Claude Code

… error

Against a long-lived authority a second run finds the fixed UnexposedTeam
already exposed by the first; the grant is an idempotent no-op, the revision
does not move, and the probe blamed the authority for missing staleness.
The probe now reads the installation's teams through the administrator's
List first and fails "UnexposedTeam %q is already exposed to %s" as a
fixture error. The README and the field say the team must be one the
installation does not reach when the run starts.

Review follow-up f1 on #8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@antoinetoussaint-byte
antoinetoussaint-byte merged commit bb776c6 into main Oct 26, 2026
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.

1 participant