Frontend: verify cosmes fork patches in CI #367
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic#367
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Gap analysis follow-up from GitLab #361 — register item M9 (forked
@goblinhunt/cosmes+ patch-package).Current codebase
@goblinhunt/cosmes^0.0.71-ghunt.21infrontend-dapp/package.json.postinstall:patch-packageapplies patches underfrontend-dapp/patches/.frontend-dapp/src/services/terraclassic/__tests__/cosmesPatch127.test.tsreads builtnode_modules/@goblinhunt/cosmes/dist/...for Keplr fee-guard strings (#127, #208).postinstallis skipped (npm ci --ignore-scripts, broken CI cache), wallet signing guards silently disappear.Why needed
Wallet integration depends on a forked cosmes with local patches for Keplr
preferNoSetFee, post-sign fee assertions, and Station amino signing. Supply-chain drift without verification risks underpriced txs or broken extension signing in production builds.Constraints / guardrails
make test-frontend/ lint path.Relevant files
frontend-dapp/package.json,package-lock.jsonfrontend-dapp/patches/@goblinhunt+cosmes+*.patchfrontend-dapp/src/services/terraclassic/__tests__/cosmesPatch127.test.tsscripts/with-node.shskills/AGENTS_FRONTEND_TX_BROADCAST_TIMEOUT.mdRecommended direction
patches/@goblinhunt+cosmes*.patchand fails if patch file changes without updating a committedpatches/.cosmes-patch-sha256(or extend cosmesPatch127 test).make test-frontendornpm run postinstallin CI docs must run before cosmes tests.docs/frontend.mdsection on fork rationale, patch contents, and upgrade checklist.@goblinhunt/cosmesissues for eventual un-fork.Acceptance criteria
node_modules/@goblinhunt/cosmeslacks patched symbols (simulates--ignore-scripts).postinstalland patch upgrade steps.make test-frontendincludes cosmes patch verification.Test plan
make test-frontend—cosmesPatch127.test.tsnpm ciinfrontend-dapp→ tests passAttack / abuse test plan
Verification criteria
node_modulesfailsmake test-frontend.mentioned in issue #361
mentioned in commit
2850dc8296mentioned in merge request !871
mentioned in commit
c0ba255dc0Verified !871 live (INT-00-04 territory).
Ran cosmesPatch127.test.ts against the branch's version with my installed node_modules:
AC mapping:
Good from my side.
mentioned in commit
a88cdb2370Verification — #367 (cosmes fork patches in CI)
Verified on
mainat6205054(includes merged !871). No repo changes required.Acceptance criteria
patches/@goblinhunt+cosmes+0.0.71-ghunt.21.patch→cosmesPatch127.test.tshash test failed (other two passed). Also corruptedpatches/.cosmes-patch-sha256→ hash test failed.node_modules/@goblinhunt/cosmeslacks patched symbols (--ignore-scripts)sedremovedassertExtensionSignedFeeMeetsExpectedfromKeplrExtension.js→ Keplr symbol test failed. Freshnpm ci --ignore-scripts→ 2/3 tests failed (hash OK, Keplr + Station symbol checks failed).postinstalland patch upgrade stepsdocs/frontend.md§ Forked cosmes: invariants,postinstallrequirement, 5-step upgrade checklist. Cross-linked fromdocs/testing.mdandskills/AGENTS_TERRACLASSIC_GAS.md.make test-frontendincludes cosmes patch verificationmake test-frontend— 957 tests passed;cosmesPatch127.test.ts×3 (hash + Keplr + Station).Additional checks (issue test plan)
rm -rf frontend-dapp/node_modules && bash scripts/with-node.sh --cwd frontend-dapp -- npm ci→cosmesPatch127.test.ts×3 passmake test-frontendArtifacts in tree
frontend-dapp/patches/.cosmes-patch-sha256— committed SHA-256 gatefrontend-dapp/src/services/terraclassic/__tests__/cosmesPatch127.test.ts— lockfile-resolved patch path, hash + symbol assertionsClosing — implementation landed in !871; verification complete.
mentioned in merge request !884
mentioned in merge request !888
mentioned in issue #420