{"modulePath":"github.com/chainloop-dev/chainloop","version":"v1.141.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package e2e\n\nPackage e2e is the end-to-end test suite of Chainloop Trace (spec issue-3635). It runs real coding agents in headless mode, in throwaway repositories with Trace in local storage mode, and builds a result matrix of harness, model and feature. The expected matrix is the feature table of the Trace README.\n\n## Constants\n\n```go\nconst HarnessClaudeCode = \"Claude Code\"\n```\nHarnessClaudeCode is the column name of Claude Code in the feature table.\n\n## Functions\n\n```go\nfunc Markdown(res *Result) string\n```\nMarkdown renders the result matrix as a markdown table: one row per feature and one column per harness and model (R-010).\n\n## Types\n\n```go\ntype Cell struct {\n\tFeature        string  `json:\"feature\"`\n\tHarness        string  `json:\"harness\"`\n\tHarnessVersion string  `json:\"harness_version,omitempty\"`\n\tModel          string  `json:\"model\"`\n\tExpected       Support `json:\"expected\"`\n\tStatus         Status  `json:\"status\"`\n\t// Passes and Runs give the pass rate of the cell (R-006).\n\tPasses int `json:\"passes\"`\n\tRuns   int `json:\"runs\"`\n\t// Reason tells why the cell did not pass, or why it was not tested.\n\tReason string `json:\"reason,omitempty\"`\n}\n```\nCell is one cell of the result matrix: a feature for a harness and a model.\n\n```go\ntype Change struct {\n\tCell Cell\n\t// Previous is the status in the previous run, empty when the cell is new.\n\tPrevious Status\n}\n```\nChange is a cell whose state changed from the previous run.\n\n```go\ntype Changes struct {\n\t// Regressions are cells that passed in the previous run and fail now.\n\tRegressions []Change\n\t// Improvements are cells marked \"Unknown\" that pass now and did not pass\n\t// in the previous run, so the team can update the table.\n\tImprovements []Change\n}\n```\nChanges are the cells to report after a run (R-007).\n\n```go\nfunc Compare(prev, cur *Result) Changes\n```\nCompare compares the current result with the previous one. prev is nil when there is no previous result. A cell that failed in the previous run too is not reported again (R-007, D-005).\n\n```go\nfunc (c Changes) Empty() bool\n```\nEmpty reports whether there is nothing to report.\n\n```go\ntype Check struct {\n\tScenario string\n\tVerify   func(s *Session) error\n}\n```\nCheck verifies one feature on the result of one scenario session.\n\n```go\ntype Claude struct {\n\t// Bin is the claude executable. Empty means \"claude\" from PATH.\n\tBin string\n}\n```\nClaude is the harness adapter of Claude Code.\n\n```go\nfunc (c *Claude) Column() string\n```\nColumn implements Harness.\n\n```go\nfunc (c *Claude) DisableSessionStart(repo string) error\n```\nDisableSessionStart implements Harness. It deletes the SessionStart entry from the hooks of the project settings and keeps the other entries as they are.\n\n```go\nfunc (c *Claude) HookConfig() HookConfig\n```\nHookConfig implements Harness.\n\n```go\nfunc (c *Claude) Run(ctx context.Context, req RunRequest) (*RunOutput, error)\n```\nRun implements Harness. It runs \\`claude -p\\` with the stream-json output and the hook events, so the output shows the hook messages that the user sees.\n\nOnly the project and local settings are loaded. The settings and the plugins of the user who runs the suite would add their own hooks and change the session.\n\n```go\nfunc (c *Claude) SkillPath(name string) string\n```\nSkillPath implements Harness.\n\n```go\nfunc (c *Claude) TraceFlag() string\n```\nTraceFlag implements Harness.\n\n```go\nfunc (c *Claude) Version(ctx context.Context) (string, error)\n```\nVersion implements Harness. \\`claude --version\\` prints \"2.1.0 (Claude Code)\".\n\n```go\ntype Codex struct {\n\t// Bin is the codex executable. Empty means \"codex\" from PATH.\n\tBin string\n}\n```\nCodex is the harness adapter of the OpenAI Codex CLI.\n\n```go\nfunc (c *Codex) Column() string\n```\nColumn implements Harness.\n\n```go\nfunc (c *Codex) DisableSessionStart(repo string) error\n```\nDisableSessionStart removes only the session-start hook for recovery tests.\n\n```go\nfunc (c *Codex) HookConfig() HookConfig\n```\nHookConfig implements Harness. The hooks of the user and the Chainloop hooks share one file.\n\n```go\nfunc (c *Codex) Run(ctx context.Context, req RunRequest) (*RunOutput, error)\n```\nRun implements Harness. It runs \\`codex exec\\` with the JSON output.\n\nThe configuration folder of Codex (CODEX\\_HOME) is next to the workspace, so the configuration, the hooks, the skills and the sessions of the user who runs the suite do not load or mix with the sessions of the suite. The sandbox and the approvals are off, because the workspace is a throwaway repository. The project hooks run with no persisted trust. --ignore-user-config is not set, because it also turns off the project hooks.\n\nHook messages are not extracted from the headless event stream yet.\n\n```go\nfunc (c *Codex) SkillPath(name string) string\n```\nSkillPath implements Harness. Codex finds project skills in .agents/skills.\n\n```go\nfunc (c *Codex) TraceFlag() string\n```\nTraceFlag implements Harness.\n\n```go\nfunc (c *Codex) Version(ctx context.Context) (string, error)\n```\nVersion implements Harness.\n\n```go\ntype Config struct {\n\t// Harnesses are keyed by the column name in the feature table.\n\tHarnesses map[string]HarnessConfig `json:\"harnesses\"`\n\t// ModelDriven is the default repeat of a model-driven feature (R-006).\n\tModelDriven Repeat `json:\"modelDriven\"`\n\t// Features override the repeat of a feature, keyed by feature name.\n\tFeatures        map[string]Repeat `json:\"features\"`\n\tScenarioTimeout Duration          `json:\"scenarioTimeout\"`\n\tParallel        int               `json:\"parallel\"`\n}\n```\nConfig is the configuration of the suite.\n\n```go\nfunc LoadConfig(data []byte) (*Config, error)\n```\nLoadConfig reads the suite configuration. A nil data reads the embedded config.yaml.\n\n```go\ntype Copilot struct {\n\t// Bin is the copilot executable. Empty means \"copilot\" from PATH.\n\tBin string\n}\n```\nCopilot is the harness adapter of GitHub Copilot CLI. The Copilot agent in VS Code reads the same hook file, but it has no headless mode, so the suite runs the CLI only.\n\n```go\nfunc (c *Copilot) Column() string\n```\nColumn implements Harness.\n\n```go\nfunc (c *Copilot) DisableSessionStart(repo string) error\n```\nDisableSessionStart implements Harness. It deletes the sessionStart entry from the Trace hook file and keeps the other entries as they are.\n\n```go\nfunc (c *Copilot) HookConfig() HookConfig\n```\nHookConfig implements Harness. Copilot reads every JSON file in .github/hooks, so the hook of the user is in its own file.\n\n```go\nfunc (c *Copilot) Run(ctx context.Context, req RunRequest) (*RunOutput, error)\n```\nRun implements Harness. It runs \\`copilot -p\\`, trusts the workspace, and approves all tools, because a headless run cannot answer a trust or permission question.\n\nCOPILOT\\_HOME is a folder next to the workspace, so the configuration, the user hooks and the sessions of the user who runs the suite do not load or mix with the sessions of the suite. The Trace hooks run in the same environment, so the provider reads the session log from that folder too. The CLI then has no stored login: it reads a token from COPILOT\\_GITHUB\\_TOKEN, GH\\_TOKEN or GITHUB\\_TOKEN.\n\nThe headless output does not show the hook responses, so the hook messages are not reported.\n\n```go\nfunc (c *Copilot) SkillPath(name string) string\n```\nSkillPath implements Harness. Copilot finds project skills in .github/skills.\n\n```go\nfunc (c *Copilot) TraceFlag() string\n```\nTraceFlag implements Harness.\n\n```go\nfunc (c *Copilot) Version(ctx context.Context) (string, error)\n```\nVersion implements Harness.\n\n```go\ntype Cursor struct {\n\t// Bin is the cursor-agent executable. Empty means \"cursor-agent\" from\n\t// PATH.\n\tBin string\n}\n```\nCursor is the harness adapter of the Cursor CLI (cursor-agent).\n\n```go\nfunc (c *Cursor) Column() string\n```\nColumn implements Harness.\n\n```go\nfunc (c *Cursor) DisableSessionStart(repo string) error\n```\nDisableSessionStart implements Harness. It deletes the sessionStart entry from the hooks of the project file and keeps the other entries as they are.\n\n```go\nfunc (c *Cursor) HookConfig() HookConfig\n```\nHookConfig implements Harness. The hooks of the user and the Chainloop hooks share one file.\n\n```go\nfunc (c *Cursor) Run(ctx context.Context, req RunRequest) (*RunOutput, error)\n```\nRun implements Harness. It runs \\`cursor-agent -p\\` with the stream-json output.\n\nHOME is a folder next to the workspace, so the configuration, the user hooks (~/.cursor/hooks.json) and the transcripts of the user who runs the suite do not load or mix with the sessions of the suite. The Trace hooks run in the same environment, so the provider reads the transcripts from that folder too. The CLI then has no stored login: it reads its key from CURSOR\\_API\\_KEY. --force approves the tool calls and --trust trusts the workspace, which a headless run cannot answer.\n\nCursor gives the session-start context to the model only, and the stream-json output does not show it, so the hook messages are not reported.\n\n```go\nfunc (c *Cursor) SkillPath(name string) string\n```\nSkillPath implements Harness. Cursor finds project skills in .cursor/skills.\n\n```go\nfunc (c *Cursor) TraceFlag() string\n```\nTraceFlag implements Harness.\n\n```go\nfunc (c *Cursor) Version(ctx context.Context) (string, error)\n```\nVersion implements Harness.\n\n```go\ntype Duration time.Duration\n```\nDuration is a time.Duration written as a Go duration string in YAML.\n\n```go\nfunc (d *Duration) UnmarshalJSON(b []byte) error\n```\nUnmarshalJSON reads a duration string such as \"5m\".\n\n```go\ntype Expected struct {\n\t// Features are the feature names in the order of the README.\n\tFeatures []string\n\t// Harnesses are the harness column names in the order of the README.\n\tHarnesses []string\n\t// contains filtered or unexported fields\n}\n```\nExpected is the expected matrix read from the feature table.\n\n```go\nfunc ParseExpected(r io.Reader) (*Expected, error)\n```\nParseExpected reads the feature tables of the Trace README. All feature tables must have the same harness columns.\n\n```go\nfunc (e *Expected) Support(feature, harness string) (Support, bool)\n```\nSupport returns the value of the cell of a feature and a harness column. The second result is false when the table has no such cell.\n\n```go\ntype Feature struct {\n\t// ControlPlane is true for a feature that needs a control plane. The suite\n\t// runs in local storage mode only, so its cells are \"not covered\" (D-007).\n\tControlPlane bool\n\t// NotCovered is the reason why the suite cannot see the feature at all,\n\t// for example because neither the user nor the evidence can observe it.\n\t// Its cells are \"not covered\".\n\tNotCovered string\n\t// ModelDriven is true for a feature that depends on the model following an\n\t// instruction. Its cells run more than once (R-006).\n\tModelDriven bool\n\t// Checks must all pass for a run of the feature to pass.\n\tChecks []Check\n}\n```\nFeature is the test definition of one feature row of the table. The key of the features map is the feature name in the table (R-002).\n\n```go\ntype Filter struct {\n\tHarnesses []string\n\tModels    []string\n\tFeatures  []string\n}\n```\nFilter limits a manual run to some harnesses, models or features (R-009). An empty list matches all.\n\n```go\nfunc (f Filter) Empty() bool\n```\nEmpty reports whether the filter matches all cells. Only a run with an empty filter is a full run.\n\n```go\ntype Harness interface {\n\t// Column is the column name of the harness in the feature table.\n\tColumn() string\n\t// TraceFlag is the flag of `chainloop trace init` that selects the\n\t// harness, for example \"--claude\".\n\tTraceFlag() string\n\t// Version returns the installed version of the harness.\n\tVersion(ctx context.Context) (string, error)\n\t// Run runs one headless session and returns its output. An error means\n\t// that the session could not run, not that a feature failed.\n\tRun(ctx context.Context, req RunRequest) (*RunOutput, error)\n\t// HookConfig describes the hook configuration file of the harness.\n\tHookConfig() HookConfig\n\t// DisableSessionStart removes the session-start hook that `trace init`\n\t// installed in the repository, so that a session starts with no\n\t// session-start hook.\n\tDisableSessionStart(repo string) error\n\t// SkillPath returns the file of a project skill, relative to the\n\t// repository root.\n\tSkillPath(name string) string\n}\n```\nHarness adapts one coding agent. It is the only part of the suite that knows the agent (R-011).\n\n```go\ntype HarnessConfig struct {\n\t// Version is the pinned harness version (D-013).\n\tVersion string `json:\"version\"`\n\t// Models are the models that the suite runs the harness with (D-009).\n\tModels []string `json:\"models\"`\n}\n```\nHarnessConfig pins a harness column and lists its models.\n\n```go\ntype HookConfig struct {\n\t// Path is the file of the Chainloop hooks, relative to the repository\n\t// root.\n\tPath string\n\t// ChainloopMarker is a text that only a Chainloop hook in the file holds.\n\tChainloopMarker string\n\t// UserPath is the file of the hook of the user, relative to the\n\t// repository root. Empty means Path: the hooks share one file.\n\tUserPath string\n\t// UserConfig is the content of the user file with one hook of the user\n\t// and no Chainloop hook.\n\tUserConfig string\n\t// UserMarker is a text that only the hook of the user holds.\n\tUserMarker string\n}\n```\nHookConfig describes the files where the harness reads its hooks.\n\n```go\nfunc (c HookConfig) UserFile() string\n```\nUserFile returns the file of the hook of the user.\n\n```go\ntype HookMessage struct {\n\t// Event is the hook event, for example SessionStart.\n\tEvent string\n\t// UserMessage is the text that the harness shows to the user.\n\tUserMessage string\n\t// ModelContext is the text that the harness gives to the model.\n\tModelContext string\n}\n```\nHookMessage is a message that a Trace hook returned to the harness.\n\n```go\ntype OpenCode struct {\n\t// Major is the major version of OpenCode that the column covers.\n\tMajor string\n\t// Bin is the opencode executable. Empty means \"opencode\" from PATH.\n\tBin string\n}\n```\nOpenCode is the harness adapter of OpenCode. One adapter serves one major version, which is one column of the feature table.\n\n```go\nfunc (o *OpenCode) Column() string\n```\nColumn implements Harness.\n\n```go\nfunc (o *OpenCode) DisableSessionStart(repo string) error\n```\nDisableSessionStart implements Harness. It changes the session.created handler of the plugin, so that the session-start hook never runs.\n\n```go\nfunc (o *OpenCode) HookConfig() HookConfig\n```\nHookConfig implements Harness. The Chainloop plugin is a file of its own, so the plugin of the user is in another file.\n\n```go\nfunc (o *OpenCode) Run(ctx context.Context, req RunRequest) (*RunOutput, error)\n```\nRun implements Harness. It runs \\`opencode run\\` with the JSON output. Each session gets a private server (--standalone): the shared background server keeps the environment and the plugins of the directory that started it. --auto approves the tool calls, which a headless run cannot answer.\n\nThe plugin posts the instruction and the reminder of Trace to the session as synthetic messages, which the run output does not show. Run exports the session after the run and reads them from the export.\n\n```go\nfunc (o *OpenCode) SkillPath(name string) string\n```\nSkillPath implements Harness.\n\n```go\nfunc (o *OpenCode) TraceFlag() string\n```\nTraceFlag implements Harness.\n\n```go\nfunc (o *OpenCode) Version(ctx context.Context) (string, error)\n```\nVersion implements Harness. \\`opencode --version\\` prints \"opencode v2.0.22\". An installed major version that is not the one of the column is an error, because the cells would test the wrong column.\n\n```go\ntype Pi struct {\n\t// Bin is the pi executable. Empty means \"pi\" from PATH.\n\tBin string\n}\n```\nPi is the harness adapter of the Pi coding agent.\n\n```go\nfunc (p *Pi) Column() string\n```\nColumn implements Harness.\n\n```go\nfunc (p *Pi) DisableSessionStart(repo string) error\n```\nDisableSessionStart implements Harness. It disables both paths that call the session-start hook: the Pi lifecycle event and the before-agent fallback.\n\n```go\nfunc (p *Pi) HookConfig() HookConfig\n```\nHookConfig implements Harness. The Chainloop extension is a file of its own, so the extension of the user is in another file.\n\n```go\nfunc (p *Pi) Run(ctx context.Context, req RunRequest) (*RunOutput, error)\n```\nRun implements Harness. It runs \\`pi -p\\` with the JSON output.\n\nThe configuration folder of Pi and its session folder are next to the workspace, so the extensions, the skills and the settings of the user who runs the suite do not load, and the sessions of the suite do not mix with the sessions of the user. --approve trusts the project files of the workspace, which hold the Chainloop extension.\n\nThe Chainloop extension gives its instruction and reminder to the model as hidden context, which the run output does not show. Until the suite reads them from the session file, the hook messages are not reported.\n\n```go\nfunc (p *Pi) SkillPath(name string) string\n```\nSkillPath implements Harness. Pi finds project skills in .agents/skills.\n\n```go\nfunc (p *Pi) TraceFlag() string\n```\nTraceFlag implements Harness.\n\n```go\nfunc (p *Pi) Version(ctx context.Context) (string, error)\n```\nVersion implements Harness. \\`pi --version\\` prints \"1.3.0\".\n\n```go\ntype Repeat struct {\n\tRuns      int `json:\"runs\"`\n\tThreshold int `json:\"threshold\"`\n}\n```\nRepeat sets how many times a cell runs and how many runs must pass.\n\n```go\ntype Result struct {\n\tSchemaVersion int       `json:\"schema_version\"`\n\tStartedAt     time.Time `json:\"started_at\"`\n\tCLIVersion    string    `json:\"cli_version\"`\n\t// Full is true for a run with no filter. Only a full run becomes the\n\t// previous result of the next comparison (R-009).\n\tFull  bool   `json:\"full\"`\n\tCells []Cell `json:\"cells\"`\n}\n```\nResult is the result matrix of one run.\n\n```go\nfunc (r *Result) Problems() []Cell\n```\nProblems returns the cells that show a problem of the suite, not of Trace: a feature with no check, or a scenario that could not run (R-008).\n\n```go\ntype ResultStore struct {\n\tDir string\n}\n```\nResultStore keeps the result matrices of the runs in a directory.\n\n```go\nfunc (s ResultStore) Previous() (*Result, error)\n```\nPrevious returns the result of the last full run, or nil when there is none.\n\n```go\nfunc (s ResultStore) Save(res *Result) (string, error)\n```\nSave writes the result to the history and, for a full run, makes it the previous result of the next run. It returns the path of the history file.\n\n```go\ntype RunOutput struct {\n\t// Raw is the full output of the harness process.\n\tRaw []byte\n\t// Hooks are the hook messages that the harness reported, in order. A\n\t// harness that does not report them leaves it empty.\n\tHooks []HookMessage\n\t// HooksReported is true when the harness reports hook messages in its\n\t// headless output. When it is false, a check on a hook message is \"not\n\t// covered\" (R-004).\n\tHooksReported bool\n}\n```\nRunOutput is what a harness showed during a session.\n\n```go\ntype RunRequest struct {\n\t// Dir is the repository the session runs in.\n\tDir string\n\t// Model is the model of the session, as the harness names it.\n\tModel string\n\t// Prompt is the only user prompt of the session.\n\tPrompt string\n\t// Env is the environment of the harness process.\n\tEnv []string\n\t// Wrapper is a command that runs the harness, for example\n\t// `chainloop trace run --local --claude --`. Empty runs the harness\n\t// directly.\n\tWrapper []string\n\t// Images are PNG images that the user pastes with the prompt.\n\tImages [][]byte\n}\n```\nRunRequest is one headless session of a harness.\n\n```go\ntype Runner struct {\n\tExpected  *Expected\n\tConfig    *Config\n\tHarnesses []Harness\n\tFilter    Filter\n\t// ChainloopBin is the chainloop CLI under test.\n\tChainloopBin string\n\tCLIVersion   string\n\t// WorkDir holds the workspaces and the harness output of each session.\n\tWorkDir string\n\tLogf    func(format string, args ...any)\n}\n```\nRunner expands the expected matrix into scenario sessions, runs them, and builds the result matrix.\n\n```go\nfunc (r *Runner) Run(ctx context.Context) (*Result, error)\n```\nRun runs the suite and returns the result matrix.\n\n```go\ntype Scenario struct {\n\tName string\n\t// Seed are the files of the repository before the session, by path.\n\tSeed map[string]string\n\t// Prompt is the only user prompt of the session.\n\tPrompt string\n\t// Checkout is the checkout where the agent commits and pushes, relative\n\t// to the workspace base. Empty means the repository of the workspace.\n\tCheckout string\n\t// Images are PNG images that the user pastes with the prompt.\n\tImages [][]byte\n\t// Skills are the project skills of the repository, by name. The harness\n\t// gives the path of each skill file.\n\tSkills map[string]string\n\t// NoAgent runs no harness session. The checks run commands in the\n\t// workspace themselves.\n\tNoAgent bool\n\t// NoInit skips `chainloop trace init` in the workspace.\n\tNoInit bool\n\t// WrapTraceRun runs the harness with `chainloop trace run --local`.\n\tWrapTraceRun bool\n\t// SeedUserHooks writes a hook configuration of the harness with one hook\n\t// of the user before `chainloop trace init`.\n\tSeedUserHooks bool\n\t// DisableSessionStart removes the session-start hook after\n\t// `chainloop trace init`.\n\tDisableSessionStart bool\n\t// Branch is a branch that the session works on, created from main and\n\t// pushed before the session. Empty means main. Trace reads only the\n\t// commits that are not on the default remote branch, so a later push\n\t// finds the commits of the session only on another branch.\n\tBranch string\n\t// FollowUp runs git commands of a human in the checkout after the session,\n\t// for example a commit and a second push. The checks read the session\n\t// that the last push stored.\n\tFollowUp func(ctx context.Context, w *Workspace, checkout string) error\n}\n```\nScenario is a scripted task in a throwaway repository. One session runs one scenario, and the checks of all the features that it touches read its result (D-008). Scenarios are shared by all harnesses (R-011).\n\n```go\ntype Session struct {\n\tScenario  string\n\tModel     string\n\tHarness   Harness\n\tWorkspace *Workspace\n\t// Checkout is the checkout where the agent committed and pushed.\n\tCheckout string\n\tOutput   *RunOutput\n\t// Stored is the session that the push stored in local storage mode.\n\tStored *StoredSession\n\t// HeadMessage is the message of the last commit of the checkout: the\n\t// commit that the agent made, or the commit of the follow-up.\n\tHeadMessage string\n\t// HeadSHA is the last commit of the checkout.\n\tHeadSHA string\n}\n```\nSession is the result of one scenario session.\n\n```go\ntype Status string\n```\nStatus is the outcome of one cell of the result matrix.\n\n```go\nconst (\n\tStatusPass Status = \"pass\"\n\tStatusFail Status = \"fail\"\n\t// StatusSkipped is a cell that the feature table marks \"No\" or \"Not\n\t// applicable\" (R-002).\n\tStatusSkipped Status = \"skipped\"\n\t// StatusNotCovered is a cell that the suite cannot test: the feature needs\n\t// a control plane (D-007), or the headless mode of the harness cannot show\n\t// it (R-004).\n\tStatusNotCovered Status = \"not_covered\"\n\t// StatusNoCheck is a feature row with no registered check. It is a suite\n\t// problem (R-002, R-008).\n\tStatusNoCheck Status = \"no_check\"\n\t// StatusError is a cell whose scenario could not run, for example because\n\t// the harness did not start. It is a suite problem (R-008).\n\tStatusError Status = \"error\"\n)\n```\n\n```go\ntype StoredSession struct {\n\t// Dir is the directory of the stored session.\n\tDir string\n\t// Evidence is the AI coding session evidence.\n\tEvidence aicodingsession.Evidence\n}\n```\nStoredSession is one session that the pre-push hook stored in local storage mode.\n\n```go\nfunc StoredSessions(checkout string) ([]StoredSession, error)\n```\nStoredSessions reads the sessions that local storage mode stored in a checkout. Each session directory holds the AI coding session evidence among its materials.\n\n```go\nfunc (s *StoredSession) HasStatement() bool\n```\nHasStatement reports whether the stored session has its statement index.\n\n```go\nfunc (s *StoredSession) Material(digest string) ([]byte, error)\n```\nMaterial returns the stored content of a material, by its digest.\n\n```go\ntype Support string\n```\nSupport is the value of one cell of the feature table.\n\n```go\nconst (\n\tSupportYes           Support = \"Yes\"\n\tSupportPartial       Support = \"Partial\"\n\tSupportNo            Support = \"No\"\n\tSupportUnknown       Support = \"Unknown\"\n\tSupportNotApplicable Support = \"Not applicable\"\n)\n```\n\n```go\nfunc (s Support) Tested() bool\n```\nTested reports whether the suite tests a cell with this value. \"No\" and \"Not applicable\" cells are skipped (R-002).\n\n```go\ntype Workspace struct {\n\t// Dir is the repository.\n\tDir string\n\t// Env is the environment of every command in the workspace, the harness\n\t// included: the chainloop binary under test first in PATH, and an\n\t// isolated git configuration.\n\tEnv []string\n\t// Chainloop is the chainloop CLI under test.\n\tChainloop string\n}\n```\nWorkspace is a throwaway git repository with Trace in local storage mode, and a local bare remote to push to.\n\n```go\nfunc NewWorkspace(ctx context.Context, base, chainloopBin string, h Harness, sc Scenario) (*Workspace, error)\n```\nNewWorkspace creates a workspace under base for a scenario. It writes the seed files, runs \\`chainloop trace init --local\\` for the harness unless the scenario says no, commits the result and pushes it, so the session starts from a clean, pushed tree.\n\n```go\nfunc (w *Workspace) Git(ctx context.Context, args ...string) (string, error)\n```\nGit runs a git command in the repository and returns its output.\n\n```go\nfunc (w *Workspace) TraceInit(ctx context.Context, h Harness) (string, error)\n```\nTraceInit runs \\`chainloop trace init --local\\` for the harness in the repository.\n\n```go\nfunc (w *Workspace) TraceUninstall(ctx context.Context) (string, error)\n```\nTraceUninstall runs \\`chainloop trace uninstall\\` in the repository.\n\n","path":"github.com/chainloop-dev/chainloop/app/cli/internal/trace/e2e","name":"e2e","synopsis":"Package e2e is the end-to-end test suite of Chainloop Trace (spec issue-3635).","isRedistributable":true}
