Skip to content

Aqua tests: groups agent coverage – part 1#5874

Open
mikolajpp wants to merge 25 commits into
next/kelvin/408from
mp/aqua-tests-408k
Open

Aqua tests: groups agent coverage – part 1#5874
mikolajpp wants to merge 25 commits into
next/kelvin/408from
mp/aqua-tests-408k

Conversation

@mikolajpp

@mikolajpp mikolajpp commented May 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR contains another batch of model-generated aqua tests, as well as various improvements to the tooling and documentation.

Changes

  1. Generated aqua tests for various group join, invite revocation and group preview scenarios.
  2. Various other aqua test adjustements
  3. Reorganize docs
  4. Temporarily adjust test runner for 408k

How did I test?

Run aqua tests locally with the runner.

Note: only aqua tests will show up as passing in CI. There is no e2e zod available for 408k yet, so aqua tests use their own set of fakeships.

Risks and impact

  • Safe to rollback without consulting PR author? Yes
  • Affects important code area:
    • Onboarding
    • State / providers
    • Message sync
    • Channel display
    • Notifications
    • Other:

Rollback plan

Revert.

@mikolajpp mikolajpp changed the title Aqua tests: groups agent coverage Aqua tests: groups agent coverage – part 1 May 29, 2026
@mikolajpp mikolajpp requested review from Fang- and arthyn May 29, 2026 15:17
@mikolajpp mikolajpp marked this pull request as ready for review May 29, 2026 15:20

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9089519224

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread desk/ted/ph/fleet.hoon

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4ff7083352

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread desk/app/groups.hoon

@arthyn arthyn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests look good. I know you're working on a logging library behind the scenes. we should probably implement that soon since it'd be better if we didn't have to actually run the computation to construct all the dbug log info even if its turned off. in activity we used traps previously to fix that


A foreign group is a group that we possess some information about, but that we are not a full member of yet.
## 4.1 Previewing a group
A minimal information we can have about a group, apart from knowing its existence, is a group preview. Obtaining a group preview is non-obligatory – we might want to preview groups we have no intention no join. A group preview can be requested of public and private groups without any permissions, while previewing a secret group requires a valid access token.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
A minimal information we can have about a group, apart from knowing its existence, is a group preview. Obtaining a group preview is non-obligatory – we might want to preview groups we have no intention no join. A group preview can be requested of public and private groups without any permissions, while previewing a secret group requires a valid access token.
A minimal information we can have about a group, apart from knowing its existence, is a group preview. Obtaining a group preview is non-obligatory – we might want to preview groups we have no intention to join. A group preview can be requested of public and private groups without any permissions, while previewing a secret group requires a valid access token.

```

### Private group ask
An ask request issued to a private group is recorded in `requests.admissions`, unless the ship has been banned. Group admins can then approve or deny requests. For an approved request, the group host issues a token that is then send to the client. The client then uses the token to join the group. If an ask request has been denied, the group host notifies the client by kicking his subscription, which terminates the flow at the client side.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
An ask request issued to a private group is recorded in `requests.admissions`, unless the ship has been banned. Group admins can then approve or deny requests. For an approved request, the group host issues a token that is then send to the client. The client then uses the token to join the group. If an ask request has been denied, the group host notifies the client by kicking his subscription, which terminates the flow at the client side.
An ask request issued to a private group is recorded in `requests.admissions`, unless the ship has been banned. Group admins can then approve or deny requests. For an approved request, the group host issues a token that is then sent to the client. The client then uses the token to join the group. If an ask request has been denied, the group host notifies the client by kicking his subscription, which terminates the flow at the client side.

@@ -218,18 +196,16 @@
;< ~ bind:m (redeem-lure-invite ~bud u.cookie lure-invite)
:: ~bud receives group invites: one current and one backwards compatible

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like we just receive one now

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, this comment to be updated.

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.

2 participants