Skip to content

v5.35.0

Choose a tag to compare

@github-actions github-actions released this 23 Oct 15:12
· 2033 commits to main since this release
415eb03

Added

  • Added a changelog fragment contract that validates names, bodies and paths
    under changelog.d/ and compiles accepted entries into the matching
    [Unreleased] sections in a stable order (#1220).
  • Added per-change changelog fragments so parallel pull requests can record
    release notes in separate files (#1220).

Changed

  • The wrap's changelog-update step asks for a changelog fragment,
    changelog.d/<issue>.<slug>.<type>.md, instead of an edit to CHANGELOG.md,
    and its coverage gate accepts a correctly named fragment, dirty or committed,
    as the changelog being maintained; a misnamed file under changelog.d/ is
    reported as unlogged work, never accepted. A direct [Unreleased] edit still
    passes for a pull request opened before this one merged (#1220).
  • A wrap that cuts a release now compiles every fragment under changelog.d/
    into [Unreleased] before deciding the bump level, and commits the promoted
    CHANGELOG.md, the bumped version file and the fragments' deletion as one
    commit. A refused fragment stops the cut, naming the file and its code. Every
    release file's prior bytes and index entry are recorded under
    .tangleclaw/release-recovery/<run id>/ before the flush; any halt before the
    commit lands puts them back, and while a record remains no cut is made (#1220).
  • The repository's test suite now checks every fragment under changelog.d/
    on every run, so a file the contract refuses fails the pull request that
    adds it rather than the next release cut. The CI gate that would require a
    fragment on every code change is recorded in docs/release-process.md as a
    proposal the Operator has not ruled on, not in force; the pre-boundary
    transition (a direct [Unreleased] edit still accepted) stays while
    pull requests #2385 and #2217 remain open, tracked by #2523 (#1220).

Fixed

  • A pull request that only logs its work no longer conflicts with another's
    changelog entry at merge: each entry is its own file under changelog.d/
    until the release compiles them into [Unreleased], so parallel branches
    stop serializing on CHANGELOG.md (#1220).
  • The wrap's feature index (features-toc) no longer offers a FEATURES.md
    stub for a changelog fragment: changelog.d/ joins the shared source-file
    classifier's exclusions, so a session that only logged its work is not asked
    to index the log. A misnamed file under the directory is still reported as
    unlogged work by the coverage gate's own rule (#2519).

Internal

  • The HTTP kernel (route table, responders, body parser, URL and query helpers) and the /api/audit/* and /api/sidecar/* route family moved out of server.js into lib/routes/_kernel.js and lib/routes/audit.js unchanged; docs/areas.json maps every source path to one named area, and two tests keep the map total and every route reachable (#2248 S01, Part of #2248).
  • The /api/sessions/:project/wrap/* route family and its two payload shapers (_wrapResultPayload, _wrapStreamFrame) moved out of server.js into lib/routes/wrap.js unchanged; the entry point registers them at the position they held and hands over the three gate helpers they still call; docs/areas.json's wrap area owns the new file (#2248 S02, Part of #2248).
  • The session lifecycle routes (POST/DELETE /api/sessions/:project, status, startup-prompt/fire, command, finalize, peek, clipboard, history) moved out of server.js into lib/routes/sessions.js, the launch recovery routes (launch/recovery-clear, launch/recovery-held, launch/recovery-clear-batch, launch/reconciliation) into lib/routes/launch-recovery.js, and the caller-identity helpers they share (_callerProjectId, _operatorProofOf, _requireOperatorWrite, _requireOperatorRead) into lib/routes/_callers.js, all unchanged; the entry point registers each family at the position it held, hands the lifecycle routes the four things they still use from server.js, and binds the three gate helpers the proofs call; docs/areas.json's sessions, launch and kernel areas own the new files (#2248 S03, Part of #2248).
  • The twelve /api/openclaw/* routes (connections and their :id, version, tunnel and approve-pending forms, detect-instance-dir, test) and the helpers they share with the entry point's proxies (_leaseConnectionPort, _runOnGatewayHost, resolveOpenclawPort, resolveOpenclawPortDirect, _stripFrameBlockers, _isClientAttributionHeader, _openclawProxyHeaders, _openclawWsRequestLines, proxyToOpenclaw) moved out of server.js into lib/routes/openclaw.js unchanged; the entry point registers the family at the position it held, reads the six helpers its request and upgrade dispatchers still call from the module, and keeps both header builders on its export surface; docs/areas.json's openclaw area owns the new file (#2248 S04, Part of #2248).
  • The seven /api/setup/* routes (https-check, ingress-state, provision-status, generate-cert, scan, create-dir, complete), the host-list validation they share (HOST_RE, _certHostListArg) and the two test seams only that family reads (the restart scheduler and the ingress-cutover spawner, with their setters) moved out of server.js into lib/routes/setup.js unchanged; the entry point registers the family at the position it held, hands over the three helpers other families still share (_decideSetupCredential, _gateIngress, _signIn), and keeps both seam setters on its export surface; docs/areas.json's setup area owns the new file (#2248 S05, Part of #2248).
  • The two /api/config routes (GET, PATCH) and the helpers only that family holds — the secret redaction (redactConfigSecrets), the install's prior-use answer fixed at boot with its test seam (_bindPriorUse, _installPriorUse, _setInstallPriorUse), the bind state and protected roots attached to every config response (_withBindState, _protectedRoots) and the Master-settings validation (_masterTightenedBlindError, validateMasterPatch) — moved out of server.js into lib/routes/config.js unchanged; the entry point registers the family at the position it held, hands over the two helpers other families still share (_decideSetupCredential, _gateIngress), reads the prior-use answer through the module at boot and keeps the seam setter on its export surface; three requires whose only readers moved left server.js; docs/areas.json's config area owns the new file and leaves shared.holds (#2248 S06, Part of #2248).
  • The tc route family — the launch sequence (start/next, start/ready, start/status, start/review) and the rules-delivery receipt, the lane's workload write and read and the operator's narrowing, the governed coordinator rotation with /api/rotations and /api/coordinator-roles, whoami, sessions, and the check watches (/api/tc/check-watches*) — moved out of server.js into lib/routes/tc.js unchanged with the helpers only it holds; the coordinator epoch gate (coordinatorGateRefused) and the engine-thread reader it asks (_engineThread) moved to lib/routes/_callers.js, where every family that applies the gate reaches it; the entry point registers the family at the position its first route held, hands over the activity observer and reads back the admission fields, the awareness receipt and the lane composition; four requires whose only readers moved left server.js; docs/areas.json's tc area owns the new file and leaves shared.holds (#2248 S07, Part of #2248).
  • The store's shared database handle and its helpers, the schema with its one ordered migration chain, and the activity log moved out of lib/store.js into lib/store/_db.js, lib/store/_schema.js and lib/store/activity.js unchanged; lib/store.js is now the facade that opens the database, binds every module to the one handle and re-exports what moved under the same names, so nothing that requires the store changes (#2248 T01, Part of #2248).
  • The sessions domain of the store (sessionsApi, the session status vocabulary and its transition map, and the row mappers that read a session's launch blocker and launch baseline) moved out of lib/store.js into lib/store/sessions.js unchanged; the facade binds it from init(), hands it the two launch-domain helpers it still calls, and re-exports the same names, so nothing that requires the store changes (#2248 T02, Part of #2248).
  • The session-rules domain of the store (sessionRulesApi with its lifecycle helpers, status allow-list and version retention, the rule-delivery ledger sessionRuleDeliveriesApi with its retention, the conflict-candidate token helper, and the rule and rule-version row mappers) moved out of lib/store.js into lib/store/session-rules.js unchanged; the facade binds it from init(), hands it the projects api it still calls, and re-exports the same names, so nothing that requires the store changes (#2248 T03, Part of #2248).
  • The launch domain of the store moved out of lib/store.js unchanged into two modules: lib/store/launch.js (launch sequences and their step ids, the project recovery state, the recovery clearances and their batches) and lib/store/handoffs.js (handoff publications, the per-project handoff epoch and its missing-row reason code). The facade binds both from init(), hands the launch module the sessions vocabulary it filters on, and re-exports the same names; lib/store/sessions.js now requires the two directly instead of receiving them through its binding, which shrinks to the handle (#2248 T04, Part of #2248).
  • Test files now declare a tier in test/tiers.json — small (no subprocess, no database, no socket listen), medium (no subprocess) or large — checked by node scripts/test-tiers.js --check (every test/*.test.js exactly once, none declared faster than its text allows) and enforced at run time by test/helpers/preload-small.js and preload-medium.js, which refuse the act and fail the file even when product code swallows the refusal; docs/test-pyramid.md explains the tiers (#2498 W4-01, Refs #2498).
  • The suite now has one entry point per stage: node scripts/test-stage.js <1|2|3|4|5|all> runs the static checks (Stage 1), a tier under its guard (3 to 5) or the whole suite exactly as test_command does (all), and ends every test run by reconciling the junit report with the runner's own summary through lib/test-results.js (testcases + testsuites must equal tests + suites; a failure the summary does not count reads red); Stage 2 says it is not built yet (#2498 W4-02, Refs #2498, Refs #2371).
  • scripts/suite-evidence.js, the suite command a gate could be pointed at for #2371, is built and declared nowhere: its default mode runs today's test_command argument for argument; with TANGLECLAW_SUITE_EVIDENCE=ci it establishes the ten facts of scripts/ci-evidence.js for the exact head, downloads CI's own junit report as the run's test-results artifact, runs the complement, and writes the two reports merged and bound by <property> facts, or refuses by name and writes nothing (no synthetic report in any path). docs/lane-ci-evidence.md describes it and rewrites the PROPOSED, NOT IN FORCE section against it; the exact Operator-held cutover (workflow upload step, test_command line, rule replacement texts) is the activation packet. test.yml, project-state.yaml, every gate and every rule are unchanged, and tests pin that they are.
  • Stage 2 of the test pyramid is built: node scripts/test-stage.js 2 (or node scripts/test-touched.js --run) selects the test files a diff reaches through one text walker of the require graph (scripts/_require-graph.js: relative and rooted requires, product paths a test names, source reads) and runs each tier under its guard; it fails closed, exiting 1 with every reason named and ESCALATE: run stage 3 when a changed file is not JavaScript, is a shared test helper or fixture, is reached by no test, or could be reached through a dynamic require, and the runner then runs Stage 3 whole and says so. The dead-export audit (node scripts/audit-dead-exports.js) reports the lib/ exports nothing reads, the ones only tests read and the tests that alone read them; Stage 1 gains its --check, a ratchet against the tracked test/dead-exports-baseline.json that refuses any new dead export, a stale, malformed or duplicated baseline, and graph uncertainty. docs/test-pyramid.md describes both (#2498 W4-04, Refs #2498).
  • Two audit reports for test consolidation, both zero-dependency and report-only. node scripts/audit-test-redundancy.js --tier small runs each file of a tier alone under its guard with node's own line coverage, and lists the files that execute no product line the rest do not, one set of them retirable together, and the files that execute none. node scripts/audit-source-readers.js sorts every test that reads product source as text into guard, lift and regex-of-behaviour, the last split by whether a runtime test loads the file it reads. docs/test-pyramid.md describes both; the removal batches are #2548 and #2549 (#2498 W4-05, Refs #2498).
  • .testament.toml, the manifest Testament reads to run the three test tiers on a pool of machines, generated from test/tiers.json with each tier's own stage command by node scripts/test-tiers.js --testament; Stage 1's --check refuses a manifest that differs from it. Not run here: the pool is Operator infrastructure, and docs/test-pyramid.md outlines its setup (#2498 W4-06, Fixes #2498).