~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

A group's profile has the opensocial proposal's fields alone

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:profile/drop-location

A group's profile now has the fields the opensocial proposal's group.opensocial.profile has: displayName, description, avatar, banner, joinPolicy and url, plus createdAt, which Bluesky's app.bsky.actor.profile also has. location, online, topics, languages and links are gone, along with everything built for them: the community.lexicon.location.* schemas, link icons and the FAVICONS service.

Claude Opus 5.5 · high effort

What changes

Lexicons. fyi.opensocial.profile matches the proposal's record field for field: the same properties, limits and descriptions. Its joinPolicy is now a string with knownValues written in place, as the proposal has it, rather than a ref to defs#joinPolicy, which createGroup still uses. createdAt stays: the host writes it when a group starts, and Bluesky's profile has one too. fyi.opensocial.defs loses the five fields from groupView and groupViewDetailed, along with topicRef, languageRef and link. lexicons/community/lexicon/location/* is deleted.

The host. group_config.rs now checks a profile's name, join policy, site (http or https) and pictures, and nothing else. PLACES, place(), words(), ICON_AT_MOST and the icon check are gone, and image() is folded into picture(), its one caller. getGroup's profile_view copies only the spec's fields. FAVICONS is no longer read, and the MCP profile_set tool no longer fetches link icons.

The command and MCP. opensocial profile set and profile_set take only the profile's own fields, read from the lexicon. group_host_mcp loses FAVICONS, ICON_AT_MOST, iconless and iconed. edited no longer treats an empty list as removal, since the profile has no lists left. Tool schemas no longer turn unions or bare-NSID refs into JSON Schema: location was the only union a tool took. Any that comes back reads as an open schema. The command loses its favicon fetch, its PNG upload and the favicons fields of Env and Host.

The console. The profile form keeps name, description, join policy and site. The settings page loses its Links card and its link/unlink actions. The group card loses the facts line, the topic tags and the links. Deleted: places.ts, Facts, PickMany, Links, LinksEditor, LinkIcon and linksOf, with their styles and messages, the FAVICONS env var, and the click listener Saving kept for the language chips.

Harness, example and docs.

  • harness/lexicons.mjs retires the location schemas and retracts the location fields. The code still names "location", as an HTTP header, so the check would otherwise refuse them.
  • The e2e profile flow and the full and long look seeds stop setting the removed fields.
  • harness/world.mjs and examples/kicker/harness/world.mjs no longer run a favicon service.
  • Docs updated: docs/design/groups.md, docs/reference/{cli,mcp,config}.md, docs/development.md, the starting-a-group guide (its "Add a link" section is gone and its pictures are drawn again), AGENTS.md, and the ui and guides skills.

Why

The host should carry the proposal's profile as it is, and nothing more. Nothing is published yet, so the extra fields can go now rather than be carried forward.

How it was checked

  • just t for group-host's group_config, groups, mcp and tokens; all of group-host-mcp; all of opensocial: all pass.
  • clippy with warnings denied: clean.
  • node harness/lexicons.mjs: passes against main.
  • npm run check in web: no errors or warnings. harness/layers.mjs, dialogs.mjs and strings.mjs pass.
  • just e2e, and the starting-a-group guide's pictures drawn again.

Shortcomings

  • just cov was not run here; the test check runs it.
  • A profile already written with the removed fields keeps them in its record. The host no longer shows them, and the console drops them the next time it saves the profile.
  • groupView.createdAt ("when the group was started on this host") is still in the lexicon, though the host never fills it. That is left for another pull.
Approved

This removes location, online, topics and languages from a group's profile. The change covers the lexicons, the host's checks and profile_view, the console form and card, the CLI and MCP flags, the harness and the docs. I read the Rust, harness and web source diffs. The lexicon, test, doc and screenshot files I only skimmed by name and size. The deletions are consistent. Nothing left refers to places.ts, and the only remaining community.lexicon mentions are the harness's retirement entries. settings.ts no longer keeps the four fields when it re-saves a profile, so existing records lose them on the next save. The pull already says this. I found nothing that needs changing.

Approved

Since my approval at 12456c8, this round also drops links and the favicon machinery, and it makes the profile lexicon match the proposal. I read the diffs for group_config.rs, group_api.rs, opensocial/src/lib.rs, settings.ts and profile.json. A search of the head branch finds no favicon left. I did not read the other files in the diff (tests, docs, screenshots, the rest of the web components, the other harness files, group_host_mcp). I skimmed the remaining files only by name and size.

  • Host: profile now checks the name, join policy, site and the two pictures. picture absorbs image correctly, with the same mime, size and as-kept checks. profile_view copies only the spec's fields.
  • Lexicon: joinPolicy is an inline string with knownValues, and url is in place. defs#joinPolicy is kept, since createGroup still uses it.
  • CLI: Body::Png, upload and favicon are gone. post takes a plain &Value, which is consistent.
  • Console: settings.ts keeps only description and url when it re-saves a profile, and the link and unlink actions are removed from the exported action list. The pull already says that old records lose the removed fields on their next save.

I found nothing that needs changing.

Approved

Since my approval at 18f2796, the head adds coverage and toolchain changes that don't touch the profile work. I read the repo diff in full.

  • Toolchain: the workflows, Dockerfile and docs move to rust:1.100, with RUSTUP_TOOLCHAIN pinned. axum's tower-log default feature is dropped, with a comment saying why.
  • group-host-mcp: Docs::resolve is simplified to match what the profile pull left, namely no unions and no bare-NSID refs. I checked that nothing else in the diff depends on the removed union handling.
  • group-host: the other source edits are small coverage-driven rewrites, each with a test added:
    • ? moved onto its own binding.
    • merge and profile_view folded into show_profile.
    • group_view_basic now expects an address. That matches group_handle.rs and sites.rs, and a group always gets an address when it is created.
  • Tests: the new tests are drop_profile and the other additions, which exercise the optional paths. One test in crates/opensocial/tests/commands.rs changes what it expects: account import with no --address now succeeds, where it used to fail with "can't move here". I take that as a test fix to match the host's behaviour, since there's no source change behind it.

I found nothing that breaks the earlier approval.

Approved

This pull cuts a group's profile down to the opensocial proposal's fields, plus createdAt. It removes the community.lexicon.location.* schemas, the link icons, the FAVICONS service and the console UI built for them.

I read the lexicon change (profile.json) and the host's validation (group_config.rs, group_api.rs, lexicons.rs, mcp.rs). I also read the harness retraction rules and the console's settings.ts and saving.svelte.ts.

  • Host: the checks that remain (name, join policy, http/https site, avatar and banner) behave as before. Folding image() into picture() keeps the same type, size and as-kept checks. show_profile now copies only the spec's fields. Dropping the favicon fetch from MCP profile_set leaves nothing dangling.
  • Lexicon: harness/lexicons.mjs retracts location and retires the four location schemas. That is consistent with AGENTS.md's rule that unpublished schemas may lose fields.
  • Console: removing the click listener from Saving is safe, because only the language chips needed it.

I found nothing wrong in what I read. I did not read the other files in the 63-file diff in full: the Rust tests, the opensocial command, the MCP crate, the Svelte components, the docs and the harness seeds. The pull's checks hadn't reported when I reviewed. The author says the test, web, lexicons, e2e and docs checks pass locally, apart from just cov, which they say the test check runs. I'd read those checks before merging, since the 100% coverage gate is the likeliest thing to fail after this much deleted code.

Merged as 3cde928