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-compilerdecision 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.
- Release workflow: .github/workflows/publish-pypi.yml
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file context_compiler_directive_drafter-0.1.0.tar.gz.
File metadata
- Download URL: context_compiler_directive_drafter-0.1.0.tar.gz
- Upload date:
- Size: 103.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8b26efeebedc66821a80f7aa3d436066bc2073918d62f9e02b75ac44177a67c
|
|
| MD5 |
d0f226db3cb2579d344396572dc69640
|
|
| BLAKE2b-256 |
d080e2715af893fb9677f785b3e4521870891ed36fab4af2a3fa8fd3a6352b26
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
context_compiler_directive_drafter-0.1.0.tar.gz -
Subject digest:
f8b26efeebedc66821a80f7aa3d436066bc2073918d62f9e02b75ac44177a67c - Sigstore transparency entry: 1718295546
- Sigstore integration time:
-
Permalink:
rlippmann/context-compiler-directive-drafter@d30972638703b2516bcd582bd469fa8fe8ebbe09 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/rlippmann
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@d30972638703b2516bcd582bd469fa8fe8ebbe09 -
Trigger Event:
release
-
Statement type:
File details
Details for the file context_compiler_directive_drafter-0.1.0-py3-none-any.whl.
File metadata
- Download URL: context_compiler_directive_drafter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 48.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6142022cbcc85d8edff252d7aa2aeb0f9876fc8e800df32c6828aa884fea2c62
|
|
| MD5 |
14b80ae66ab8ba53a3cae119a8b92ee0
|
|
| BLAKE2b-256 |
15380d75db6b253e4dab85a7c2c3225ed1ecd382b6e084540b41c692b5545e33
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
context_compiler_directive_drafter-0.1.0-py3-none-any.whl -
Subject digest:
6142022cbcc85d8edff252d7aa2aeb0f9876fc8e800df32c6828aa884fea2c62 - Sigstore transparency entry: 1718295785
- Sigstore integration time:
-
Permalink:
rlippmann/context-compiler-directive-drafter@d30972638703b2516bcd582bd469fa8fe8ebbe09 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/rlippmann
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@d30972638703b2516bcd582bd469fa8fe8ebbe09 -
Trigger Event:
release
-
Statement type: