Skip to main content

tools-local-artifact pattern

OutputArtifactSummary

Describe a generated draft artifact, its inputs, local destination, source basis, and required review.

tools/local-artifact · candidate · @sanchika/patterns

Product job

Inspect what generated a draft, where it is stored, what it does not establish, and who must review it.

Describe a generated draft artifact, its inputs, local destination, source basis, and required review.

Anatomy and required fields

artifactType

Specific draft or downloaded artifact type.

artifactName

Name of the generated or downloaded output.

generatedFrom

User-entered facts or visible source basis.

generatedOutput

Bounded output created from the source or input.

destination

Browser or device location.

draftReviewStatus

Draft and review state in text.

reviewRequirement

Named professional or source review.

limitations

What the artifact does not establish.

nextAction

Inspect, copy, download, revise, clear, or retry action.

Required fields
  • artifactType
  • artifactName
  • generatedFrom
  • generatedOutput
  • destination
  • draftReviewStatus
  • reviewRequirement
  • limitations
  • nextAction

Default and edge states

generated-draft

A generated draft artifact is available.

  • generated draft
  • source input
  • review required
ready-for-review

The draft is ready for a named reviewer.

  • ready for review
  • reviewer
  • destination
copied-downloaded

The user copied or downloaded the local output.

  • copied or downloaded
  • destination
  • draft status
failed

Artifact generation failed.

  • failed
  • retained input state
  • safe retry
unavailable

The output cannot be generated safely.

  • unavailable
  • reason
  • fallback

Composed synthetic exemplar

Generated draft

Notice response outline

Built from user-entered synthetic facts and source references. No filing or approval occurred.

Inspect output contract
Destination
Browser download
Review
CA review required
Next
Open and verify sources

State coverage

Default and consequential edges remain inspectable.

generated draftA generated draft artifact is available.generated draft · source input
ready for reviewThe draft is ready for a named reviewer.ready for review · reviewer
copied downloadedThe user copied or downloaded the local output.copied or downloaded · destination
failedArtifact generation failed.failed · retained input state
unavailableThe output cannot be generated safely.unavailable · reason

Trust, source, and consumer obligations

Trust boundaries
  • Search terms, entered facts, and draft outputs stay in the browser unless a named adopter action says otherwise.
  • Every tool names its input, output, review requirement, and local or external boundary before opening.
Consumer owns
  • Provide each tool specification, runtime, source mapping, draft generation, export, storage, and any external handoff.
Responsive behavior
  • Keep draft and review labels adjacent to the artifact name.
  • Wrap actions while preserving inspect or revise before export.
Forced colors and reduced motion
  • Retain text status, result boundaries, native focus, link underlines, and selected filters using system colors.
  • Keep directory results, empty state, draft status, and next action understandable without animated filtering or confirmation.

Compact API reference

Package
@sanchika/patterns
CSS
@sanchika/patterns/styles.css
Base class
sk-pattern-output-artifact-summary
Group
tools-local-artifact