Skip to content

ci(ratchet): drop config_getEnvironment pattern — now type-enforced (task 0.2) - #51

Closed
agissept wants to merge 1 commit into
migration/2.7-config-getenvironmentfrom
migration/0.2-ratchet-drop-getenvironment
Closed

agissept wants to merge 1 commit into
migration/2.7-config-getenvironmentfrom
migration/0.2-ratchet-drop-getenvironment

Conversation

@agissept

Copy link
Copy Markdown
Member

Ringkas

Slice pertama task 0.2 (framework-first: demote ratchet CI ke pola non-type saat komponen sudah di-tighten).

Task 2.7 (parent PR #48) menghapus Config\Repository::getEnvironment() dari fork tanpa shim → panggilan mana pun = method-not-found (PHP+Psalm menangkap). Pola grep config_getEnvironment di ratchet jadi:

  • redundan dengan type-enforcement itu, dan
  • false-positive: mencocokkan Queue\Listener::getEnvironment() (method worker, tak ada hubungannya dgn Config) → count mentok di 1 selamanya.

Perubahan

  • ci/convergence-ratchet.sh: buang pola config_getEnvironment.
  • ci/convergence-baseline.txt: buang baris config_getEnvironment=3.
  • docs/DIVERGENCE-LEDGER.md: pindah baris ke seksi baru "Sudah type-enforced (dipindah dari ratchet)".

Verifikasi

ci/convergence-ratchet.sh src → exit 0, pola sudah tak muncul, tak ada false-positive lagi.

Catatan urutan

Stacked di atas #48 (task 2.7) karena valid hanya setelah getEnvironment() benar-benar hilang dari fork. Jangan merge ke dev-13 mendahului #48.

🤖 Generated with Claude Code

…task 0.2)

Task 2.7 removed Config\Repository::getEnvironment() from the fork with no
shim, so any surviving call is method-not-found (PHP+Psalm catches it). The
grep-ratchet pattern is redundant with that type enforcement and, worse,
false-positives on Queue\Listener::getEnvironment() — an unrelated worker
method — keeping the count stuck at 1.

Prune the pattern from the ratchet + baseline and move the row to a new
"already type-enforced" section of the divergence ledger. First concrete
slice of framework-first task 0.2 (demote ratchet to non-type patterns as
components get type-tightened).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@agissept

Copy link
Copy Markdown
Member Author

Dipindah/disatukan ke #48 (task 2.7): commit ratchet ini sekarang ada langsung di branch migration/2.7-config-getenvironment. Menutup PR terpisah ini.

@agissept agissept closed this Sep 15, 2026
@agissept
agissept deleted the migration/0.2-ratchet-drop-getenvironment branch September 15, 2026 10:00
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