Commit Graph
10 Commits
Author SHA1 Message Date
efitenandClaude Opus 5 14df2e0438 feat: ask a repeater only while it is being heard, and refund an ask that never left
Twelve minutes of the 2026-09-11 v1.13.0 log: six region requests, one answer. The one
that was answered fired on a live reception and came back in two seconds. The other five
each charged their target an attempt and dropped it into the 5/15/30-minute backoff, so
e3d3f4d7edd0 (heard directly at 12:04:54 and 12:09:32) and 6b8c65b77cf3 (12:03:53,
12:08:02, 12:10:05) could not be asked while they were demonstrably in range.

Two separate causes, both in the ask bookkeeping rather than in the framing or the reply
matcher, and each fixed at its own site.

The 60s timer fallback is removed. selectNextTarget picked from the whole session pool
with no notion of range, which at road speed is a repeater already passed: 12:04:37 to
e470a7fd67fa, last heard 5m45s earlier, and 12:05:38 to 01fa326b4758 are the two clean
examples in the log, neither answered. Since 52b7ff5 those asks also stamp the shared
one-ask-per-60s airtime budget, so a blind ask blocked the heard path for the following
minute as well as backing its target off. maybeAskHeardTarget is now the whole
scheduler, and selectNextTarget, demoted and cursor go with the fallback they served.

A BLE write that throws now costs nothing. commitAndAsk charged attempts, lastAskedAt
and the airtime budget before the write, and askRegions only logged the rejection, so a
request that never reached the radio held the pending slot for its full 20s and then
printed "no reply ... within 20s" — indistinguishable from a repeater that heard us and
stayed silent. Two of the six asks were this: 12:00:00 and 12:02:36, both immediately
after "BLE: reconnecting". commitAsk now returns a receipt and undoAsk restores it,
refusing once the send-ack has captured a tag (that request IS on the air) or once
another target holds the slot. prepareAndAskRegions gained a try/catch for the same
reason: state.transport is nulled on disconnect and askRegions dereferences it, which
rejected unobserved and wedged the slot until it timed out.

Removing the timer removes the only line that narrated the scheduler once a minute, so
heardAskDecision reports why it said no (in flight, budget, answered, backoff, with the
remaining wait) and the heard path logs that at most once a minute. Those four states
were previously indistinguishable from each other and from silence.

Known trade-off, stated in the release notes: the stationary pause stops the discover
sweep, so a parked app now depends on organic traffic to raise a candidate. A repeater
in range that transmits nothing while you are parked next to it is no longer asked.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HSoyBhrLLtSqLgBMEKMiJV
2026-09-11 12:47:02 +02:00
Erwin FitenandClaude Opus 5 f6baeb30cc docs: release v1.13.0 — region asks that land on a repeater still in range
Minor bump: one fix (the in-flight slot that a silent repeater held for the whole
session) and one backward-compatible feature (forwarders as region-discovery
candidates, with header instrumentation on how often their prefixes resolve).

Release notes per AGENTS.md, in the same commit as the version bump.
Service-worker cache bumped v40 -> v41. No MQTT contract change.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 09:31:40 +02:00
efitenandClaude Opus 5 00ae520eec docs: release notes live in the repo and CI assembles them (closes #12)
AGENTS.md said every tag must carry a "What's New" body, cumulative, newest first. That
rule was a human convention and it was missed on twelve tags in a row: v1.6.0 through
v1.10.3 all shipped the CI-generated changelog link, so v1.5.0 was the last release
anyone could read while region discovery, the airtime budget, the retry backoff, the
FLOOD-reply warning and the AES padding fix all landed unannounced. v1.11.3 went the same
way earlier today until it was caught by hand, which is the argument against leaving it
to whoever is paying attention.

Each release now has docs/releases/vX.Y.Z.md, written in the same commit as the version
bump, so the notes are reviewed in git rather than typed into a web form afterwards.
scripts/release-notes.mjs concatenates every file from a given tag downwards, newest
first, and the release workflow publishes that as the body. A tag whose file is missing
fails the job before the build even starts, so a release without notes cannot be
published at all. generate_release_notes is gone.

The 25 files are a split of the cumulative body that v1.12.0 already carried, so no
section was rewritten. Verified by reassembling v1.12.0 from the files and diffing it
against the published body: identical once separators and blank lines are normalised.

Ordering is the one thing an assembler can get quietly wrong, and it has a test: sorting
tags as strings puts v1.9.1 above v1.10.0 and would drop a release out of the middle of
every body. Refusing an unknown tag has a test too, because that refusal is the whole
gate.

Not done: the bodies of v1.5.0 and older are left as they are, and no release title was
changed. The workflow change is unexercised until the next tag is pushed.

Tests: 260 pass (+5).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Manrn3qdrTJFz3C4o9PPFL
2026-09-09 18:11:50 +02:00
efitenandClaude Opus 4.8 1c504956e4 docs: add v1.4.0 release notes
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 16:34:30 +02:00
efitenandClaude Opus 4.8 a58f17a5c2 fix: resume capture on heard packet after standstill auto-pause (v1.3.3)
After the 5-min standstill auto-pause, capture only resumed when a GPS
watchPosition callback reported movement. On a backgrounded / screen-off
PWA those callbacks stall, so a drive that resumed after a stop logged
nothing until the app was foregrounded — a whole drive silently lost
(reported for BE-BOC-myst, 2026-07-08 near Bree).

Wake-on-packet: a heard packet now also advances the idle gate via the new
pure captureDecision(), so movement resumes capture on the first packet
from a moved position even when the GPS callback cadence dropped. A packet
still at the parked anchor stays paused. Capture stays fully decoupled from
the network (IndexedDB queue), so this is a capture fix, not an upload one.

Bump SW cache v10→v11 for the frontend change.

Closes #9

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 16:22:07 +02:00
efiten 20409f9292 chore: stop tracking local planning docs (docs/plan.md, docs/superpowers/) 2026-06-13 21:13:51 +02:00
efitenandClaude Opus 4.8 b3826a0daa docs(plan): SP4 implementation plan — public release (runtime config.json)
Bite-sized TDD tasks: config.js loader (+tests), names.js→resolveUrl, app.js
wiring + UI genericize, config.example.json/gitignore/drop .env, deploy.sh,
package.json+GPLv3 LICENSE, AGENTS.md, README howto, build/test verify,
mandatory git-history secret scan, then gated flip to public.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 20:55:40 +02:00
efitenandClaude Opus 4.8 33021be0e4 docs(spec): SP4 — switch config model to runtime config.json
Per review: deployment config is a runtime config.json fetched at startup (MQTT
url/account/password + optional resolveUrl), not build-time VITE_*/.env. Sysops
host the static build and drop in config.json — no source edits, no rebuild to
change config. config.json (with the publish password) is gitignored; a
config.example.json is committed. Updates the howto, AGENTS rules, and the
pre-public secret scan accordingly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 20:47:51 +02:00
efitenandClaude Opus 4.8 23b4f885b4 docs(spec): SP4 — public release design (genericize, howto, AGENTS.md, GPLv3)
Design for making corescope-rx a public, self-hostable companion app: keep the
build-time VITE_* config model, move the one hardcoded endpoint (names.js BASE)
to VITE_RESOLVE_URL, rewrite the README with a sysop self-host howto, add
AGENTS.md + a GPLv3 LICENSE, scan git history for secrets, then flip to public.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 20:39:41 +02:00
efitenandClaude Opus 4.8 db83810878 feat: scaffold corescope-rx capture app (BLE companion → MQTT coverage)
Protocol core implemented + unit-tested (meshpacket: path[last]/advert pubkey,
direct-only rule; frames: 0x88 snr/rssi/raw). Working skeleton for transport
(Web Bluetooth NUS), GPS, IndexedDB queue, MQTT.js publisher and field UI.
Remaining work in docs/plan.md (spikes + harden + verify).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 16:47:30 +02:00