keelspec 0.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- keelspec-0.7.0/.gitignore +9 -0
- keelspec-0.7.0/CHANGELOG.md +404 -0
- keelspec-0.7.0/LICENSE +201 -0
- keelspec-0.7.0/NOTICE +4 -0
- keelspec-0.7.0/PKG-INFO +356 -0
- keelspec-0.7.0/README.md +328 -0
- keelspec-0.7.0/RELEASING.md +81 -0
- keelspec-0.7.0/action.yml +59 -0
- keelspec-0.7.0/copier.yml +34 -0
- keelspec-0.7.0/examples/quickstart/build/product.generated.json +32 -0
- keelspec-0.7.0/examples/quickstart/product/rules/BR-idempotent.md +5 -0
- keelspec-0.7.0/examples/quickstart/product/terms/TERM-ledger.md +5 -0
- keelspec-0.7.0/examples/quickstart/product/terms/TERM-payment.md +7 -0
- keelspec-0.7.0/examples/quickstart/product.config.yaml +17 -0
- keelspec-0.7.0/keelspec/__init__.py +92 -0
- keelspec-0.7.0/keelspec/cli.py +239 -0
- keelspec-0.7.0/keelspec/coding.py +364 -0
- keelspec-0.7.0/keelspec/config.py +61 -0
- keelspec-0.7.0/keelspec/diagnostics.py +100 -0
- keelspec-0.7.0/keelspec/engine.py +237 -0
- keelspec-0.7.0/keelspec/evidence.py +194 -0
- keelspec-0.7.0/keelspec/index.py +333 -0
- keelspec-0.7.0/keelspec/lsp.py +341 -0
- keelspec-0.7.0/keelspec/mcp.py +220 -0
- keelspec-0.7.0/keelspec/orchestration.py +648 -0
- keelspec-0.7.0/keelspec/plugin.py +82 -0
- keelspec-0.7.0/keelspec/runners.py +407 -0
- keelspec-0.7.0/keelspec/watch.py +117 -0
- keelspec-0.7.0/pyproject.toml +100 -0
- keelspec-0.7.0/template/.github/workflows/product-validate.yml.jinja +23 -0
- keelspec-0.7.0/template/README.md.jinja +56 -0
- keelspec-0.7.0/template/product/features/FEAT-example.md.jinja +22 -0
- keelspec-0.7.0/template/product/terms/TERM-example.md.jinja +8 -0
- keelspec-0.7.0/template/product.config.yaml.jinja +32 -0
- keelspec-0.7.0/template/product_hooks.py.jinja +88 -0
- keelspec-0.7.0/template/tests/test_example.py.jinja +13 -0
- keelspec-0.7.0/tests/test_keelspec.py +1549 -0
- keelspec-0.7.0/tests/test_surfaces.py +409 -0
- keelspec-0.7.0/tests/test_template.py +120 -0
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to KeelSpec, published as `fastpdlc` up to and including
|
|
4
|
+
0.6.3. Entries below 0.7.0 use the old name; a changelog is a record, not a
|
|
5
|
+
description of the present. The format follows
|
|
6
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project follows
|
|
7
|
+
[semantic versioning](https://semver.org/).
|
|
8
|
+
|
|
9
|
+
**Diagnostic codes are API.** A `PAC-NNN` is never renumbered — a check that changes
|
|
10
|
+
meaning gets a new code and the old one is retired. Changing the JSON bundle shape, a
|
|
11
|
+
config key, or the plugin `Registry` surface is a breaking change and bumps the major.
|
|
12
|
+
|
|
13
|
+
## [0.7.0] — 2026-09-14
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- **Renamed: FastPDLC is now KeelSpec**, and the package is `keelspec`. A keel is
|
|
18
|
+
laid first and everything else is attached to it, which is what "intent first, in
|
|
19
|
+
the same PR" means; a keel also resists drift, which is what `PAC-060` reports.
|
|
20
|
+
The `fastpdlc` package has been removed from PyPI rather than aliased — it had no
|
|
21
|
+
installs outside this author's own repositories, and an alias kept alive for nobody
|
|
22
|
+
is a second name to maintain forever. The CLI is `keelspec`; the GitHub Action is
|
|
23
|
+
`tarvitave/keelspec`.
|
|
24
|
+
|
|
25
|
+
**Diagnostic codes are untouched.** `PAC-` stands for product-as-code, not for the
|
|
26
|
+
product's name, so every code survives the rename — which is the behaviour the
|
|
27
|
+
never-renumber rule promises.
|
|
28
|
+
|
|
29
|
+
- **Relicensed to Apache-2.0**, from LGPL-3.0-or-later. LGPL's protection assumes
|
|
30
|
+
C-style linking; under pip "the user may substitute a modified version" is already
|
|
31
|
+
true, so the practical obligation was near zero while the word LGPL sits on
|
|
32
|
+
enterprise blocklists. Apache-2.0 also grants patents explicitly. Versions up to
|
|
33
|
+
0.6.3 remain LGPL-3.0-or-later.
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
|
|
37
|
+
- **`__version__` was stuck at 0.4.0** while `pyproject.toml` shipped 0.6.1, 0.6.2 and
|
|
38
|
+
0.6.3, so `keelspec.__version__` had been lying for three releases. Both now read
|
|
39
|
+
from the same bump.
|
|
40
|
+
|
|
41
|
+
### Added
|
|
42
|
+
|
|
43
|
+
- **Concept routing per station** — `OpenAIRunner(concepts=STATION_CONCEPTS)` sends a
|
|
44
|
+
different concept header for each station, where `extra_headers` alone is fixed for
|
|
45
|
+
a whole run. The ROSTER's `model` column is a policy table written in Python; this
|
|
46
|
+
moves that policy into the router's config. Off unless asked for, and the map is a
|
|
47
|
+
plain dict because those names belong to the router operator's catalogue.
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
- **`keelspec validate --watch`** — the same gate, re-run whenever a `product/` file,
|
|
51
|
+
the config or the committed bundle changes. Polling, so the core keeps its two
|
|
52
|
+
dependencies. Not a gate: it never exits non-zero, because a red tree you are
|
|
53
|
+
mid-fix should not kill the terminal you are fixing it in.
|
|
54
|
+
|
|
55
|
+
- **`keelspec lsp`** — a language server over the product graph: diagnostics,
|
|
56
|
+
completion, hover, go-to-definition, find-references, workspace symbols. Needs
|
|
57
|
+
`pip install 'fastpdlc[lsp]'`. A VS Code client lives in `editors/vscode/` and is
|
|
58
|
+
deliberately a shim — it launches the server and owns no logic.
|
|
59
|
+
|
|
60
|
+
Completion offers only values the validator would accept, because it reads the same
|
|
61
|
+
config: the ids of the type a reference field must resolve to, or an enum's members.
|
|
62
|
+
|
|
63
|
+
Diagnostics are `validate`'s, computed from the files **on disk** — so they refresh
|
|
64
|
+
on save, not per keystroke. An editor validating the unsaved buffer would be a
|
|
65
|
+
second opinion about correctness, and this project cannot have two judges.
|
|
66
|
+
|
|
67
|
+
- **`keelspec mcp`** — the same graph as six read-only tools for a coding agent:
|
|
68
|
+
`product_schema`, `product_list`, `product_get`, `product_allowed_values`,
|
|
69
|
+
`product_references_to`, `product_validate`. Needs `pip install 'fastpdlc[mcp]'`.
|
|
70
|
+
Read-only on purpose: a server that could also write would let the thing being
|
|
71
|
+
judged edit the evidence.
|
|
72
|
+
|
|
73
|
+
- **`keelspec.index`** — the resolved graph with source positions, shared by both
|
|
74
|
+
surfaces so the lookups exist once. `ProductIndex`, `Artifact`, `Edge` and
|
|
75
|
+
`Location` are exported from the package root.
|
|
76
|
+
|
|
77
|
+
- **The scaffold demonstrates traceability**, which is the claim worth evaluating.
|
|
78
|
+
`copier copy` now produces a feature whose acceptance criterion names a test, the
|
|
79
|
+
test it names, and a `product_hooks.py` that resolves the reference — so the first
|
|
80
|
+
thing a new user can do is rename that test and watch the build fail with PAC-902.
|
|
81
|
+
It previously scaffolded a glossary and a business rule, which demonstrated
|
|
82
|
+
cross-reference checking: true, useful, and the least distinctive thing here.
|
|
83
|
+
|
|
84
|
+
Still two types, not eight. The `rules` example is dropped rather than added to —
|
|
85
|
+
the point lands faster with a glossary to point at and a feature that has to prove
|
|
86
|
+
itself. `tests/test_template.py` gates the README's demo, error code included.
|
|
87
|
+
|
|
88
|
+
- `Diagnostic` gained optional `field` and `value`, naming the frontmatter key a
|
|
89
|
+
finding is about and the offending value within it. `validate --json` reports them.
|
|
90
|
+
Additive: `Report.add`'s existing positional signature is unchanged, so plugin
|
|
91
|
+
validators keep working untouched.
|
|
92
|
+
|
|
93
|
+
### Fixed
|
|
94
|
+
|
|
95
|
+
- The reference graph is now typed at both ends. Ids are unique only *within* a type
|
|
96
|
+
— which is exactly what `PAC-012` says — so a graph keyed on the bare id silently
|
|
97
|
+
merged a feature with the spec sharing its name. Nothing user-visible changed in
|
|
98
|
+
`validate`, which never used such an index; the new surfaces would have inherited
|
|
99
|
+
the bug.
|
|
100
|
+
|
|
101
|
+
## [0.6.3] — 2026-09-02
|
|
102
|
+
|
|
103
|
+
### Fixed
|
|
104
|
+
|
|
105
|
+
- **`OpenAIRunner`/`OpenAICodingRunner` no longer send `temperature` by default.** The Claude 5
|
|
106
|
+
family rejects it as a deprecated param with a 400 (`\`temperature\` is deprecated for this
|
|
107
|
+
model`), which sank a gateway-routed build at station one; it also isn't needed for structured
|
|
108
|
+
stations. Pass `temperature=<n>` explicitly to opt back in for a model/endpoint that still wants
|
|
109
|
+
it. (Found via a live gateway build once the router surfaced the upstream reason.)
|
|
110
|
+
|
|
111
|
+
## [0.6.2] — 2026-09-02
|
|
112
|
+
|
|
113
|
+
### Fixed
|
|
114
|
+
|
|
115
|
+
- **Portable structured output across gateway-routed providers.** `OpenAIRunner` no longer sends the
|
|
116
|
+
OpenAI `response_format=json_object` param by default — a gateway that routes to Anthropic returns a
|
|
117
|
+
**400** on it (surfacing as `all_candidates_failed … upstream 400`). Instead it asks for a JSON
|
|
118
|
+
object in the prompt and parses the reply with `extract_json_object`, which tolerates a ```json
|
|
119
|
+
fence or a little surrounding prose. Opt back into strict `response_format` with `json_mode=True`
|
|
120
|
+
when the endpoint supports it (e.g. OpenAI proper). The coding runner's final structured call does
|
|
121
|
+
the same. `runners.extract_json_object` is public.
|
|
122
|
+
|
|
123
|
+
## [0.6.1] — 2026-09-02
|
|
124
|
+
|
|
125
|
+
### Fixed
|
|
126
|
+
|
|
127
|
+
- **Gateway failures are now diagnosable.** `openai_chat` surfaces the HTTP error *body* in the
|
|
128
|
+
raised message — a bare `502 Bad Gateway` from a router is useless, whereas the body usually
|
|
129
|
+
names the real cause (an upstream/BYOK failure, a too-large `max_tokens`, an unsupported param).
|
|
130
|
+
- **`OpenAIRunner` guards non-object JSON.** A smaller/gateway-routed model can return a bare JSON
|
|
131
|
+
string or list under `json_object` mode; the runner now raises a clear error (naming the type and
|
|
132
|
+
the first chars) instead of letting a `str` crash a downstream `.get()`.
|
|
133
|
+
- **Safer default `max_tokens` for gateway use:** `OpenAIRunner` defaults to 8192 (was 16000) and
|
|
134
|
+
`OpenAICodingRunner`'s loop uses 8192/4096, since many gateway-routed models cap output well below
|
|
135
|
+
16000 and reject the larger request. (The native Anthropic runners are unchanged.)
|
|
136
|
+
|
|
137
|
+
## [0.6.0] — 2026-09-02
|
|
138
|
+
|
|
139
|
+
### Added
|
|
140
|
+
|
|
141
|
+
- **OpenAI-compatible runners — the `base_url` config bridge.** `runners.OpenAIRunner` and
|
|
142
|
+
`coding.OpenAICodingRunner` run the pipeline against *any* OpenAI `/chat/completions`
|
|
143
|
+
endpoint — a routing gateway (e.g. Muchty), OpenRouter, a local vLLM/Ollama, or OpenAI
|
|
144
|
+
itself — selected purely by `base_url`. Same `run(station, prompt, schema)` contract as
|
|
145
|
+
the native Anthropic runners, so they drop into the `Orchestrator` unchanged; the Develop
|
|
146
|
+
tool loop uses OpenAI function-calling instead of Anthropic tool-use blocks. Gateway
|
|
147
|
+
routing/metadata (a concept header, a project tag) rides on `extra_headers`; the served
|
|
148
|
+
model is read back from `x-muchty-model`/`x-model` when present. stdlib-only — no SDK
|
|
149
|
+
dependency (matching `CrossProviderLens`). `runners.openai_chat` is public.
|
|
150
|
+
|
|
151
|
+
This is what makes routing a build through a model gateway a configuration choice rather
|
|
152
|
+
than a fork: point `base_url` at the gateway and the whole reasoning + code-writing line
|
|
153
|
+
runs through it, with per-provider cost/routing and BYOK billing for the build phase.
|
|
154
|
+
|
|
155
|
+
## [0.5.0] — 2026-09-02
|
|
156
|
+
|
|
157
|
+
### Added
|
|
158
|
+
|
|
159
|
+
- **`Orchestrator.run(feature, block_on_unresolved=True)` — an advisory human gate for
|
|
160
|
+
autonomous runs.** The Disambiguate station is deliberately adversarial (it will keep
|
|
161
|
+
finding underspecified axes; a more complete brief tends to yield *more* questions, not
|
|
162
|
+
fewer), and the default gate blocks the line before Design on any unresolved question —
|
|
163
|
+
the right behaviour when a human is in the loop. Passing `block_on_unresolved=False`
|
|
164
|
+
keeps recording those questions on `report.disambiguation` but lets the line **build on
|
|
165
|
+
the versioned product intent**, moving the human judgement to the concrete PR (its gates
|
|
166
|
+
and the merge) instead of a set of abstract pre-build questions. The default is unchanged,
|
|
167
|
+
so existing callers still get the blocking gate.
|
|
168
|
+
|
|
169
|
+
## [0.4.2] — 2026-09-02
|
|
170
|
+
|
|
171
|
+
### Fixed
|
|
172
|
+
|
|
173
|
+
- **A model that rejects `effort` no longer sinks the run either.** 0.4.1 handled the
|
|
174
|
+
`thinking` param; the very next live run showed the Haiku `Understand` station also
|
|
175
|
+
rejects the `output_config.effort` knob (`400 - This model does not support the
|
|
176
|
+
effort parameter`). `create_message` now strips *whichever* uniformly-sent param a
|
|
177
|
+
400 names — `thinking` (top level) or `effort` (inside `output_config`, preserving
|
|
178
|
+
the rest, e.g. the json-schema `format`) — and retries, bounded. Any error that
|
|
179
|
+
isn't a droppable-param 400 still propagates unchanged.
|
|
180
|
+
|
|
181
|
+
### Changed
|
|
182
|
+
|
|
183
|
+
- `create_message(client, base_kwargs, thinking=None)` now returns just the response
|
|
184
|
+
(was `(response, thinking_accepted)`) and is **stateless** — each call degrades
|
|
185
|
+
independently, so an Opus station still gets full thinking/effort even after a Haiku
|
|
186
|
+
station in the same run degraded. The per-runner `_thinking_supported` flag is gone.
|
|
187
|
+
New helper `runners._strip_unsupported`.
|
|
188
|
+
|
|
189
|
+
## [0.4.1] — 2026-09-02
|
|
190
|
+
|
|
191
|
+
### Fixed
|
|
192
|
+
|
|
193
|
+
- **Thinking is no longer hard-wired on — the pipeline survives a model that doesn't
|
|
194
|
+
support it.** Both runners sent `thinking={"type": "adaptive"}` on *every* station,
|
|
195
|
+
but the roster runs `Understand` (ST-01) on `claude-haiku-4-5`, which rejects that
|
|
196
|
+
param with `400 - adaptive thinking is not supported on this model`. A live run
|
|
197
|
+
therefore died at the very first station. Now, when a model rejects the thinking
|
|
198
|
+
param specifically, the call retries once without it and the runner stops sending it
|
|
199
|
+
for the rest of the process; any other 4xx still propagates unchanged. A run on a
|
|
200
|
+
provisioned key works out of the box again, with no configuration.
|
|
201
|
+
|
|
202
|
+
### Added
|
|
203
|
+
|
|
204
|
+
- **`FASTPDLC_THINKING` env var and a `thinking=` runner argument** to control extended
|
|
205
|
+
thinking explicitly. Precedence: an explicit `thinking=` passed to `ClaudeRunner` /
|
|
206
|
+
`CodingRunner` (including `None`) wins; otherwise `FASTPDLC_THINKING`; otherwise
|
|
207
|
+
adaptive. Env values: `adaptive` (default), `off`/`none`/`0`/empty to omit, or
|
|
208
|
+
`enabled:<budget_tokens>` for fixed-budget extended thinking. `runners.resolve_thinking`
|
|
209
|
+
and `runners.create_message` (the graceful-degrade `messages.create` wrapper) are public.
|
|
210
|
+
|
|
211
|
+
## [0.4.0] — 2026-08-24
|
|
212
|
+
|
|
213
|
+
### Added
|
|
214
|
+
|
|
215
|
+
- **ST-04b Clean** — a simplification station between Develop and Test. An agent
|
|
216
|
+
that has just solved a problem leaves the shape of the struggle in the code, and
|
|
217
|
+
nothing downstream ever asked whether that was the simplest form of it. Test
|
|
218
|
+
checks the behaviour is right; nobody checked the code was clean.
|
|
219
|
+
|
|
220
|
+
Deliberately narrow: no new behaviour, no changed signatures, no new dependencies.
|
|
221
|
+
A pass allowed to "improve while it is in there" is a second Develop station
|
|
222
|
+
wearing a different hat, and its changes would arrive untested.
|
|
223
|
+
|
|
224
|
+
`behaviour_preserved` is treated as a *claim*, not a fact. A Cleaner that admits
|
|
225
|
+
it could not preserve behaviour has its work dropped and the admission recorded —
|
|
226
|
+
it does not fail the run, and it does not get to ship either.
|
|
227
|
+
|
|
228
|
+
Skip it with `--no-clean` (one fewer model call per run).
|
|
229
|
+
|
|
230
|
+
- `CLEAN_SCHEMA` exported from the package root.
|
|
231
|
+
|
|
232
|
+
### Notes
|
|
233
|
+
|
|
234
|
+
The station is **inserted, not renumbered**. ST-05 through ST-10 are referenced in
|
|
235
|
+
decks, diagrams and prose elsewhere, and renumbering a stable reference to make room
|
|
236
|
+
is the same mistake as renumbering a diagnostic code — so the new station is `ST-04b`
|
|
237
|
+
and a test asserts the rest of the roster is unmoved.
|
|
238
|
+
|
|
239
|
+
Prompted by Robert Martin's five-agent assembly line (Specifier, Coder, Cleaner,
|
|
240
|
+
Hardener, QA). Of the three we lacked, Cleaner was the real gap. **Hardener** —
|
|
241
|
+
mutation-testing the tests by actually breaking the code — needs a station with a
|
|
242
|
+
shell, which is a materially larger security decision than the current file sandbox
|
|
243
|
+
and is not taken here. **QA** driving a deployed application is a test framework, not
|
|
244
|
+
a validator; pulling it in would blur the line the product rests on.
|
|
245
|
+
|
|
246
|
+
## [0.3.1] — 2026-08-24
|
|
247
|
+
|
|
248
|
+
Housekeeping. **No behaviour change** — `0.3.0` and `0.3.1` are identical to import
|
|
249
|
+
and run, and the only differences are import ordering and variable names.
|
|
250
|
+
|
|
251
|
+
`0.3.0` was published from a commit whose CI was failing. A `ruff` gate was added to
|
|
252
|
+
CI without the code having been made to pass it first, so the lint step went red on
|
|
253
|
+
its very first run — while the publish was in flight. Nothing shipped broken: all 58
|
|
254
|
+
tests passed throughout and every finding was style rather than behaviour. But a
|
|
255
|
+
released tag should point at green CI, so this is that tag.
|
|
256
|
+
|
|
257
|
+
### Changed
|
|
258
|
+
|
|
259
|
+
- Lint clean under `ruff`. Two of the fixes earn their place rather than merely
|
|
260
|
+
silencing a rule: `zip()` over the lens names and their results now passes
|
|
261
|
+
`strict=True`, which is a real assertion that the two lists cannot silently
|
|
262
|
+
diverge, and the variable `l` is renamed because it is indistinguishable from `1`
|
|
263
|
+
in most fonts.
|
|
264
|
+
|
|
265
|
+
## [0.3.0] — 2026-08-24
|
|
266
|
+
|
|
267
|
+
Quality and ergonomics. No breaking changes: every existing command behaves as it
|
|
268
|
+
did, and the additions are opt-in flags.
|
|
269
|
+
|
|
270
|
+
### Added
|
|
271
|
+
|
|
272
|
+
- **`fastpdlc validate --json`** — findings as structured output against a
|
|
273
|
+
`fastpdlc-report/1` schema. Diagnostic codes were already an API; making a
|
|
274
|
+
consumer regex the prose to find one defeated the point of having them.
|
|
275
|
+
- **`fastpdlc evidence --verify RECORD`** — recomputes every digest in a record and
|
|
276
|
+
reports what no longer matches. Content-addressing is only worth something if
|
|
277
|
+
somebody can check it; producing a record nobody can verify is a claim, not
|
|
278
|
+
evidence. Needs no key, no trust in the issuer and no network.
|
|
279
|
+
- **Orchestrator runs are kept** at `.fastpdlc/runs/<id>-<timestamp>.json`. A run
|
|
280
|
+
refuted after two repair rounds holds the four verdicts and their failing cases —
|
|
281
|
+
the most useful thing it produced. Discarding it because nothing was proposed was
|
|
282
|
+
backwards.
|
|
283
|
+
- An **opt-in integration test** (`pytest -m integration`, needs `ANTHROPIC_API_KEY`)
|
|
284
|
+
that exercises one cheap station against the real endpoint. Everything else stubs
|
|
285
|
+
the model, which meant an API change would have broken users rather than CI.
|
|
286
|
+
|
|
287
|
+
### Changed
|
|
288
|
+
|
|
289
|
+
- **`PAC-060` now names what drifted.** "the bundle is stale" tells you to run a
|
|
290
|
+
command; "2 artifact(s) differ: +BR-idempotent, TERM-ledger" tells you whether it
|
|
291
|
+
is the change you meant to make, which is the question a reviewer actually has.
|
|
292
|
+
Additions are prefixed `+`, removals `-`.
|
|
293
|
+
|
|
294
|
+
### Quality
|
|
295
|
+
|
|
296
|
+
- Library coverage **72% → 90%**, 28 → 58 tests, concentrated where it was thinnest:
|
|
297
|
+
the CLI (30 → 80%), the plugin loader (62 → 97%), the coding sandbox (40 → 82%)
|
|
298
|
+
and the runners (52 → 81%).
|
|
299
|
+
- Python 3.10 compatibility verified by parsing every module at that feature level,
|
|
300
|
+
rather than assumed from the classifier list.
|
|
301
|
+
- `ruff` config and an 85% coverage floor in CI. The floor exists to stop coverage
|
|
302
|
+
rotting, not to be gamed upward.
|
|
303
|
+
|
|
304
|
+
## [0.2.1] — 2026-08-23
|
|
305
|
+
|
|
306
|
+
Packaging only. No library changes — `0.2.0` and `0.2.1` are identical to import
|
|
307
|
+
and run.
|
|
308
|
+
|
|
309
|
+
### Changed
|
|
310
|
+
|
|
311
|
+
- **The sdist ships only the package.** `0.2.0`'s source distribution defaulted to
|
|
312
|
+
"everything not gitignored", which included the marketing site, the Terraform and
|
|
313
|
+
the deploy config — 125 files, 221 KB. It contained no secrets, but a published
|
|
314
|
+
artifact should not depend on a `.gitignore` staying correct forever, and a PyPI
|
|
315
|
+
version can be yanked and never replaced. The sdist is now an allowlist: 30
|
|
316
|
+
files, 42 KB, with no `site/`, `infra/` or `.fastpdlc/`.
|
|
317
|
+
- `0.2.0` is yanked in favour of this release. It is safe — nothing secret was ever
|
|
318
|
+
in it — but there is no reason to keep distributing the wider tarball.
|
|
319
|
+
|
|
320
|
+
### Added
|
|
321
|
+
|
|
322
|
+
- `scripts/check_no_secrets.py` — refuses credential-shaped strings in the package
|
|
323
|
+
tree, and with `--dist` in the built artifacts, plus any operational path in the
|
|
324
|
+
sdist. Runs in CI on every push and in the publish workflow immediately before
|
|
325
|
+
upload, which is the last moment a leak is still recallable.
|
|
326
|
+
|
|
327
|
+
## [0.2.0] — 2026-08-23
|
|
328
|
+
|
|
329
|
+
Two new surfaces on top of the compiler and the gate. `build` and `validate` are
|
|
330
|
+
unchanged: same two runtime dependencies, no network, still the thing CI runs.
|
|
331
|
+
|
|
332
|
+
### Added
|
|
333
|
+
|
|
334
|
+
- **`fastpdlc orchestrate`** — the agent-built lifecycle over one artifact:
|
|
335
|
+
Understand → Disambiguate → Design → Develop → Test → adversarial Verify, with a
|
|
336
|
+
bounded repair loop. Control flow is deterministic; reasoning happens inside a
|
|
337
|
+
station. Requires the new `agents` extra.
|
|
338
|
+
- **Four refuting lenses** at Verify — correctness, coverage, security, reproduce —
|
|
339
|
+
running in parallel, each defaulting to *refuted* unless convinced. Minor findings
|
|
340
|
+
deliberately do not block: a gate that fires on nitpicks gets bypassed.
|
|
341
|
+
- **`--cross-provider`** adds a fifth verdict from a non-Claude model via OpenRouter,
|
|
342
|
+
so the critic cannot share the builder's blind spots. Uses stdlib `urllib`, so the
|
|
343
|
+
core gains no dependency. Skipped without `OPENROUTER_API_KEY`; abstains rather
|
|
344
|
+
than blocking if the call fails.
|
|
345
|
+
- **`--write`** lets the Develop station edit files through a bounded tool loop
|
|
346
|
+
(list, read, write) confined to the project root. Containment is checked after path
|
|
347
|
+
resolution, so `..`, absolute paths and symlink escapes are refused rather than
|
|
348
|
+
sanitised. No shell, no network, no delete, no rename. Off by default.
|
|
349
|
+
- **`--dry-run`** exercises the whole pipeline offline with no model calls.
|
|
350
|
+
- **The human gate as a file** — `.fastpdlc/disambiguations/<id>.json`. Run one writes
|
|
351
|
+
the open questions and stops, a person fills in each `answer`, run two proceeds. A
|
|
352
|
+
blocking human gate cannot live inside one autonomous run, so it is two-phase by
|
|
353
|
+
construction. `--resolve id=answer` does the same inline.
|
|
354
|
+
- **`fastpdlc evidence`** — a content-addressed record of what was checked, when, on
|
|
355
|
+
which commit, and with what result. Every artifact, the config and the bundle carry
|
|
356
|
+
a SHA-256, so a record is verified by recomputing digests rather than by trusting
|
|
357
|
+
its issuer. Exit code follows `validate`, so CI can gate and record in one step.
|
|
358
|
+
- **`agents` extra** — `pip install 'fastpdlc[agents]'` pulls in `anthropic`. Nothing
|
|
359
|
+
else in the library needs it.
|
|
360
|
+
- Public API: `Orchestrator`, `Runner`, `Station`, `StubRunner`, `Verdict`, `ROSTER`,
|
|
361
|
+
`LENSES`, `read_resolutions`, `write_questions`, `build_record` are exported from
|
|
362
|
+
the package root.
|
|
363
|
+
|
|
364
|
+
### Fixed
|
|
365
|
+
|
|
366
|
+
- YAML parses an unquoted `date: 2026-02-04` into a `datetime.date`, which
|
|
367
|
+
`json.dumps` could not serialize — any project with a date field in frontmatter hit
|
|
368
|
+
this. Bundles now emit ISO-8601 strings. Found by using the tool on its own blog.
|
|
369
|
+
|
|
370
|
+
### Notes
|
|
371
|
+
|
|
372
|
+
The orchestrator cannot merge: its terminal state is a report, and every station past
|
|
373
|
+
the gate is deterministic or human by construction. It also cannot run tests — Develop
|
|
374
|
+
has no shell — so a passing test report is a *claim* your CI still has to check.
|
|
375
|
+
Assembling a pull request and reading production back into intent are the caller's
|
|
376
|
+
job; the library has no git and no network.
|
|
377
|
+
|
|
378
|
+
## [0.1.0] — 2026-08-22
|
|
379
|
+
|
|
380
|
+
First release. The engine extracted from the pharthing / KibiPay payments platform,
|
|
381
|
+
verified by a byte-identical parity test.
|
|
382
|
+
|
|
383
|
+
### Added
|
|
384
|
+
|
|
385
|
+
- `fastpdlc build` — compile typed artifacts into one deterministic JSON bundle
|
|
386
|
+
(sorted keys, fixed formatting, no timestamps).
|
|
387
|
+
- `fastpdlc validate` — schema, id integrity, cross-references and staleness. Exit
|
|
388
|
+
code is the CI gate.
|
|
389
|
+
- Diagnostic codes: `PAC-001` required field, `PAC-010`/`011`/`012` id integrity,
|
|
390
|
+
`PAC-020` reference resolution, `PAC-030` enum membership, `PAC-060` bundle
|
|
391
|
+
staleness.
|
|
392
|
+
- Plugins — project validators, bundle transformers, extra staleness-gated outputs,
|
|
393
|
+
and custom diagnostic codes in a project range.
|
|
394
|
+
- A reusable GitHub Action and a copier template.
|
|
395
|
+
- LGPL-3.0-or-later: copyleft on the engine, and importing it as a library does not
|
|
396
|
+
place your project under the LGPL.
|
|
397
|
+
|
|
398
|
+
[Unreleased]: https://github.com/tarvitave/fastpdlc/compare/v0.4.0...HEAD
|
|
399
|
+
[0.4.0]: https://github.com/tarvitave/fastpdlc/compare/v0.3.1...v0.4.0
|
|
400
|
+
[0.3.1]: https://github.com/tarvitave/fastpdlc/compare/v0.3.0...v0.3.1
|
|
401
|
+
[0.3.0]: https://github.com/tarvitave/fastpdlc/compare/v0.2.1...v0.3.0
|
|
402
|
+
[0.2.1]: https://github.com/tarvitave/fastpdlc/compare/v0.2.0...v0.2.1
|
|
403
|
+
[0.2.0]: https://github.com/tarvitave/fastpdlc/compare/v0.1.0...v0.2.0
|
|
404
|
+
[0.1.0]: https://github.com/tarvitave/fastpdlc/releases/tag/v0.1.0
|
keelspec-0.7.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
keelspec-0.7.0/NOTICE
ADDED