Skip to content

chore(deps): open minor and major updates individually - #52

Merged
allisonmahmood merged 1 commit into
mainfrom
chore/individual-dependabot-updates
Aug 27, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
chore/individual-dependabot-updates

Conversation

@allisonmahmood

Copy link
Copy Markdown
Owner

Dependabot bundled every minor and patch release into one large pull request, making dependency regressions hard to isolate. Its default five-PR limit could also starve the ungrouped major updates that needed the most deliberate review.

Now patch releases stay grouped as low-risk maintenance, while minor and major releases open one pull request per dependency. The npm strategy explicitly increases manifest requirements across version boundaries, and the open PR limit is raised to 20 so individual updates can actually be emitted. The intentional @types/node major-version exception remains in place because Node 22 is the minimum supported runtime.

Verification

  • Parsed .github/dependabot.yml as YAML and asserted the npm strategy, PR limit, patch-only group, and Node types exception
  • pnpm exec prettier --check .github/dependabot.yml
  • Reviewed the one-file diff against latest origin/main

Generated by OpenAI Codex GPT-5.6 Sol using the Oh My Pi coding harness.

@github-actions github-actions Bot added area:ci CI, shared testing infrastructure, development scripts and tooling size:s Under 100 changed lines labels Aug 27, 2026
@allisonmahmood
allisonmahmood merged commit 1f3ea08 into main Aug 27, 2026
7 checks passed
@allisonmahmood
allisonmahmood deleted the chore/individual-dependabot-updates branch August 27, 2026 20:59
allisonmahmood added a commit that referenced this pull request Nov 10, 2026
## What changed

Patchy Cloud only knew that a person ticked Clerk's box at sign-up. It
had no record of which terms they accepted, and no way to ask again when
the terms change. Now each person's acceptance is recorded by revision.
When the terms or privacy notice move, everyone gets one prompt on their
next page in a browser: "We've updated our terms", links to the dated
pages, Accept, and Sign out. Accept goes on to the page they were
opening.

Closes #976 (rescoped 2026-11-02: per person, industry standard).

## Look at

**The prompt**, as approved in the mock, now drawn with the overhaul's
door (P8, #1343): `doorResponse` with Accept as its primary action and
the usual "Signed in as … · Sign out" foot, and no styles of its own.
`team`'s Cleo hasn't accepted yet, so it stands in for her Home:

<!-- patchy-dev:compare:cleo -->

#### Before and after, as Cleo Shah (member)

Before is `e8851ea` (where this branch left main) and after is `1e926f4`
(companies/terms-acceptance), both on the `team` scenario, from `pnpm
dev compare`.

Every page answered 200 with no browser errors.

##### `/`

**1280px, after**

![After: / at
1280px](https://github.com/user-attachments/assets/86d107c9-c834-4ba4-a46d-1d8c85aeefdc)

<details><summary>1280px, before</summary>

![Before: / at
1280px](https://github.com/user-attachments/assets/068fcb82-48cb-479e-aa8d-e54678a8bda8)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: / at
390px](https://github.com/user-attachments/assets/2d19686c-db2a-42f6-8690-03b3b1cbab9b)
| ![After: / at
390px](https://github.com/user-attachments/assets/88bc2376-2751-47d8-8be0-e09dfc61c1e6)
|

<!-- /patchy-dev:compare:cleo -->

**Accept goes on to where she was heading**, the query included, and her
next page asks nothing:

<!-- patchy-dev:film:accept-terms -->

#### Flow `accept-terms`, as Cleo Shah (member)

After is `1e926f4` (companies/terms-acceptance), on the `team` scenario,
from `pnpm dev film`.

- After: finished in 6.9s


https://github.com/user-attachments/assets/c57c0173-ddb7-4fc7-adf7-a6aad8f14ec8

<!-- /patchy-dev:film:accept-terms -->

**Who is asked, and where.** This was the part worth checking:
- **Who:** everyone who hasn't accepted the current revisions or later
ones. That covers members, admins and guests. A guest is asked about
their own record; the host company never matters.
- **Where:** only a top-level page load: `GET` with `Sec-Fetch-Mode:
navigate` and `Sec-Fetch-Dest: document`. It applies at the two page
boundaries, `RequireSession.withViewer` (portal, company, What's new,
device-login and consent pages) and Serving's door for company patch
addresses.
- **Never asked:**
- fetches, a patch's `/~content` frame, live streams and runtime calls;
  - form posts (the page a post redirects to asks);
- public patches, the login door, create-or-join and Clerk's handshake;
- any client without browser fetch metadata, so agents, machine tokens,
MCP and the CLI pass.

**The record** is the new `terms_acceptances` table (migration 36). It
has one row per person and pair of revisions, holding who, the terms
revision, the privacy revision, when, and `via`. `via` is `sign-up` for
the row written with each new user at create-or-join, and `prompt` for
Accept. Rows are only ever added. There's no foreign key, so a record
outlives its account. Accepting again adds nothing. A release on older
revisions, such as a rollback, asks nobody again. A form left open
across an account switch or a revision change records nothing and asks
again with 409, unless whoever is signed in has already accepted.

**The revisions** are one line: `current` in
`packages/companies/src/Terms.ts`. URLs derive from the ids
(`https://patchyhq.com/cloud/terms/<id>`, `…/privacy/<id>`). This head
holds **terms `2026-11-10` and privacy `2026-11-10`**, published by
patchy-web #52 (merged); both dated pages answer 200. A release never
names an id whose dated page doesn't answer.

**Ship order:** #52 live (done; both dated pages answer 200) → merge
this → release → deploy. The website makes a revision current when it
publishes it, so anyone who signs up before the deploy is recorded with
the older ids and asked once after it.

**Rollout:**
- Every existing person is asked once on their next page in a browser.
- Nobody is backfilled from Clerk, and Clerk's sign-up time stays as it
is.
- The new revision says earlier acceptances stay in force until the
person accepts it in Patchy Cloud, and this prompt is how each person
accepts it.
- An account Patchy creates for someone is covered by the new terms'
line that they accept the terms when they first use it. If its company
is created after this ships, it's recorded at creation and never asked;
if it was created before, it's asked once.

## How it was verified

- **New tests:**
- Users: sign-up rows for created and invited users; later revisions
count, older ones don't, and accepting again adds nothing.
- AuthPages: the prompt in place of a page; fetch, iframe and
metadata-free requests pass; Accept records and returns to the path with
its query; a switched account or stale revision gets 409 and records
nothing; a foreign return goes to `/`.
- Serving: a colleague and a guest are asked at a patch address, never
in its frame, on a public patch or without fetch metadata.
- `vitest run packages/auth packages/companies packages/serving
packages/portal apps/server/src/migrations.test.ts
scripts/dev/src/scenario.test.ts`: 38 files, 494 tests pass. `pnpm
verify`: see the review comment.
- `pnpm dev compare` and `pnpm dev film` above, on throwaway instances
at this commit.
- **Seeds:** the dev seed, every scenario person and the tier 1 browser
instance's people start past the prompt. `team`'s Cleo is
`termsPending`. The rollback rehearsal accepts the prompt once when
HEAD's revisions are newer than the seed's, which is what every existing
person will see.
- **Not checked:** the production Clerk sign-up path. Its new user takes
the same `create` and `consumeInvite` insert the tests cover.

**Follow-up (#1205):** acceptance records are deleted 7 years after the
account or company closes. The privacy notice states that retention;
nothing deletes records yet, and nothing can close for years.

## Release impact

- [ ] **Breaking** — requires action from anyone already running this
- [x] **Not breaking** — an additive table; no CLI, API or config
change. Every existing person sees the prompt once in a browser, by
design.

- **What does a revert leave behind?** The `terms_acceptances` table and
its rows. Nothing else reads them.
- **Does the release before it still work with that?** Yes. It never
reads the table, and it doesn't prompt. Coming forward again asks only
people who hadn't accepted.

Built by Claude Opus 5.5 (xhigh) in Claude Code on T3 Code; reviewed and
accepted by GPT-6.1-Sol (xhigh).

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant