Skip to content

docs: rename CEL Work Scopes → Work Scopes, trim and restructure#66

Draft
s-adamantine wants to merge 3 commits intomainfrom
fix/work-scopes-page
Draft

docs: rename CEL Work Scopes → Work Scopes, trim and restructure#66
s-adamantine wants to merge 3 commits intomainfrom
fix/work-scopes-page

Conversation

@s-adamantine
Copy link
Contributor

@s-adamantine s-adamantine commented Mar 3, 2026

Summary

  • Renames cel-work-scopes.mdwork-scopes.md, updates nav and frontmatter
  • Leads with the simple case (allOf string list) since that's what most users will use today
  • Makes motivation generic instead of tied to specific Kenya/Uganda/Amazon narratives
  • Marks speculative content as planned — CEL evaluation runtime, context schema, and "What CEL unlocks" features all get callouts noting they're not yet implemented
  • Trims "What CEL unlocks" from 4 code blocks to a concise bullet list
  • Fixes certified.inkcertified.app
  • Moves CEL spec link to the architecture section where it's contextually relevant

Summary by CodeRabbit

  • Documentation
    • Updated Work Scopes documentation with improved organization and clarity
    • Added simplified example of basic work scope structure
    • Reorganized content to cover simple and advanced use cases
    • Updated feature descriptions and terminology references

@coderabbitai
Copy link

coderabbitai bot commented Mar 3, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Documentation rewrite of the Work Scopes page reorganizes content to emphasize simple string lists alongside structured CEL usage, introduces a "simple case" JSON example, replaces code examples with narrative descriptions, and updates vocabulary examples and planning status notes.

Changes

Cohort / File(s) Summary
Work Scopes Documentation
pages/core-concepts/work-scopes.md
Complete page reorganization with title/description updates, new "simple case" subsection with JSON example, reframed narrative from two-layer CEL architecture to blended approach, code examples replaced with bullet-point feature descriptions (Funder matching, Evaluation matching, Overlap detection, Measurement queries), CEL context schema updates reflecting planning status, and starter tag vocabulary example changes including domain link text updates.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 The Work Scopes now bloom so clear,
From CEL depths to lists we hold dear,
A simple case hops into view,
Where JSON shows what work can do,
Documentation hops anew! 🌿

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main changes: renaming the documentation page from 'CEL Work Scopes' to 'Work Scopes' and restructuring/trimming the content.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/work-scopes-page

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@s-adamantine s-adamantine marked this pull request as draft March 3, 2026 18:51
Copy link

@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: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@pages/core-concepts/work-scopes.md`:
- Around line 8-17: Normalize the documentation and examples so the `workScope`
simple variant and the union schema match: pick one canonical simple shape
(either a plain array of strings like `"workScope": ["Documentation","Open
Source"]` or an object with `allOf`) and update the example block and
descriptive text to use that exact form; alternatively, explicitly list all
accepted variants and their exact schemas, referencing the union member names
`workScopeString` and the structured CEL variant (e.g., `workScopeCEL`/`allOf`)
and show one concrete example for each so clients can implement the union
correctly.

ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between db64a18 and b5734c8.

📒 Files selected for processing (1)
  • pages/core-concepts/work-scopes.md

Comment on lines +8 to +17
Work scopes describe what work a hypercert covers. Every activity claim has a `workScope` field that can be either a simple string list or a structured CEL expression for machine-evaluable logic.

[CEL (Common Expression Language)](https://github.com/google/cel-spec) is an open-source expression language built by Google for evaluating conditions in distributed systems. It's used by Kubernetes, Firebase, and Google Cloud IAM.
## The simple case

## Why structured scopes matter
Most hypercerts use a simple string list for work scopes:

A community in coastal Kenya mints a hypercert for "mangrove restoration and environmental education." A collective in Uganda creates one for "agroforestry with beekeeping." A drone operator in the Amazon documents "biodiversity monitoring in the Negro River region." These are all legible to a person reading them one at a time. They're invisible to any system trying to connect funders to relevant work at scale.
```json
{
"workScope": { "allOf": ["Documentation", "Open Source"] }
}
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Align workScope shape terminology with the union schema.

Line 8/12 says “simple string list,” Lines 14-17 show an allOf object, and Lines 90-94 define workScopeString as free-form string. These three representations conflict and can cause incorrect client implementations. Please normalize wording/examples to one canonical simple variant (or explicitly document all accepted variants and their exact schema).

Also applies to: 90-94

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@pages/core-concepts/work-scopes.md` around lines 8 - 17, Normalize the
documentation and examples so the `workScope` simple variant and the union
schema match: pick one canonical simple shape (either a plain array of strings
like `"workScope": ["Documentation","Open Source"]` or an object with `allOf`)
and update the example block and descriptive text to use that exact form;
alternatively, explicitly list all accepted variants and their exact schemas,
referencing the union member names `workScopeString` and the structured CEL
variant (e.g., `workScopeCEL`/`allOf`) and show one concrete example for each so
clients can implement the union correctly.

@vercel
Copy link

vercel bot commented Mar 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hypercerts-atproto-documentation Ready Ready Preview, Comment Mar 3, 2026 7:06pm
hypercerts-v0.2-documentation Ready Ready Preview, Comment Mar 3, 2026 7:06pm

Request Review

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