Documentation
¶
Overview ¶
Package evalcorpus prepares maintainer-owned reference packets. It does not run workers, grade prose, or enforce a model/operating-system boundary.
Index ¶
- func Digest(data []byte) string
- func Export(ctx context.Context, repo, corpusDir, parent, name string, files []File) (string, error)
- func Inspect(root *os.Root, files []File) error
- func PacketDigest(files []File) string
- func ReadHistoricalFile(ctx context.Context, repo string, f File) ([]byte, error)
- type Case
- type Control
- type File
- type Manifest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Export ¶
func Export(ctx context.Context, repo, corpusDir, parent, name string, files []File) (string, error)
Export creates name under an existing disposable parent, after verifying all declared worker bytes. It refuses existing destinations and parent links. Controller material is not implicitly copied. os.Root confines file creation; this is packet preparation, not runtime isolation against a worker or model.
func Inspect ¶
Inspect checks exact contents and bytes, including rejecting extra files and links. It cannot prove OS permissions, Git-store denial, or model-tool closure.
func PacketDigest ¶
PacketDigest hashes sorted "path NUL byte-digest LF" records. It includes TASK.md, ROLE.md and CONTEXT.md, and does not include filesystem metadata.
func ReadHistoricalFile ¶
ReadHistoricalFile reuses the reference export's fixed Git/tree checks for a single digested historical blob. Local authored artifacts instead use the controller's anchored reader. It never fetches or executes artifact contents.
Types ¶
type Case ¶
type Case struct {
ID string `json:"id"`
Version int `json:"version"`
Role string `json:"role"`
Partition string `json:"partition"`
Lineage string `json:"lineage"`
Difficulty string `json:"difficulty"`
Classification string `json:"classification,omitempty"`
SourceCommit string `json:"source_commit"`
Upstream []string `json:"upstream"`
Selection string `json:"selection"`
Inputs []File `json:"inputs"`
PacketSHA256 string `json:"packet_sha256"`
Key File `json:"key"`
Probe File `json:"probe"`
Command []string `json:"command"`
CheckSeconds int `json:"check_seconds"`
Alternative string `json:"alternative"`
Controls []Control `json:"controls"`
}
type File ¶
type File struct {
Path string `json:"path"`
Source string `json:"source"`
Commit string `json:"commit,omitempty"`
SHA256 string `json:"sha256"`
}
File pins either a historical Git blob or a corpus-authored artifact. Commit is empty for artifacts relative to the corpus directory.