pitfallop

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package pitfallop owns the focused authored-pitfall creation operation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Finish

func Finish(outcome Outcome, operationErr, releaseErr error) error

Finish classifies caller-owned lease release after Create has returned and before either the complete or partial document is rendered.

Types

type Outcome

type Outcome struct {
	SourcePath  string
	ResiduePath string
}

Outcome retains every committed fact from one authored-pitfall creation.

func Create

func Create(ctx context.Context, title string, tx *projectmutation.Transaction) (outcome Outcome, err error)

Create validates a tracked transaction, selects Session-bound authority, and exclusively publishes one authored pitfall through its confined handle. It deliberately performs no synchronization or generated-output mutation.

func (Outcome) Document

func (o Outcome) Document() (presentation.Document, error)

Document returns the complete owner-produced creation report.

type PartialError

type PartialError struct {
	projectmutation.Partial[Outcome]
}

PartialError retains a committed authored source and any cleanup residue together with the original post-commit cause and safe recovery policy.

func (*PartialError) Document

func (e *PartialError) Document() (presentation.Document, error)

Document returns the owner-produced partial report with exact committed and residue paths plus ordered recovery actions.

Jump to

Keyboard shortcuts

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