Repository navigation
Done
Labels
Description
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-repositoryset, the admin's GitHub grant present). The proof's organizationsagentlab-aandagentlab-bare applied live, so their content path<organizations-content-prefix>/agentlab-bhas 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 withconflict(ContentNotKustomized, agent-managerinternal/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>/publicand leaves the content path's kustomization file withoutpublic. That proof waits for a person to commit<content path>/kustomization.yamlto the proof repository. - Fix: when the file is missing, the part opens a pull request as the person that adds
<content path>/kustomization.yamlwithresources: []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,credentialsSignInManifestandtenantSignIn. The tenant MCPServer points at muster's own/mcpover plain http (oauthFixtureURL,muster.agent-platform.svc.cluster.local) withautoStart: 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.privateHostslists the host. The MCPServer then never readsAuth 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 credentialson 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,toolsetResolvesandagentCallsPublicServer, which judge muster's log withmusterWindowbetweensinceanduntil, 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, andwaitMusterWindowfails although the call succeeded and the fixture recorded it. - Fix: correlate the records by Session or request, or take
untilfrom muster's own clock. A margin onuntilis 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,contentKustomizationFileandcommitRefusedWithoutKustomization. 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 runsgh pr merge --squash --delete-branch. - What goes wrong: the GitHub CLI refuses
--delete-branchfor 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 aslocalhost/agent-manager:dev. - Code path:
internal/lab/organizationstest_public_move.go,moveSkipandmoveChecks, which judge the version by the image tag only. - What goes wrong: a tag that cannot tell runs the move checks, and
moveToPubliccalls amove_agentthat does not exist: the part fails after the public checks passed. - Fix: ask muster for the tool (
filter_toolsordescribe_toolofx_agent-manager_move_agent) and skip when it is absent; keep the tag only for the skip's wording.
Acceptance
-
organizations-test --part publicproves where a public write in mode commit lands without a manual step (feat(organizations-test): add the public part #1399). -
organizations-test --part credentialsreachesAuth Requiredfor 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.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsValidation ☑️
Activity
fix(organizations-test): admit the sign-in fixture, survive a VM cloc…
fix(platform): leave klaus-gateway's a2a namespace and default agent …
fiunchinho commentedon Dec 3, 2026
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.outbound.privateHosts: muster's Service and muster's public host (HACKS.md U53).--klaus-gatewayrender on a lab with the public-agents change-over. Without klaus-gateway, the sign-in verdict is a SKIP: muster's OAuth server refuses private redirect URIs (HACKS.md U43).Item 2: the live run. Lab
agentlab-orgs, 2026-12-03, with:--klaus-gateway;Results:
Auth Required, so this acceptance item holds. The proof waits for that state (waitTenantMCPServerState) before its next step.core_auth_loginforagents-agentlab-credentials/agentlab-credentials-signinanswers "Server ... not found". This is a new problem with a cause that is not known yet. organizations-test --part credentials: core_auth_login answers 'not found' for the tenant sign-in fixture #1410 tracks it.privateHosts. organizations-test --part credentials: core_auth_login answers 'not found' for the tenant sign-in fixture #1410 covers that too.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.