Skip to main content

Draft candidate Context Compiler directives from natural-language input.

Project description

Context Compiler Directive Drafter

Draft candidate Context Compiler directives from natural-language input.

This package is a drafting layer. Its outputs are non-authoritative.

context-compiler-directive-drafter can suggest candidate directives that a host may present, inspect, or route for further handling. It does not apply directives, mutate authoritative state, or replace context-compiler.

Only context-compiler applies directives and mutates authoritative state.

What this package is for

Natural-language user requests are often close to a directive without being in the exact canonical form expected by deterministic state machinery.

This package is intended to help hosts:

  • draft candidate directives from natural-language input
  • keep drafting separate from authoritative state mutation
  • make it explicit when output is only a suggestion
  • preserve a clear handoff to context-compiler

What this package is not for

This package does not:

  • mutate authoritative compiler state
  • apply directives directly
  • override context-compiler decision rules
  • silently convert uncertain natural language into authoritative changes

The model or drafting layer may propose. Only context-compiler may apply.

Status

This repository contains the copied experimental directive-drafting implementation that previously lived alongside context-compiler.

The current public package surface is intentionally narrow:

  • copied preprocessor API at context_compiler_directive_drafter
  • packaged prompt resources for installed integrations
  • integration examples and tests that preserve the current drafting behavior

Drafting remains non-authoritative. Only context-compiler applies validated directives and mutates authoritative state.

Quickstart

Install dependencies with uv:

uv sync --group dev

Run the current CLI placeholder:

uv run directive-drafter "please make replies concise"

Current CLI behavior still returns a non-zero exit status and explains that general natural-language drafting flow is not yet exposed as a broader user-facing command workflow.

Development

Run the local checks:

uv run pre-commit run --all-files
uv run pytest

Release Publishing

PyPI publishing is configured through GitHub Actions trusted publishing.

Documentation philosophy

This repository follows the same documentation philosophy as context-compiler:

  • explain user-visible behavior before architecture in README-style docs
  • keep specification and contract language precise where guarantees matter
  • treat examples and tests as part of the project contract when they describe intended behavior

Testing philosophy

This repository follows the same testing philosophy as context-compiler:

  • favor fast, focused tests over broad but vague coverage claims
  • add or update tests for user-facing behavior changes
  • keep drafting behavior explicit, inspectable, and contract-driven
  • do not weaken tests to accommodate ambiguous implementation shortcuts

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

context_compiler_directive_drafter-0.1.0.tar.gz (103.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file context_compiler_directive_drafter-0.1.0.tar.gz.

File metadata

File hashes

Hashes for context_compiler_directive_drafter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f8b26efeebedc66821a80f7aa3d436066bc2073918d62f9e02b75ac44177a67c
MD5 d0f226db3cb2579d344396572dc69640
BLAKE2b-256 d080e2715af893fb9677f785b3e4521870891ed36fab4af2a3fa8fd3a6352b26

See more details on using hashes here.

Provenance

The following attestation bundles were made for context_compiler_directive_drafter-0.1.0.tar.gz:

Publisher: publish-pypi.yml on rlippmann/context-compiler-directive-drafter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file context_compiler_directive_drafter-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for context_compiler_directive_drafter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6142022cbcc85d8edff252d7aa2aeb0f9876fc8e800df32c6828aa884fea2c62
MD5 14b80ae66ab8ba53a3cae119a8b92ee0
BLAKE2b-256 15380d75db6b253e4dab85a7c2c3225ed1ecd382b6e084540b41c692b5545e33

See more details on using hashes here.

Provenance

The following attestation bundles were made for context_compiler_directive_drafter-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on rlippmann/context-compiler-directive-drafter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page