Repository navigation
chore: enable 7-day Composer cooldown for the Laravel package - #340
Conversation
There was a problem hiding this comment.
Not approved — this change needs a human reviewer.
Asking again through the PostHog MCP or with @posthog stamp gives the same result unless the changed files change.
stamphog can't auto-approve this pull request. The deny-list gate refused it because it touches composer.lock and examples/laravel/composer.lock, which fall under the dependency and toolchain category. That match also placed the change in the never-auto tier. The size gate passed, so the refusal is about which files changed, not how much.
The author should ask a human reviewer to look at it. Splitting the lock file edits into a separate PR won't get around the gate, since any change to those files will match the deny-list.
Gate mechanics and policy version
| Gate | Result | |
|---|---|---|
| prerequisites | ✓ | all clear |
| deny-list | ✗ | matches: deps_toolchain in composer.lock, examples/laravel/composer.lock |
| every_file_attested | ✓ | not a bot PR |
| size | ✓ | 23L, 3F substantive, 27L/5F incl. docs/generated/snapshots — within ceiling |
| tier | ✗ | T2-never because the deny-list matched deps_toolchain |
| stamphog 2.9.1 | .stamphog/policy.yml @ unknown · reviewed head 1b7f248 |
posthog-php-socket Compliance ReportDate: 2026-12-01T16:23:27.372998+00:00 ✅ All Tests Passed!47/47 tests passed Capture Tests✅ 30/30 tests passed View Details
Feature_Flags Tests✅ 17/17 tests passed View Details
|
posthog-php-fork_curl Compliance ReportDate: 2026-12-01T16:23:19.499926+00:00 ✅ All Tests Passed!47/47 tests passed Capture Tests✅ 30/30 tests passed View Details
Feature_Flags Tests✅ 17/17 tests passed View Details
|
posthog-php-lib_curl Compliance ReportDate: 2026-12-01T16:22:58.905567+00:00 ✅ All Tests Passed!47/47 tests passed Capture Tests✅ 30/30 tests passed View Details
Feature_Flags Tests✅ 17/17 tests passed View Details
|
dustinbyrne
left a comment
There was a problem hiding this comment.
Left two items before approval:
- Breaking: Confirmed the
packages/laravel/composer.jsoncooldown failure againstposthog/posthog-php 4.29.0with Composer2.11.3and added theresume_run_id/ 5-day artifact expiry andCONTRIBUTING.mddetails directly in the existing thread. - Concern: Added an inline note on
composer.lockregarding the Composer< 2.11vs>= 2.11content-hashsplit (affecting weekly Dependabot Composer PRs whiledependabot-corepins2.10.3, plus missingComposer 2.11+contributor docs).
AI-assisted review.
There was a problem hiding this comment.
Not approved — escalated to a human reviewer.
Ask for another review through the PostHog MCP or comment @posthog stamp once you have addressed this.
The risky dependency-resolution change has no current-head independent review; the older concerns are addressed by exempting the core SDK and leaving locked projects unchanged. Request a review from Codex, Claude, or a human teammate covering dependency resolution and Laravel release verification before re-requesting.
- Author wrote 0% of the modified lines and has 9 merged PRs in these paths (familiarity MODERATE).
- Risky territory without independent assurance: Dependency and third-party code changes: packages/laravel/composer.json changes which dependency releases Composer may select by imposing a seven-day waiting period with an exemption for the core SDK.; CI/deploy/build tooling: packages/laravel/composer.json affects dependency installation during Laravel CI and release verification, including the install performed by scripts/verify-laravel-production-dependencies.sh.
Gate mechanics and policy version
| Gate | Result | |
|---|---|---|
| prerequisites | ✓ | all clear |
| deny-list | ✓ | no deny categories matched |
| every_file_attested | ✓ | not a bot PR |
| size | ✓ | 12L, 1F substantive — within ceiling |
| tier | ✓ | T1-agent / T1a-trivial (12L, 1F, single-area, chore) |
| stamphog 2.9.1 | .stamphog/policy.yml @ 90bd536 · reviewed head 90bd536 |
💡 Motivation and Context
Composer 2.11 added a cooldown setting. When it is on, Composer will not install a package version until it has been public on Packagist for a set amount of time. Compromised releases are often found and pulled within a few days, so waiting lowers the chance that we pull one in. See the Socket write-up and the Composer docs.
This repo already waits 7 days in Dependabot and pnpm (
minimumReleaseAge). This PR sets the same 7-day cooldown inpackages/laravel/composer.json. That project has no lock file, so CI and the release workflow resolve its dependencies from scratch on every run.posthog/posthog-phpis exempt from the cooldown. The Laravel package pins the core SDK to an exact version. The release workflow installs that version right after core is published to Packagist. Without the exemption, every Laravel release would fail for 7 days after a core release.The root
composer.jsonandexamples/laravel/composer.jsonare not changed. Composer 2.11 addsconfig.policyto the lock filecontent-hash, and older Composer versions don't. Dependabot runs Composer 2.10.3, so a cooldown in those files would make its Composer PRs failcomposer validate --strict. Dependabot already waits 7 days before opening those updates. We can add the root cooldown once Dependabot moves to Composer 2.11.💚 How did you test it?
composer install --no-dev --prefer-dist --no-scripts --no-pluginsthatscripts/verify-laravel-production-dependencies.shuses, against the Laravel manifest. It installsposthog/posthog-php4.29.0. Without the exemption it fails with "still in the cooldown period". The same output also reports 123 third-party versions withheld by the cooldown.scripts/test-laravel.sh 13passes.examples/laravelmanifests and lock files matchmain. Composer 2.10.3 and 2.11.3 both validate them.This does not affect SDK users. Composer only reads
configfrom the root project, so it ignores this setting when our packages are installed as dependencies.To pull an urgent fix sooner, run Composer with
--no-cooldownor setCOMPOSER_POLICY_COOLDOWN_PERIOD=0.📝 Checklist
If releasing new changes
pnpm changeto generate a change intent fileNo change intent is needed because this only affects how this repo installs dependencies.
🤖 Agent context
Autonomy: Human-driven (agent-assisted)