roles

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package roles loads versioned Role Contracts (§9). Contracts are YAML and embedded in the binary; they define competencies, required behaviors, artifact expectations, rubrics, required checks, and tool requirements — not merely "act like X" prompts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Names

func Names() []string

Names returns the available role names, sorted.

Types

type RoleContract

type RoleContract struct {
	Name         string   `yaml:"name"`
	Version      string   `yaml:"version"`
	Competencies []string `yaml:"competencies"`
	Behaviors    []string `yaml:"behaviors"`
	Artifacts    []string `yaml:"artifacts"`
	Rubrics      []string `yaml:"rubrics"`
	Checks       []string `yaml:"checks"`
	Tools        []string `yaml:"tools"`
	Model        string   `yaml:"model"`
}

RoleContract is a versioned staff-level role definition (§9).

func Load

func Load(name string) (RoleContract, error)

Load returns one role contract by name.

func Must

func Must(name string) RoleContract

Must returns a role contract, panicking on error (for internal wiring).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL