Skip to content

Address code-review findings (in-repo)#15

Merged
RunTimeAdmin merged 4 commits into
masterfrom
fix/review-findings
Jul 11, 2026
Merged

Address code-review findings (in-repo)#15
RunTimeAdmin merged 4 commits into
masterfrom
fix/review-findings

Conversation

@RunTimeAdmin

Copy link
Copy Markdown
Owner

The three review findings that are actually in this repo (the frontend/Supabase ones were a mis-push, since removed).

  • Factor-count driftCountersig_Build_Document.md said 5-factor; the contract/scoring/tests use 6 (community split into Community Verification 5% + Trust Propagation 5%). Aligned §5 + 3 inline mentions, and corrected the stale age (logarithmic) and community formulas.
  • Oracle rate-limiting — in-memory 60 req/min/key limiter on /attest, /flag, /epoch after the bearer check; blunts floods even if the token leaks. 3 tests.
  • CI — GitHub Actions for forge (build + --profile ci test), SDK vitest, and oracle node --test. Fetches Solidity deps in-job since lib/ is gitignored.

Local: contracts 113, SDK 52, oracle 53 — all green. CI itself needs this first run to confirm (can't trigger Actions locally); if the dep-clone step needs a tweak it's a one-liner.

🤖 Generated with Claude Code

dev-mondoshawan and others added 4 commits July 11, 2026 17:39
The build document described a 5-factor model while the contract, scoring.js,
docs/reputation-model.md, and all tests use 6 factors (community split into
Community Verification 5% + Trust Propagation 5%). Update §5 and the three inline
mentions, correct the age formula to the actual logarithmic curve and the
community formula to the 5-point version, and note the Phase 2 stubs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add an in-memory fixed-window limiter (60 req/min per client key) and apply it
to /attest, /flag, and /epoch after the bearer-token check. Blunts bursts even
if the admin token leaks, so a flood can't drive scores or burn oracle gas.
Testnet-grade (single-process, resets on restart). 3 tests added.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
GitHub Actions running forge build + test (ci profile, 5000 fuzz runs), the SDK
vitest suite, and the oracle node --test suite on push/PR. lib/ is gitignored, so
the contracts job fetches the Solidity deps (OZ pinned v5.6.1, forge-std default
branch) to match foundry.toml remappings.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
forge test has no --profile flag; the profile is chosen with the
FOUNDRY_PROFILE env var. Fixes the contracts CI job.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@RunTimeAdmin RunTimeAdmin merged commit 3e49b27 into master Jul 11, 2026
3 checks passed
@RunTimeAdmin RunTimeAdmin deleted the fix/review-findings branch July 11, 2026 22:42
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.

2 participants