Skip to content

Conversation

@zhujian7
Copy link

  • Add complete basic syntax tutorial (01_complete_basic_syntax.ksl/.zed)
  • Add advanced relations and cross-namespace tutorial (02_.ksl -> 02_.zed)
  • Add extension system tutorial with template variables (03_.ksl -> 03_.zed)
  • Add real-world enterprise example using all KSL features (04_*.ksl/.zed)
  • Add detailed compiler behavior documentation (ksl_compiler_behavior.md)
  • Add cardinality constraints explanation with practical examples
  • Add minimal learning guide (README.md) covering all syntax in 30 minutes
  • Add demo schema.zed for quick reference

Tutorials cover: cardinalities, visibility, relations, extensions, cross-namespace imports, template variables, reserved keywords, and real-world authorization modeling patterns.

🤖 Generated with Claude Code

…ples

Tutorial Files Added:
- 01_complete_basic_syntax.ksl/.zed - All cardinalities, visibility, relation expressions
- 02_advanced_relations.ksl + 02_cross_namespace.ksl → 02_advanced_and_cross_namespace.zed - Nested relations, imports
- 03_extension_system.ksl + 03_extension_usage.ksl → 03_complete_extensions.zed - Template variables, dynamic generation
- 04_complete_real_world.ksl/.zed - Enterprise example with every KSL feature

Documentation Added:
- README.md - 30-minute learning guide covering all KSL syntax
- ksl_compiler_behavior.md - Critical compiler behaviors: [bool] → rbac/principal:*, template variables, gotchas
- cardinality_explained.md - Business rules vs SpiceDB implementation

Covers complete KSL language: cardinalities, visibility, relations, extensions, cross-namespace imports, template variables, reserved keywords, and authorization modeling patterns.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

Signed-off-by: zhujian <[email protected]>
Key Changes:
- Rename 03_extension_system.ksl → rbac_foundation.ksl for clarity
- Update README.md to show rbac_foundation.ksl dependency in both Tutorial 3 and 4
- Recompile Tutorial 4 with proper RBAC extensions (rbac/role now properly populated)
- Fix Tutorial 4 compilation to include extension-generated permissions

Structure now clearly shows:
- rbac_foundation.ksl: Shared RBAC foundation used by Tutorials 3 & 4
- Tutorial 3: Extension system demonstration using shared foundation
- Tutorial 4: Real-world enterprise example using shared foundation

This makes dependencies explicit and logical rather than arbitrary numbered file sharing.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

Signed-off-by: zhujian <[email protected]>
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