Skip to content

Follow-ups of the public part of organizations-test #1398

Done

Description

@fiunchinho

Follow-ups of the public part of agentlab organizations-test (--part public), from the review of #1399.

1. F3: the mode-commit verdict is a SKIP on every lab without a manual step — done in #1399

Done (commit e4c6f99 of #1399): the public part proves the refusal (conflict) while the content path has no kustomization file, then adds <content path>/kustomization.yaml in the proof repository through a pull request it merges (the path's files and directories, never public), then proves that the public write lands under <content path>/public only and that the file does not list public.

  • Input: a lab whose agent-manager runs the organizations in mode commit (--organizations-repository set, the admin's GitHub grant present). The proof's organizations agentlab-a and agentlab-b are applied live, so their content path <organizations-content-prefix>/agentlab-b has no kustomization file in the proof repository.
  • Code path: internal/lab/organizationstest_public.go, commitLandsInPublicPath. agent-manager refuses every public write in mode commit there with conflict (ContentNotKustomized, agent-manager internal/agents/commit.go). The part checks that refusal and writes a SKIP that names the file to add.
  • What goes wrong: an unattended run proves only the refusal, not that a public write lands under <content path>/public and leaves the content path's kustomization file without public. That proof waits for a person to commit <content path>/kustomization.yaml to the proof repository.
  • Fix: when the file is missing, the part opens a pull request as the person that adds <content path>/kustomization.yaml with resources: [] and merges it, as the credentials part merges its own pull request (organizationstest_credentials.go, fluxApplied). Then it does the public write. Or the owner decides that the manual step stays, and the docs say so.

2. The credentials part's sign-in fixture and muster's outbound guard

  • Input: agent-platform 4.190.0-rc.2 or later, which runs muster 5.68.0-rc.1 or later (feat(outbound): guard organizations' outbound calls, drop credentials on cross-origin redirects, drop grants on a new destination muster#1996).
  • Code path: internal/lab/organizationstest_credentials.go, credentialsSignInManifest and tenantSignIn. The tenant MCPServer points at muster's own /mcp over plain http (oauthFixtureURL, muster.agent-platform.svc.cluster.local) with autoStart: true.
  • What goes wrong: muster calls an organization's MCPServer, its 401 probe included, through its guarded outbound transport. That transport refuses a Service of the cluster over plain http unless muster.outbound.privateHosts lists the host. The MCPServer then never reads Auth Required, and the check "a sign-in an organization namespace's MCP server needs is elicited" fails.
  • Fix: add muster's Service host to musterPrivateHosts (organizationstest_public.go), the exception HACKS.md U53 records for the public part's fixture. Then run --part credentials on such a chart.

3. R2-1: a kind VM clock ahead of the host can fail the toolset check

  • Input: a macOS lab whose kind VM clock runs a few seconds ahead of the host.
  • Code path: internal/lab/organizationstest_public.go, toolsetResolves and agentCallsPublicServer, which judge muster's log with musterWindow between since and until, both taken from the host's clock.
  • What goes wrong: muster's records of a short call carry the VM's clock. When it runs ahead, they fall after until, so the healthy call is not counted, and waitMusterWindow fails although the call succeeded and the fixture recorded it.
  • Fix: correlate the records by Session or request, or take until from muster's own clock. A margin on until is safe for the agent's turn, because the proof deletes the Session only after it reads the log. Add a test with muster's stamps two seconds ahead of a short call.

4. R4-1: the kustomization the part writes lists a plain subdirectory

  • Input: agentlab-b's content path in the proof repository holds a subdirectory without a kustomization file of its own (for example models/modelconfig-local.yaml) and no kustomization file at its top.
  • Code path: internal/lab/organizationstest_public.go, contentKustomizationFile and commitRefusedWithoutKustomization. The file lists each directory as a resource.
  • What goes wrong: Kustomize refuses a resource directory without a kustomization, where Flux's generated kustomization took in its files recursively. Flux then stops applying the organization's content, while the proof can still pass.
  • Fix: read plain subdirectories recursively and list their YAML files, and list a directory only where it has a kustomization file. Test a fixture with a plain nested directory.

5. R4-2: the setup fails where the proof repository's base needs a merge queue

  • Input: a proof repository whose base branch requires a merge queue.
  • Code path: internal/lab/organizationstest_public.go, mergeRepoChange, which runs gh pr merge --squash --delete-branch.
  • What goes wrong: the GitHub CLI refuses --delete-branch for a merge queue, so the setup pull request is closed and the part stops although the platform is healthy.
  • Fix: for a queued merge, merge without --delete-branch, wait until the pull request is merged, then delete the branch. Test the queue-required answer.

6. R6-1: the move checks run on a build without move_agent whose tag cannot tell

  • Input: agent-manager from 4.2.0-rc.3 to 4.2.0-rc.8 (public tools, no move_agent), addressed by a digest only or by a local tag such as localhost/agent-manager:dev.
  • Code path: internal/lab/organizationstest_public_move.go, moveSkip and moveChecks, which judge the version by the image tag only.
  • What goes wrong: a tag that cannot tell runs the move checks, and moveToPublic calls a move_agent that does not exist: the part fails after the public checks passed.
  • Fix: ask muster for the tool (filter_tools or describe_tool of x_agent-manager_move_agent) and skip when it is absent; keep the tag only for the skip's wording.

Acceptance

  • organizations-test --part public proves where a public write in mode commit lands without a manual step (feat(organizations-test): add the public part #1399).
  • organizations-test --part credentials reaches Auth Required for its tenant sign-in fixture on agent-platform 4.190.0-rc.2 or later.
  • The toolset and turn checks pass with a kind VM clock a few seconds ahead of the host.
  • The kustomization the part writes builds a content path with a plain nested directory.
  • The setup merges in a proof repository whose base requires a merge queue.
  • The move checks skip on an agent-manager without move_agent, whatever its image tag.

Activity

  1. moved this from Inbox 📥 to Backlog 📦 in Roadmapon Dec 2, 2026
  2. self-assigned this
    on Dec 3, 2026
  3. moved this from Backlog 📦 to In Progress ⛏️ in Roadmapon Dec 3, 2026
  4. fiunchinho commented on Dec 3, 2026

    @fiunchinho
    MemberAuthor

    Done: items 2 to 6, with the live run of item 2

    Items 3 to 6: #1406 (merged, v0.142.0-rc.11) did them, each with its unit tests.

    Item 2: privateHosts.

    Item 2: the live run. Lab agentlab-orgs, 2026-12-03, with:

    • agentlab v0.142.0-rc.12 and --klaus-gateway;
    • agent-platform 4.191.0-rc.2 with the change-over;
    • muster 5.68.0 and agent-manager 4.2.0.

    Results:

    Other follow-ups: #1405 (the credentials cleanup pushes straight to the base) and #1408 (a chart that turns on the change-over in its own values).

    I close this issue: its items are done, and #1410 is the follow-up.

  5. moved this from In Progress ⛏️ to Validation ☑️ in Roadmapon Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

  • Status
    Validation ☑️

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions