Repository navigation
release: 1.5.1 to main - #378
Merged
Merged
Conversation
Story 1 of epic #359. Tests only — no production code changes, no route, output or partner-facing file differs. The epic moves the Appwrite delivery write behind a gateway. Nothing can be substituted for a contract nobody wrote down, so this records the one the port actually has, in Feathers' sense: what it does today, not what it should do. Three of the five adapted store methods had no test at all. The fake store carried no `get_latest_file_id` and no `get_file_metadata`, and the upload helper discarded the port's return value — so `upload` could have returned None on the happy path with all 43 tests in the file still green. Recorded, with the asymmetries a substitute has to reproduce: - the five methods are not uniform: three return an OperationResult, one a bare string or None, one a bare list - `get_predictions_by_metadata` RAISES MetadataSearchIncomplete rather than reporting failure in its return value, which is the exception to this epic's headline fact and the thing a gateway author is most likely to miss - `upload` fails CLOSED on `success` and OPEN on the file id - `latest_file_id` forwards a no-match untouched; the refusal lives one layer up in delivery/findability, and must not be moved down - `file_metadata` collapses the store document to the four declared identity keys and is the only one of the five that transforms rather than forwards Also characterized as a GAP, not an endorsement: a partial upload's refusal drops the orphan's file id although the store supplies it. Tracked as #364 with an instruction in the test to invert the assertion when it is fixed. Validation, on the supported interpreter (3.11.15 in the views-models env, not the 3.10 shell default — see C-125): - tests/test_store_port.py: 77 passed, was 43 - full suite: 621 passed, 1 failed, 3 skipped, 41 xfailed. The failure is test_the_installed_runtime_dependencies_match_the_lockfile, pre-existing and confirmed failing the same way on clean development: the env holds pipeline-core 3.3.5 while the lock says 3.6.0 (views-models#757) - ruff 0.14.13: clean - ten mutations applied to production code and reverted, each caught: renaming the key the upload return reads, discarding that return, passing filters positionally, moving findability's refusal into the port, turning an empty list into None, dropping the forwarded file id, making the metadata adapter drop absent keys instead of reporting None, swallowing the search exception, adding the orphan id to the refusal, and editing the filters dict in place Four defects in the first draft of these tests, found by /code-review high and fixed here rather than shipped: an expectation built out of the actual result (so it passed on an empty dict), a filters assertion that compared a shared dict with itself, a docstring that planted a `file_id` vs `fileId` defect that does not exist, and a justification claiming findability reads a length when it iterates with `or ()`. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
…re-returns S1 (#359): characterize what the prediction store returns, including failure-by-return-value
Story 2 of epic #359. Tests only — no production code changes. This repository sets `model_path = None` on a store after constructing it, in four places, with a comment saying it suppresses an automatic filter. That read like defensive tidying. It is not, and this story measures why. Driven on the REAL DatastoreModule, offline (its constructor builds an Appwrite client and makes no request, so the injection is reachable by replacing the file manager it holds): - with model_path carrying a truthy model_name, the store does not merely ADD a name filter — it OVERWRITES one the caller supplied. A delivery asking for name="un_fao" searches for "chrome_box", the views-models directory name, with nothing in the answer saying it was rewritten. That is C-77's hazard in its most expensive form: the query that looks most specific is the one silently replaced. - model_name = "" injects nothing (the rule tests truthiness, not presence), which is the case a substitute is most likely to get wrong, because suppression then looks like it is working when it is not - with model_path cleared, the delivery's own filters pass through exactly Also recorded, at the builder level: - only FOUR of the six store-construction sites clear model_path. The two that keep it are the partner WRITE stores, deliberately - what keeps that safe is narrower than it looks: upload_data falls back to model_path.model_name when `name` is None, and the port's signature stops `name` being OMITTED but not a None or empty value passed explicitly. What covers that is the three call sites passing a declared constant — real, but not a guard, and said so rather than overclaimed - the two partners' partner-builders take different arguments on purpose (crafd a prepared AppwriteConfig, unfao the path manager), which #362 keeps. Asserted, so unifying them is a visible decision Validation on the supported interpreter (3.11.15): - pytest -k model_path: 7 passed - tests/test_store_construction.py: 29 passed, was 18 - full suite: 636 passed, 1 failed, 3 skipped, 41 xfailed. The failure is test_the_installed_runtime_dependencies_match_the_lockfile, pre-existing and failing identically on clean development (views-models#757) - ruff 0.14.13: clean - each of the four `model_path = None` lines deleted in turn: each reddens exactly the test that should catch it, four for four Five findings from /code-review high, fixed rather than shipped: - the header cited pipeline-core line numbers from the INSTALLED 3.3.5 while this repo declares >=3.6.0, and told the reader the story's own citation had moved. No 3.6.0 copy exists on this machine to check either claim, so the line numbers are gone and the rule is quoted as code instead - the guard on `name` was described as closing a hazard it only half closes - the env helper did not clear pre-existing APPWRITE_* first, which C-81 records as having made tests here pass for the wrong reason twice; it now clears, and discovers the declared tuples by shape instead of by a hand-written per-partner list - the builder-shape helper keyed on a parameter name and would have produced one false diagnosis plus three TypeErrors on a rename; it now refuses to guess - three assertions used `.get("name") == None`, which accepts both "absent" and "present and null". Those are different outcomes — an injected null scopes every query to name == None and matches nothing. Now asserts absence, and the difference was measured with a subclass rather than by modifying anything in site-packages Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
…el-path-filter S2 (#359): characterize the model_path filter semantics
Story 3 of epic #359. Pure restructuring — Fowler's two hats, no behaviour change, no new behaviour tests. The same 636 tests pass before and after. A seam you cannot switch from outside the code is not a seam (Feathers, ch. 4). The store was constructed in six places, three per partner, so there was no single point at which a later change could choose a different implementation. Each partner now has one `_datastore(config, *, keep_model_path)`. `keep_model_path` has no default, deliberately. The two settings are two different query behaviours and the wrong one is silent: - False clears model_path, suppressing pipeline-core's automatic name == model_name filter, which OVERWRITES a name the caller supplied rather than narrowing it (C-77, measured on the real store in #361) - True keeps it, which only the two partner WRITE stores want, because upload_data falls back to model_path.model_name when name is None So adding a fourth store means deciding which it is, at the call site. The two partners are NOT unified, as the story requires: `_datastore` is defined separately in each package, nothing imports it across the boundary, and both copies of store_port.py are untouched and still byte-identical. Acceptance, all checked: - `grep -rn "DatastoreModule(" views_postprocessing` returns TWO sites, one per partner, down from six - full suite 636 passed / 1 failed / 3 skipped / 41 xfailed, the same counts as before the refactor. The failure is test_the_installed_runtime_dependencies_match_the_lockfile, pre-existing and failing identically on clean development (views-models#757) - ruff 0.14.13 clean - four mutations through the new factory, each caught by exactly the right test and the right partner: the factory never suppressing; the shelf reader asking to keep; the write store asking to clear; the read-back asking to keep - no new abstraction crosses the two partners Two consequences handled rather than worked around: - tests/test_findability.py asserted this property by searching the builder's SOURCE TEXT for `store.model_path = None`. Moving that line into the factory broke the check while changing no behaviour, which is the weakness of a textual guard. #361 already added a behavioural, mutation- verified test of the same property, so the textual assertion is replaced by a structural one on the call's argument — and that one fires where the behavioural test skips, which /code-review high pointed out would otherwise have left C-77 unguarded in an environment without pipeline-core. - the factory's docstring was condensed to stay inside the manager line budget rather than raising the budget a third time this month. The reasoning it used to repeat lives in tests/test_store_construction.py, which is where it is measured. Net lines are +33, not the "slightly negative" the story expected: the epic requires the two partners to share nothing, so the factory and its explanation exist twice. Said rather than massaged. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
…y-per-partner S3 (#359): funnel the six store-construction sites into one factory per partner
`assert_audience_is_not_the_shelf` guarded its credential comparison on the operands being non-blank strings, so a blank, absent or non-string credential skipped the comparison and fell through to the success path — which logs that the two connections used "distinct projects and distinct credentials". It had compared no credentials. Shipped in 1.5.0; measured on seven input pairs. The same function already refuses exactly this shape for the shelf project id, naming the polarity C-113 was closed to fix: a gate whose input is missing reports a refusal or a skip, never a pass. The credential half did the opposite. Reachable in practice because `assert_env_declared` decides membership with `not os.getenv(name)` and a single space is truthy, so `APPWRITE_CRAFD_PUBLISHER_API_KEY=" "` passed the declaration check and this was the last place that shape could have been caught. The run would have failed as a 401 from inside the delivery, after the contract resolution, every manifest download and the 888 KB GAUL lookup. Also closes the strip asymmetry at the same seam: the function returned only the stripped project id and the manager re-read the key with a raw `os.getenv`, so the docstring's "return what was compared" argument covered one half of the connection and left the other open. It now returns a frozen `AudienceConnection` carrying both stripped halves, with named fields rather than a two-tuple — two same-typed strings unpacked positionally transpose in silence, the mirror image of the hazard that made the arguments keyword-only. Eight mutations applied to the real files and reverted, all eight caught, including the shipped 1.5.0 shape restored verbatim. Mutation M8 — log the success line before the credential checks — initially SURVIVED the whole file, including the four `assert "isolated from the shared shelf" not in caplog.text` assertions written to prove this defect fixed. The line is logged at INFO, the root logger sits at WARNING, so `caplog.text` was empty and the assertion was true of any code at all. One of the four was pre-existing, written with C-113's own fix. All four now set `caplog.at_level(logging.INFO)`, and a new test asserts the line IS captured on the happy path so the negative assertions have an anchor. Nothing delivers through this path yet (`UPLOAD_ENABLED` is False, C-126), so no run changes behaviour today. Fixed on development rather than as a 1.5.1: no one is exposed, and a patch release nothing installs costs more attention than it buys. Tracked: issue #368, register C-128 (resolved, cluster O's second discharge), ADR-018 §4 amended to state that an uncomparable pair is a refusal, and an Unreleased section in CHANGELOG.md. Suite on the supported interpreter (3.11.15): 654 passed, 3 skipped, 41 xfailed, 1 pre-existing failure (the poetry.lock drift, views-models#757). Ruff clean. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
…ion-unprovable fix: refuse an audience credential pair that cannot be compared (#368)
…write C-27) Raised by the views-models session on 2026-11-29 after it reproduced the shape in its own loader: a validator that checks a name is EXPORTED cannot see which VALUE it carries, so a function sourcing a dotenv file to read one variable silently replaced a freshly rotated APPWRITE_DATASTORE_API_KEY with the stale value the file still held (their PR #758, then #760). Nothing in this package can acquire that shape — verified, not assumed: test_env_declaration.py::test_the_dotenv_borrow_is_dead enforces the #134 removal by AST parse rather than grep and passes; exactly four modules read the environment, all os.getenv on one name at a time; and no tracked .py or .sh here is hidden from a search by .gitignore. What C-126 was missing is where the design task lives. The owning entry is views-appwrite C-27 (rotation has no propagation mechanism, open); the Appwrite Seam Contract §9 O1 owns the design and views-appwrite#9 owns the issue; the inventory is docs/ADRs/platform/key_inventory_and_rotation.md, read at bf39b3c. That commit sits on an unmerged branch, so the entry says the pin may move and to re-resolve rather than trust it. The peer cited O1 as belonging to that document. It does not — it is a Seam Contract section the document references. Cited correctly here rather than as relayed, and the foreign C-27 is namespaced per this register's convention. Also records what that document settles so this entry does not re-open it: it is not a rotation mechanism, and it names this repository's test_credential_expiry.py as already correct, calling a second tripwire "building the wrong thing to feel busy". So the expiry remedy stays C-84's date on a calendar, now agreed across two repositories. No code change. Suite unchanged: 654 passed, 3 skipped, 41 xfailed, 1 pre-existing failure (the poetry.lock drift, views-models#757). Ruff clean. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
…carry it Sharpened after the views-models session gave the precise location. Verified in the local views-appwrite checkout rather than relayed: - the hazard is §3.1, "Sourcing a dotenv file to read one name silently reinstates every other name in it" — confirmed present at the pinned commit - the pin moves bf39b3c -> 419b6e9, the current head of that branch - the branch is the head of views-appwrite PR #217, OPEN against development, so the entry now names the PR as the durable handle and says both the commit and the section number may move Two citation corrections, both in the direction of claiming less: - the rule "assert the value that arrives, not that a name exists" appears in NO FILE at 419b6e9. It is that commit's subject line. Cited as a commit subject, because quoting it as a document rule would be inventing a citation. - the "four independent instances of one shape" count is marked relayed rather than checked. This register has measured two: its own assert_env_declared and views-models' loader. No code change. Suite unchanged. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
docs: C-126 gains the other end of the rotation blind spot (views-appwrite C-27)
…p was taken as evidence
The views-appwrite session corrected this within the day. The rule
"Assert the value that arrives, never that a name exists" is §3.1 rule 2 of
docs/ADRs/platform/key_inventory_and_rotation.md, in the body, at the commit this
register pinned. Verified here before correcting: line 195 at 419b6e9, line 210 at
23cdf21, so the entry now cites the section and rule number and forbids citing a
line number.
Why it was recorded as a commit subject instead. The search was
`git grep -n "assert the value that arrives"` — case-sensitive, for the wording of
the commit SUBJECT ("not that a name exists"), against a body that says "NEVER that
a name exists" and starts the rule with a capital A. Two near misses in one command,
returning a confident "no match" on text that was there. That is rule 2 restated as
a search: the command reported on the name of the thing rather than the thing. The
defect recorded is not the wrong citation; it is that a negative grep result was
taken as evidence.
Two things on that branch since the pin change what this entry must say:
- d1d43cb attaches a PROHIBITION to rule 2 — verification must not render the value,
and a digest is not an escape hatch, because a short secret's digest is
brute-forceable. This matters for us specifically: assert_env_declared is safe to
log precisely because it never reads the value, and a well-meant change applying
rule 2 without the prohibition would remove that. Verified today that we already
satisfy it and that test_the_environment_refusal_logs_names_and_never_values pins
the consequence with a sentinel secret — and recorded that the test guards the
OUTPUT, not the property.
- 48f3747 adds the COUNTERWEIGHT — applying rule 3 destroys information, since a
mistyped key and an unset key then arrive as the same absence (views-models C-202).
This entry endorsed the unset on the asymmetry argument, so it must carry the price
of that endorsement rather than recommend the rule alone.
23cdf21 records this repository's structural immunity as a guard shape to copy, for
the reason this entry already gave: it parses rather than greps, and the shell's grep
skips .gitignore-matched paths. Our own mis-citation is that hazard in milder form.
The count of four instances stays relayed, not checked. We have measured two.
views-appwrite reports checking two itself at views-models d05f050d and labels the
rest read, so nobody has claimed four as measured.
No code change. Suite unchanged: 654 passed, 3 skipped, 41 xfailed, 1 pre-existing
failure (the poetry.lock drift, views-models#757). Ruff clean.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
views-appwrite added our generalisation to §3.1 as `8c6685a`: "a negative result from a search is evidence about the search, not about the code." Verified here at that commit WITH A POSITIVE CONTROL, case-insensitively, on a short distinctive fragment — which is the practice the lesson prescribes, and the practice whose absence produced the mis-citation this entry records. That session reports it closed a gap in its own records: the grep-skips-.gitignore note was filed as a tooling quirk and §3.1 as a credential hazard, and they are one shape. Both near misses are recorded there, theirs and ours, on the grounds that one alone reads as carelessness and two read as a mechanism. Same reason this entry keeps its own. Pin 23cdf21 -> 8c6685a; "three further commits" -> five. Re-checked here rather than relayed: §3.1's heading (line 145) and rule 2's numbering (line 210) are unchanged across all five commits since the original pin — only line numbers moved, which is why this entry already forbids citing one. No code change, no new ask: this rides on the existing PR #373. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
…orrections docs: correct C-126 — the rule IS in the document, and a negative grep was taken as evidence
…217 merged) One stale sentence. C-126 said the pinned commit was on an unmerged branch; it is on `development` as of 2026-11-29, merge commit 79181cd. Verified here rather than relayed, and the verification is the part worth keeping: #217 merged with a MERGE COMMIT, not a squash, so `git merge-base --is-ancestor` returns true on development for both 8c6685a (what C-126 pins) and the original 419b6e9. A squash would have made both unreachable and left the entry pointing at nothing — the ordinary way a pinned cross-repo citation dies. Also re-checked, not taken on trust: §3.1's heading is at line 145 and rule 2 at line 210 on development, identical to their positions across all five commits of that branch. Only line numbers ever moved, which is why the entry cites section and rule number and forbids citing a line. The paragraph is corrected rather than rewritten, so the record shows it claimed the opposite while #217 was open. No code change, and nothing depends on this landing. Suite unchanged: 654 passed, 3 skipped, 41 xfailed, 1 pre-existing failure (views-models#757). Ruff clean. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
…of ours (#339) Both `product.py` declarations and the CRAF'd CIC named views-appwrite#171 — the absence of a non-production Appwrite project — as the live gate on arming. It was answered **yes** on 2026-11-11 at þing-04 G2: the operator created a test project that day. Verified against views-appwrite `main` before writing, at all three places it is recorded (coordinate registry `[test_environment]`, seam contract §144 and the superseded þing-02 A3(h) row), tag `appwrite-seam-v1.9.3` / `2e59ba2`. So for twenty days these files told anyone deciding whether to arm a delivery that they were blocked by something that no longer existed. The gate is now stated as a fact of ours — *the upload path has never run against a real store* — with #171's answer recorded as history. What each delivery actually lacks is named separately, because the two write with different keys: CRAF'd with `APPWRITE_CRAFD_PUBLISHER_API_KEY`, whose scopes nothing has exercised; FAO with `APPWRITE_DATASTORE_API_KEY` (`pipeline-core-writer`), whose `files.write` and `documents.write` are #332, and whose retained fallback expired 2026-11-17 (C-84). New register entry **C-129** — the recurrence is the finding. This is the fourth measured instance of a gate citation pointing at a sibling repository's issue and going stale with no event here, and the **second** time these same two files have done it: the 2026-08-26 falsification audit (S5) found two such citations and fixed them by moving both onto #171, which then got answered too. The remedy re-created the mechanism, because what was wrong was never which gate was named. No mechanism is added. Nothing here watches a sibling's issue state, and C-107's ADR-014 §3 objection applies to any scan that would; C-129's trigger is a review step. The 2026-08-12 and 2026-07-20 precondition history moves out of the two docstrings into C-129, which is also what brought `crafd/` back inside its 760-line package budget rather than raising the bound. This does NOT say whether either delivery may now be armed, and does not touch `UPLOAD_ENABLED` — both stay `False`. #171 answered the project question; whether the write path has been exercised is a separate matter and still open. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
docs: C-126's citation target is on views-appwrite's development now (#217 merged)
docs: views-appwrite#171 was answered yes — state the gate as a fact of ours (#339)
The credential-isolation fix (#368) and the store-factory refactor (#359) have been on `development` since 2026-11-29 with no tag, while both views-models launchers install by tag. So the fix was written, reviewed, merged and not shipped — `pyproject.toml` still said 1.5.0, which is what production installs. `tests/test_release_version.py` requires the declared version and the tag to agree, so the number moves here, before the tag is cut on `main`. Contents, against 1.5.0: - `contract/audience.py`, `crafd/managers/crafd.py` — #368. A blank, absent or non-string credential on either half of the audience connection is now a refusal instead of a skipped comparison followed by a success log. Both halves of the connection are returned checked and stripped rather than the caller re-reading the raw value. - `unfao/managers/unfao.py`, `crafd/managers/crafd.py` — #360/#361/#362. One store factory per partner, replacing six construction sites. Pure restructuring; its own commit records the same 636 tests passing before and after, and the two partners are deliberately not unified. Consumer-visible surface: unchanged. No new environment values, no new required coordinates, and the UN-FAO delivery path behaves identically. A launcher that exports a real key sees no difference. CHANGELOG's 1.5.1 section says so and is accurate for both changes. Suite on the supported interpreter (3.11.15): 654 passed, 3 skipped, 41 xfailed, 1 failed — the pre-existing lockfile drift tracked as views-models#757, which is an environment install and not in this diff. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
release: 1.5.1 — the #368 fix has been untagged since Sunday
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge
developmentintomainso the release tag can be cut where every prior tag sits.mainhas been 18 commits behinddevelopment. The gap holds one code fix, one refactor, and documentation.What crosses into main
contract/audience.py,crafd/managers/crafd.py. Register C-128.product.pydeclarations and the CRAF'd CIC stop naming views-appwrite#171 as the live gate on arming; it was answered yes on 2026-11-11. Register C-129.pyproject.toml1.5.0→1.5.1, sotests/test_release_version.pypasses when the tag is cut.Why this matters more than a routine sync
Both views-models launchers install this package by git tag, and both pin
1.5.0. The #368 fix has therefore been merged-but-unshipped since 2026-11-29:pyproject.tomlstill declared1.5.0, which is what production installs. Nothing was exposed, becausedeliveries/un_crafd.pydeclaresintent = paused(...)and the CRAF'd partner store is never constructed — but the fix was not in production and the record implied it was.Consumer surface
Unchanged. No new environment values, no new required coordinates, and the UN-FAO delivery path behaves identically. A launcher exporting a real key sees no difference between 1.5.0 and 1.5.1.
Verification
pytest -qon the supported interpreter (3.11.15): 654 passed, 3 skipped, 41 xfailed, 1 failed — the pre-existing lockfile drift at views-models#757, an environment install not in this diff.After this merges
1.5.1atmain.VIEWS_POSTPROCESSING_PINwhen convenient. Not forced: CRAF'd is paused and the FAO path is identical.🤖 Generated with Claude Code
https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9