Skip to content

Release: v0.14.0 - #271

Merged
codeforphilly-bot merged 80 commits into
mainfrom
develop
Nov 30, 2026
Merged

codeforphilly-bot merged 80 commits into
mainfrom
develop

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Project membership is rebuilt. Joining a project is no longer one open click: people follow a project or apply to it, and project admins decide. Projects can have any number of admins, and help-wanted roles become the needs an applicant picks from. The site can also link members to their Slack accounts and lets an approved agent record a project admin's decision on an application.

This release changes three sheet contracts and one agent contract, and migrates existing memberships. published is migrated and adopted at release, per docs/operations/releases.md.

Features

Upgrade notes

  • Data: existing memberships become members, and each project's maintainer becomes an admin. Two projects start with no admin and show a message to contact the organizers.
  • Retired endpoints: join, change-maintainer and express-interest answer 410 for this release.
  • Config: SLACK_TEAM_ID and SLACK_BOT_TOKEN turn on automatic Slack linking. Both are already set in production. Without them, linking by code still works.
  • Agents: the on-behalf decision needs a grant with slack:link, projects:applications:read and projects:applications:decide. No such grant exists yet, so that path is off until an administrator mints one.

codeforphilly-bot and others added 30 commits November 29, 2026 19:51
One record per person per project moves follower -> applicant ->
member, with admin as a flag on a member. Replaces the single
maintainer and open join; applications open, then accepted or closed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ants

ProjectMembership gains state, isAdmin, via, muted and an embedded
application; Project.maintainerId and the help-wanted-interest sheet go.
Authorization replaces the maintainer marker with project-admin and adds
one narrow on-behalf-of exception for application decisions.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Members API gains follow/unfollow/mute and admin promote/demote, loses
open join. New applications API: apply, accept, close. Projects drop
change-maintainer; needs drop express-interest and fill by many.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Retire express-interest (and its two defects: no recipient address,
private list in the public repo). Fill names members, several per need,
and never adds anyone; accepting an application can mark needs filled.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Project page gets a Join block (follow, apply, application state, the
no-active-admin message) and lists members only. New admin-only
Applications screen with Accept and Close application.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A one-time code DMed to the ops bot links a site account to a Slack
user. New agent scopes: slack:link, projects:applications:read (event
feed) and projects:applications:decide (on a named admin's behalf).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…orage

Purge and prune take follows and applications; deactivation hides them.
Agent purge treats an admin-chosen membership as shared. Footprints count
applications and follows; storage drops the interest sheet and gains the
On-Behalf-Of trailer. Remaining maintainer wording goes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…acts

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
membership-admins first; follow and applications on it; needs after
applications; Slack linking independent; the agent feed and decisions
last, each awaiting the ops bot's side.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
project-membership.md and projects.md said deactivated people are left
out of the members list, while person-lifecycle.md (and the site today)
show a deactivated member as the "Deactivated user" placeholder so
counts and history stay coherent. Follower and applicant records still
go quiet; a deactivated member keeps the placeholder, gets no email and
is never an active admin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ProjectMembership gains state (follower | applicant | member), isAdmin,
via, muted, followedAt, an optional joinedAt and the full application
table, with the cross-field validators from specs/data-model.md.
isMaintainer goes. Project loses maintainerId: who runs a project is its
admins. Both contracts move to v3; the application table ships now so
the contract moves once across the membership plans.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Vendored with `gitsheets contracts adopt` from the generated v3
documents; provenance lands when the data repo adopts from the
published URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Who runs a project is now its members with isAdmin: the project-admin
marker replaces maintainer everywhere, staff keep every admin power, and
member means a record in state member. The members API makes the
transitions of project-membership.md, one commit each: add (from no
record, follower or applicant, resolving an open application as
accepted, with a notice email to the added person), promote, demote and
update via PATCH, remove, and leave to follower or, with alsoUnfollow,
deleted. A change that leaves no active admin answers 409 last_admin
unless confirmLastAdmin is sent. Open join and change-maintainer answer
410 for one release.

Project create writes the founder as an admin (via created). The project
lists members only, admins first, with hasActiveAdmin and the caller's
own record as viewer; the list item carries admins, the admin filter
keeps maintainer as an alias, and memberSlug, memberOfCount and person
memberships count members only, with adminOfCount beside them. An
account merge keeps whichever record is further along.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent purge rule 6 now refuses when the member is an admin of a project
with other members, or holds a membership an admin chose (via added or
application) on one; following or applying never blocks. A purge takes
an older project with no createdById when the person is one of its
admins, and only member records count as someone else touching a
project. The moderation footprint lists memberships with isAdmin and
via, members only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scripts/migrations/202611290000-project-admins.ts rewrites every
membership to state member, via legacy, and makes it an admin when it
was isMaintainer or its person was the project's maintainerId; both old
fields go. One tree write, one commit, a no-op on a second run, counts
only in its output. Run it while the sheets still declare v2, then adopt
the v3 contracts. The laddr importer writes the same shape.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tion

Fixtures move to the v3 membership shape. New tests cover who may add,
promote, demote, relabel, remove and leave, the last-admin confirmation,
the 410s, members-only read shapes, the founder membership, agent purge
rule 6 for an admin-added member and a follower, the merge keeping the
record further along, and the migration against old-shape fixtures,
idempotent and in deploy order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Manage Members makes and removes admins and asks before a change that
leaves no active admin; Add Member has Make admin. The Join button is
gone: the sidebar's Join block shows a signed-out visitor the sign-in
link and a member their row with Leave (also stop following, last-admin
warning). Admins are marked and sized on the project page, project
cards, person pages, people cards and the moderation footprint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
api/moderation.md counts follows in each row's footprint and the
membership-follow plan shows them on /admin/members, but the row's list
of counts shown when non-zero left follows out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
POST /follow makes a follower record in one commit; a caller with a
record in any state gets it back with no commit, since every state
follows. DELETE /follow removes a follower record (409 not_a_follower
for applicants and members), and PATCH /follow sets muted in any state
and nothing else. Agent accounts are refused. The project carries
followerCount and counts.followers: follower and applicant records,
deactivated people left out, never names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new project update or open need goes to every follower, applicant and
member except the poster, skipping muted records and deactivated people,
at most three posts per project in 24 hours (an in-process counter, like
the rate limits). Addresses come from private profiles at send time;
each email links the post and the project page, where Mute lives.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The roster row counts follows and the detail lists them with when; they
never count toward has-footprint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed in with no record: Follow. A follower sees Following ✓ with Mute
emails and Unfollow; a member's row gains Mute emails beside Leave.
'{n} following' shows under the block, never names. The roster row and
detail show follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
POST /applications makes the caller an applicant with an open
application (needs from the project's open needs and/or an offer of up
to 1,500 characters), refused with application_open, already_member,
no_active_admin or reapply_too_soon (with reapplyAfter in
error.details), 422 for bad needs or offer and 429 past three open
applications or five a day. An account under 24 hours old is held until
visibleAt. Admins and staff list applications (held ones and deactivated
applicants left out, facts only), accept (member via application,
labelled by the first need) or close with a note that is emailed and
never stored; the applicant may close their own. The project carries
viewer.application, viewer.reapplyAfter, canApply (an active admin and
no wait) and counts.openApplications for admins and staff.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
codeforphilly-bot and others added 26 commits November 30, 2026 00:51
- slack-link: the code is 8 characters shown as two groups of four (the
  example had 7); the code response carries botDmUrl so the Account row
  can link the bot's name to a DM, as the screen asks; an account with no
  private profile is refused (the link lives there); redemption fails
  closed with no workspace configured; a 409 does not consume the code
- auth: /me's slack field, which account.md already reads
- conventions: the linking pair counts as credential endpoints
- data-model: agent-grants contract is v2 (the new scopes change it)
- agent-applications: application.visible is at notifiedAt (when the
  hold ended for a held one), so the cursor never skips it; events
  appear once a minute old; next is never null; where decidedBy,
  decidedVia and closedBy sit; the decide scope without its companions
  is refused at use (401), and a foreign workspace is not_project_admin
- architecture: SLACK_TEAM_ID and SLACK_OPS_BOT_DM_URL

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n private profiles

AGENT_SCOPES gains slack:link, projects:applications:read and
projects:applications:decide, with AGENT_SCOPE_REQUIRES naming each
scope's companions. agent-grants/v2 is generated and vendored into the
API mirror (with gitsheets contracts adopt; provenance lands when the
data repo adopts from the published URL). PrivateProfile gains the
optional slack { teamId, userId, linkedAt }.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…h profile rewrites

bySlackUserId (teamId:userId → personId) is rebuilt with the other private
indices, so a link, a disconnect or a purge is reflected at once. The
profile rewrites on a GitHub email change, an account claim, a claim
merge and a staff email edit rebuilt the profile field by field and would
have dropped the link; they carry it now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
POST /api/account/slack-link/code issues an 8-character code (two groups
of four, no 0/O/1/I/L), hashed in memory for ten minutes, one live code
per person, five per hour. POST /api/agent/slack-links (slack:link)
redeems it for the Slack user who sent it: unknown, expired, used and
orphaned codes answer one 404 code_invalid, ten failures lock the agent
out for an hour, another workspace (or none configured) is 422, and a
Slack user linked elsewhere is 409 without spending the code. DELETE
/api/account/slack-link clears it. /api/auth/me reports { linked,
linkedAt }, never the user id. Minting enforces every scope's
companions; /api/agent/* routes check scope and companions before the
body (401). Both linking paths count as credential endpoints.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mint form

Connect Slack asks for a code and shows it with the instruction to DM it
to the ops bot within ten minutes (the bot's name links to botDmUrl when
configured); the row polls /api/auth/me while the code is live and turns
"Connected to Slack ✓ since …" when the bot confirms. Disconnect asks
first. The row never shows a Slack user id. The agents panel's mint form
offers the three new scopes and warns when decide lacks its companions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
projects:applications:read. Events are derived from the membership
records on each read: application.visible at notifiedAt, .reminder at
remindedAt, .accepted at decidedAt, .closed at closedAt. A held
application, one withdrawn before admins could see it, and every event of
a deactivated applicant or deleted project are left out. Each event names
the project, the applicant's facts, the application (offer, needs,
decidedBy, decidedVia, closedBy) and the active admins, with a Slack user
id only for a verified link in this workspace; no email anywhere.
Ordered by (at, record id, type) with a base64url cursor that survives a
restart; 7-day default window; events show once a minute old, and the
sweep stamps its notice bookkeeping when it commits rather than when it
started, so nothing lands behind a cursor. hasSlackLink reads the typed
field now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"The ops bot recorded that you accepted …", naming the agent, how to undo
it, and a link to the Applications screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
POST /api/agent/applications/:projectSlug/:personSlug/decision under
projects:applications:decide, which must hold its two companions at use
(401 otherwise). onBehalfOf must name a Slack user in the configured
workspace with a verified link to a person who is not deactivated, not an
agent, and is a project-admin of this project right now, checked with the
site's project-admin marker alone so staff powers do not carry over (403
not_project_admin otherwise). Checked before the lock to name the admin
in the commit and again under it, with the 30-per-24-hours cap per agent
across its grants (records plus an in-process log). The effect is the
site's accept or close run as that admin, with decidedVia = agent and
agentGrantId; the commit is the agent's with Actor-Kind, Grant-Id and
On-Behalf-Of. Unknown body fields (isAdmin above all) are refused, not
dropped. The applicant gets the usual email and the admin a confirmation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The three closeout commits were made before the pull request existed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Operator-approved on PR #270: the site links an account to a Slack user
by itself when the user found by its email has the handle the site
asserted at sign-in. Scope, approach and validation amended; the earlier
closeout's ticks stand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…agree

Operator-approved design on PR #270. With its own read-only token
(SLACK_BOT_TOKEN: users:read, users:read.email) the site links an
account when users.lookupByEmail for the private-profile email returns a
full, active, human member of SLACK_TEAM_ID whose handle exactly equals
slackSamlNameId. It runs one person at a time: about a minute after Slack
SAML sign-in, on /me (waiting at most 1.5 s), and for up to 5 admins per
feed request; at most 20 Slack calls a minute, honouring Retry-After;
no-match cached 24 h, errors 15 min. Automatic links are re-verified when
used past 24 h, always before an on-behalf decision (a mismatch removes
the link; either failure refuses not_project_admin); the feed stops
carrying an id unverified for 7 days. Links record via (auto | code) and
verifiedAt; disconnecting records an opt-out the automatic path honours
and a code link clears. The code stays as the fallback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e opt-out

PrivateProfile.slack gains via (auto | code; absent means code) and
verifiedAt; the profile gains slackAutoLinkOptOutAt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Behind an interface so tests use a fake. 429 and ratelimited become
SlackRateLimitedError with Retry-After; users_not_found is null; anything
else is SlackApiError carrying Slack's error string, never the email.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With SLACK_BOT_TOKEN and SLACK_TEAM_ID, the site links a person when the
Slack user found for their private-profile email has a handle exactly
equal to slackSamlNameId and is a full, active, human member of the
workspace. Runs about a minute after Slack SAML sign-in, on /me (waiting
at most 1.5 s), and for up to 5 admins per feed request; 20 Slack calls a
minute site-wide, Retry-After honoured, no-match cached 24 h and errors
15 min, one attempt per person at a time; never throws to its caller.
Automatic links past 24 h are re-checked when used and always before an
on-behalf decision: a mismatch removes the link, and the decision is
refused not_project_admin if the link is removed or could not be
re-checked (resolved again under the write lock). The feed drops an
automatic link unverified for 7 days. Code links record via=code and
clear the opt-out; disconnecting records it. Profile rewrites carry the
opt-out. me.slack reports via. The email is never logged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lly or made by code

Disconnect's confirm says the site will not reconnect by itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…link (PR #270)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…2 adoption

apps/api/gitsheets/ mirrors codeforphilly-data's empty branch after it
adopts agent-grants/v2: sources.toml records the v2 provenance, and the
v1 document no sheet declares any more goes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…vamp

Project membership: follow, apply, project admins
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Author

Changelog

- Project membership: follow, apply, project admins [#269] @codeforphilly-bot
- Slack account link, agent application feed, and agent decisions on an admin's behalf [#270] @codeforphilly-bot

Slack account link, agent application feed, and agent decisions on an admin's behalf
@codeforphilly-bot codeforphilly-bot changed the title Release: v0.13.1 Release: v0.14.0 Nov 30, 2026
@codeforphilly-bot
codeforphilly-bot merged commit abf4cb2 into main Nov 30, 2026
5 checks passed
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