Skip to content

feat: court llms.txt #2067

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 7, 2025
Merged

feat: court llms.txt #2067

merged 1 commit into from
Aug 7, 2025

Conversation

jaybuidl
Copy link
Member

@jaybuidl jaybuidl commented Aug 6, 2025

PR-Codex overview

This PR focuses on updating the netlify.toml configuration for headers and adding content to the llms.txt file, which describes the Kleros platform and its features.

Detailed summary

  • Added header configuration in netlify.toml to set X-Robots-Tag for all routes.
  • Created or updated llms.txt with descriptions of Kleros features including:
    • Decentralized arbitration and dispute management.
    • Links to the Kleros Dispute Dashboard, Cases, Courts, Jurors Leaderboard, and PNK Token acquisition.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Summary by CodeRabbit

  • Documentation
    • Added a new reference file describing the Kleros decentralized arbitration platform, including dispute management, juror participation, and token acquisition.
    • Updated site configuration to enhance HTTP header settings for improved content handling across all routes.

Copy link

netlify bot commented Aug 6, 2025

Deploy Preview for kleros-v2-testnet-devtools ready!

Name Link
🔨 Latest commit 752b64a
🔍 Latest deploy log https://app.netlify.com/projects/kleros-v2-testnet-devtools/deploys/6894edb846f01400086ea281
😎 Deploy Preview https://deploy-preview-2067--kleros-v2-testnet-devtools.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented Aug 6, 2025

Deploy Preview for kleros-v2-university failed. Why did it fail? →

Name Link
🔨 Latest commit 752b64a
🔍 Latest deploy log https://app.netlify.com/projects/kleros-v2-university/deploys/6894edb8e9e4b20007b64b6d

Copy link
Contributor

coderabbitai bot commented Aug 6, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

A new documentation file, llms.txt, describing the Kleros decentralized arbitration platform was added to the public directory. Additionally, the Netlify configuration was updated to set a custom X-Robots-Tag HTTP header for all routes.

Changes

Cohort / File(s) Change Summary
Documentation Addition
web/src/public/llms.txt
Added a new text file outlining Kleros platform features, links to components, and token acquisition instructions.
Netlify Header Configuration
web/netlify.toml
Updated Netlify config to apply X-Robots-Tag: llms-txt header to all routes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Poem

A rabbit hopped through docs anew,
With headers set and links in view.
Kleros courts and jurors shine,
In llms.txt—all by design.
Now bots and humans, all can see,
The wisdom of decentralized decree!
🐇✨

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2dde0d8 and 752b64a.

📒 Files selected for processing (2)
  • web/netlify.toml (1 hunks)
  • web/src/public/llms.txt (1 hunks)
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/court-llms-txt

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai or @coderabbitai title anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

netlify bot commented Aug 6, 2025

Deploy Preview for kleros-v2-testnet ready!

Name Link
🔨 Latest commit 752b64a
🔍 Latest deploy log https://app.netlify.com/projects/kleros-v2-testnet/deploys/6894edb8efb65100087c1dbf
😎 Deploy Preview https://deploy-preview-2067--kleros-v2-testnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (5)
web/src/public/llms.txt (2)

1-3: Prefer .md extension for Markdown assets

The file uses Markdown syntax but is saved as .txt. Renaming it to llms.md improves automatic rendering, syntax highlighting, and GitHub preview.


5-9: Reduce repetitive lead-in wording in list items

Five successive bullets start with “Kleros …”, triggering the style-checker and adding noise. Dropping the prefix or shortening it makes the list crisper:

- [Kleros Dispute Dashboard]...
- [Kleros Dispute Cases]...
- [Kleros Decentralized Courts]...
- [Kleros Jurors Leaderboard]...
- [Get PNK Token]...
+ [Dispute Dashboard]...
+ [Cases]...
+ [Decentralized Courts]...
+ [Juror Leaderboard]...
+ [Get PNK]...
web/src/public/llms-full.txt (3)

1-1: Rename to .md for proper Markdown handling

Same rationale as in llms.txt: a .md extension will let tooling and browsers render the document instead of serving raw text.


19-24: Duplicate “¿Debería la empresa pagar la compensación exigida por el usuario?” entry

Lines 19 and 23 reference the same case ID 83 and 81 respectively, but the titles are identical, which looks accidental and may confuse readers. Keep only distinct cases or clarify the difference.


31-34: Minor grammar adjustment

Replace “times where” with “times the juror” (or “times when”) and tweak wording for clarity.

-A score from 0 to 100 reflecting coherent voting, smoothed to prevent jurors with low vote counts from ranking too high.
-
-This is the ratio of coherent votes made by a juror: the number in the left is the number of times where the juror voted coherently and the number in the right is the total number of times the juror voted. Hover to see the percentage of coherent votes.
+A score from 0 to 100 reflects coherent voting and is smoothed so jurors with few votes do not rank disproportionately high.
+
+The ratio shows coherent votes made by a juror: the number on the left is how many times the juror voted coherently, and the number on the right is the total number of votes cast. Hover to see the percentage.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e3ed3c9 and 0c0f00a.

📒 Files selected for processing (2)
  • web/src/public/llms-full.txt (1 hunks)
  • web/src/public/llms.txt (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: in the kleros court configuration, it's acceptable for the general court (id: 1) to have itself as i...
Learnt from: jaybuidl
PR: kleros/kleros-v2#1746
File: contracts/config/courts.v2.mainnet-neo.json:3-17
Timestamp: 2024-11-19T16:09:52.022Z
Learning: In the Kleros court configuration, it's acceptable for the General Court (id: 1) to have itself as its parent (parent: 1) when there is no court at index 0.

Applied to files:

  • web/src/public/llms-full.txt
🪛 LanguageTool
web/src/public/llms.txt

[style] ~7-~7: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...entralized dispute resolution cases. - [Kleros Decentralized Courts](https://v2.kleros...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[style] ~8-~8: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...ate as jurors, and view court cases. - [Kleros Jurors Leaderboard](https://v2.kleros.b...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

web/src/public/llms-full.txt

[style] ~33-~33: It might be better to use ‘times’ with the time-relative pronoun ‘when’. (Alternatively, use ‘in/on which’.)
Context: ...the number in the left is the number of times where the juror voted coherently and the numb...

(WHEN_WHERE)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (14)
  • GitHub Check: Redirect rules - kleros-v2-testnet
  • GitHub Check: Redirect rules - kleros-v2-testnet
  • GitHub Check: Header rules - kleros-v2-testnet
  • GitHub Check: Header rules - kleros-v2-testnet
  • GitHub Check: Pages changed - kleros-v2-testnet
  • GitHub Check: Pages changed - kleros-v2-testnet
  • GitHub Check: Redirect rules - kleros-v2-university
  • GitHub Check: Header rules - kleros-v2-university
  • GitHub Check: Redirect rules - kleros-v2-testnet-devtools
  • GitHub Check: Pages changed - kleros-v2-university
  • GitHub Check: Header rules - kleros-v2-testnet-devtools
  • GitHub Check: Pages changed - kleros-v2-testnet-devtools
  • GitHub Check: contracts-testing
  • GitHub Check: Analyze (javascript)

coderabbitai[bot]
coderabbitai bot previously approved these changes Aug 6, 2025
Copy link

netlify bot commented Aug 6, 2025

Deploy Preview for kleros-v2-neo ready!

Name Link
🔨 Latest commit 752b64a
🔍 Latest deploy log https://app.netlify.com/projects/kleros-v2-neo/deploys/6894edb87551e70009458723
😎 Deploy Preview https://deploy-preview-2067--kleros-v2-neo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

coderabbitai[bot]
coderabbitai bot previously approved these changes Aug 6, 2025
@jaybuidl jaybuidl force-pushed the feat/court-llms-txt branch from 2dde0d8 to 752b64a Compare August 7, 2025 18:17
@jaybuidl jaybuidl marked this pull request as ready for review August 7, 2025 18:17
@jaybuidl jaybuidl requested a review from a team as a code owner August 7, 2025 18:17
@jaybuidl jaybuidl changed the title feat: court llms.txt and llms-full.txt experiment feat: court llms.txt Aug 7, 2025
@jaybuidl jaybuidl merged commit 9140890 into dev Aug 7, 2025
12 of 18 checks passed
Copy link

sonarqubecloud bot commented Aug 7, 2025

@jaybuidl jaybuidl deleted the feat/court-llms-txt branch August 7, 2025 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant