Repository navigation
release: 3.13.158 — security + TCP + Kafka + Frond + ORM + CodeQL - #295
Merged
Merged
Conversation
An AI harness reached for QueryBuilder.skip() and hit a wall: only limit(count, offset?) existed, with offset trapped as a positional arg. Add offset() (SQL-native), skip() (alias of offset - the Mongo/Eloquent name, matches the DocStore cursor + to_mongo()'s skip key) and take() (alias of limit - the Eloquent name, pairs with skip). Flows to both the SQL get() path and to_mongo() with no further wiring. Real-SQLite tests (positive + negative + Mongo-path), mutation-proven. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Andre van Zuydam <andrevanzuydam@gmail.com>
A Kafka Queue consumer with confluent-kafka committed a record only when its payload had a top-level "id". Records produced outside Tina4 (CDC, other services) have none: they were popped as job id "unknown", never committed, and every restart or rebalance replayed the topic. Two in-flight records that shared a payload id also shared one commit slot, so acknowledging the first committed past the second while it was still being processed. The connector now tracks each polled record by topic:partition:offset (dequeue_record()), and Queue acknowledges by that key. A job with no payload id takes the record key as its id instead of "unknown". The public dequeue() and acknowledge-by-payload-id are unchanged. Closes #274 Signed-off-by: Michael <michael@codeinfinity.co.za>
Keeps _dequeue() under the complexity baseline the metrics gate enforces. Signed-off-by: Michael <michael@codeinfinity.co.za>
tina4-python had no static code-scanning gate. Adds CodeQL (python, build-mode none) on every PR into v3, every push to v3, and weekly. SHA-pinned to github/codeql-action v3, matching the repo's action-pinning convention. The config paths-ignores tests/, benchmarks/ and example/ (all non-shipped) so the scan stays on the framework (tina4_python/) and produces signal, not noise. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Andre van Zuydam <andrevanzuydam@gmail.com>
… ADR-0102) A user-facing, in-process raw TCP listener for non-HTTP binary protocols (driving case: GPS/GPRS car-tracker gateways). Folds into the asyncio accept loop beside HTTP (D1), with callback handlers on_connect/on_data/on_close and an optional on_line convenience (D2/D3), a uniform connection object (D5), a name-keyed registry for server->device push via send_to/connection/broadcast (D4), max_connections refusal, an idle reaper (default OFF), graceful-shutdown drain, bounded write backpressure, and single-owner bind under multiple workers. Public surface: tcp_service(port, ...) and tcp(name), in tina4_python.tcp. Wired into both the built-in server loop and the production ASGI lifespan. Tests: 21 real-socket, no-mock cases (2 boot a real framework child server); every guarded behaviour proven a gate by mutation. Full suite green at HEAD (6292 passed, 0 failed; local skips are service-backed, unchanged by this work). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Co-Authored-By: Tina4 <82961293+tina4stack@users.noreply.github.com> Signed-off-by: Andre van Zuydam <andrevanzuydam@gmail.com>
Writes a manual QA / UAT test plan as xlsx, PDF and an agent prompt, for any Tina4 project or other web app. Generalised from a personal skill: discovery covers all four backends and tina4-js, and priorities and clean-up no longer assume the app handles money and stock. Everything lives under references/ because the installers fetch only SKILL.md and references/. openpyxl and reportlab are tools for this skill and are never added to a framework or an app. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Tina4 <82961293+tina4stack@users.noreply.github.com> Signed-off-by: Jacques van Zuydam <jtvanzuydam@gmail.com>
…ollect Three Frond fixes found during AI-agent evals, all at cross-framework parity. - date filter (#292, ADR-0103): accept Twig/PHP date() letters, not only strftime. `date("Y-m-d")` used to print the letters back ("Y-m-d"); now it renders the date and matches `date("%Y-%m-%d")`. A format containing % stays strftime (back-compatible); any other format maps PHP letters (Y y m n d j H G h g i s A a D l M F N w) with hardcoded English names so the output is identical across all four frameworks regardless of host locale. - unclosed {% block %} (#286, #290, ADR-0104): a block left open — or a cut-short {% endblock % missing its %} — now raises TemplateSyntaxError naming the block, instead of silently rendering an empty block and serving 200. This flips #271's deliberate "don't raise" contract to fail-loud (the user's call: "fail loud for AI"), while staying bounded so the #271 hang cannot return. The #271 regression guard is updated to assert "raises AND does not hang". - frond.js form.collect (#348): a <select multiple> yielded only its first selected option (el.value); it now iterates el.selectedOptions so every chosen value is sent. Verified in a real browser DOM (no mocks). Tests: real, no mocks, each mutation-proved. Full Frond suite green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Co-Authored-By: Tina4 <82961293+tina4stack@users.noreply.github.com> Signed-off-by: Andre van Zuydam <andrevanzuydam@gmail.com>
The README did not say how to install the Tina4 AI skills. This also gives the pull request a new push, so its checks run again and the CLA check can read the agreement comment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Tina4 <82961293+tina4stack@users.noreply.github.com> Signed-off-by: Jacques van Zuydam <jtvanzuydam@gmail.com>
…w5-3v3c) Pick up the tina4-css fix so frond.js no longer leaks the signed-in Bearer token cross-origin. Skills reference note updated to say the token auto-attaches to same-origin requests only. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Andre van Zuydam <andrevanzuydam@gmail.com>
…67-j89x-2v35) The /__dev_reload upgrade applied the Host allow-list but not the raw socket-peer check the /__dev HTTP gate uses, so a remote peer could open the reload socket by claiming Host: localhost. _dev_socket_host_ok now also calls dev_peer_allowed on the ASGI and built-in-server upgrade paths. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Andre van Zuydam <andrevanzuydam@gmail.com>
RequestLoggerMiddleware.after_log logged request.url, which carries the query string, so OAuth codes, reset tokens and API keys passed as query parameters reached the log. Log request.path instead (PHP, Ruby and the default server line already do). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Andre van Zuydam <andrevanzuydam@gmail.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Andre van Zuydam <andrevanzuydam@gmail.com>
…o feature/release3.13.158
…feature/release3.13.158
…es' into feature/release3.13.158
…ctmulti' into feature/release3.13.158 # Conflicts: # example/src/public/js/frond.js # tina4_python/public/js/frond.js
Version bump, refreshed metrics baseline, CHANGELOG. Consolidates security + TCP(142) + Kafka + Frond + ORM + CodeQL. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Andre van Zuydam <andrevanzuydam@gmail.com>
…CodeQL The re-vendored frond.js/frond.min.js (same-origin + select-multiple) needs matching provenance hashes for the release-evidence gate. Remove the advanced codeql.yml: GitHub default setup is enabled on the repo and rejects advanced SARIF, so default setup does the scanning. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Andre van Zuydam <andrevanzuydam@gmail.com>
The prior commit's git-add aborted on the already-removed codeql pathspec, so the provenance change never staged. frond.js/frond.min.js now match the vendored combined bundle. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Andre van Zuydam <andrevanzuydam@gmail.com>
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.
Consolidated release 3.13.158
Bundles the security batch with the TCP, Kafka, Frond, ORM and CodeQL clusters so all four frameworks ship on one version. Version-bearing files bumped to 3.13.158, metrics baseline refreshed, CHANGELOG + release notes updated.
Security (advisories resolved in this release)
formToken(GHSA-q2gc-fpw5-3v3c)Features
date()letters (ADR-0103), fail-loud unclosed blocks (ADR-0104),<select multiple>collectskip()/offset()/take()Every new fix has a real, no-mock test proven by mutation. Full suites run on CI.
Supersedes (folded in by merge)
🤖 Generated with Claude Code