Skip to content

Release v0.8.0 - #55

Merged
erickramer42 merged 347 commits into
mainfrom
dev
Nov 16, 2026
Merged

erickramer42 merged 347 commits into
mainfrom
dev

Conversation

@erickramer42

Copy link
Copy Markdown
Owner

Havne 0.8.0 lets a log or a warning start from the car's own state: conditions judged in a session, alerts in the app (a banner, colored values and, on Android, a tone), armed recording that writes a window when a condition fires, one plugin store for every import, and computed signals with functions, comparisons and chains. The release notes are in docs/releases/v0.8.0.md, and CHANGELOG.md lists every change under 0.8.0.

fuzz_signal_file wanted an expression for every computed def, but a file extending obd2 also holds obd2's own computed Boost, which has none in the file, so the harness stopped at its first seed extending obd2 and fuzzed nothing past it. It now asks an expression exactly of the file's own computed defs (ecuio_signal_file_key).
ecuio_signal_file_source copies a file's source block (name, url, commit, license, modified) into ecuio_signal_source_t and writes core's own struct_size back, as ecuio_plugin_info does, with ECUIO_SOURCE_SHARE_ALIKE set when the license is Creative Commons' CC-BY-SA or CC-BY-NC-SA, read as ASCII whatever the host's locale. Its refusals say why in the detail. A plugin variant's written file holds its first data file's own source, else the manifest's, so the same call answers for every variant (ADR-0064 Q7's share-alike note, Q9's plugins check).

ecuio_signal_file_text gives the file's text, borrowed for its life: the bytes a file was read from, or a variant's files merged and written as one, which loads back to its set (Q7's Save as a signal file, Q8's Copy to my plugin, the form's read of the own variant). Both additive, in strict C and the C ABI test; the fuzzers check the text is the bytes read and that each variant's text loads back.

A put's notes join only while they fit the 511-byte detail, then end with 'and N more', so no note is cut mid-way.
plugins wrap turns a signal file into a packed plugin of one variant, plugins put adds a signal file as a variant or puts it in the place of one, plugins drop removes a variant; each writes a new file to --out and says what it did in a written line, put naming any ECU of the file that took another id. signals import obdb --plugin writes the converted set as a plugin, its variant my<year> only for a typed --year, a match only from --wmi and --years (ADR-0064 Q2, Q3, Q9). The CLI keeps no store.

plugins check's variant line names its license and whether it is share-alike, and a share_alike line follows such a variant. CliPluginMakeTest checks every command's lines and package against committed ones, each written line's size against its file, each refusal, and on Linux's vcan0 a wrapped file decoding as the file alone.
havne.Plugin.wrap, put_variant and drop_variant call core's wrap on text, as havne-cli does, and give the same bytes (manufacturer codes taken in any case, as --wmi takes them); put_variant also gives which ECUs took another id. A plugin gives its lineage, each variant's source and its text, and a signal file its source (ADR-0053, ADR-0064 Q9).
A term's pace bound stopped at 60 s, so a signal swept once a minute, the longest minimum time a focus takes, went STALE before each sample: the bound was no longer three times its gap. The bound now reaches three times the longest gap counted, 180 s; each gap is still counted up to 60 s. New cases pin a minute's sweep, an outage's bound falling with each sample after it, and a signal in bursts going STALE at each pause unless its term sets max_age.

Tests: ConditionEvalTest (test_signals). Mutation-checked 2026-11-13.
A first sample the worker took under the set before an attach marks nothing in the next set's terms: a new case holds the worker, has the test's dispatch take set A and attaches set B from the after-dispatch seam. WorkerHold disarms when its wait runs out, and its header says to attach before the hold. conditions.h says that UNAVAILABLE's NOT_RECEIVED comes and goes while events still come, and that the pace bound reaches three times the longest gap counted; session.h asserts that a condition's terms fit the sampled byte.

Tests: ConditionSessionTest (test_core). Mutation-checked 2026-11-13.
view and info name a recording's conditions copy on the opened line and write each cond line as a condition line. A replay streamed with no --conditions judges by its recording's own conditions.json when the header's hash matches, and says on stderr why it takes none otherwise; the conditions line's source says which. log takes --conditions as stream does. Both write the conditions line again when a condition's availability changes, so a signal the session never receives is named once it runs, as 5d60b52 said. A recording's closed line counts conditions_lost when the recorder had no room for some events, and log's size counts conditions.json. The help says all of it.

Tests: CliGoldenTest, CliUsageTest, CliLogTest, CliConditionTest, CliViewTest, CliRecordingSignalsTest, CliReplayTest, CliConditionsRunTest. Mutation-checked 2026-11-13.
A cond line's host_us is its frame's, less how far the event's session time lies before the frame's. A replay faster than real time runs session time ahead of host time, so a stale event settled long after its sample reached back past the recording's start and was written at 0, out of order in events.log. The time now stops at the host_us of the frame put before it: the event follows that frame in session time, so it never lands before anything the recording already holds, and at real speed nothing changes.

Tests: ConditionRecordingTest (test_core). Mutation-checked 2026-11-14.
# Conflicts:
#	cli/log_lines.h
#	cli/main.cpp
#	core/include/ecuio/recording.h
#	core/src/core.cpp
#	core/src/export.cpp
#	core/src/recording_reader.cpp
#	tests/test_export.cpp
…her set

A failed wrap of a file that loads alone passes only as out of memory or with the words of the two bounds the package adds. The check also passed any refusal that said the file doesn't make one signal file, which hid a variant that read back as another set.
The options' comment says a struct_size past the struct's is taken, nothing past the struct is read, and a later field comes with a flags bit this core refuses. The wrap's comment says a file at the loader's bounds may not wrap, since the package holds it two levels deeper and the variant's written file stays within the signal file's size, and that the refusal names the bound. PluginWrapTest pins the longer struct both ways.
PluginStore takes all three kinds (ADR-0064 step 3): a package as it is, a signal file and a converted OBDb set wrapped through core's calls. Its index, plugins/store.json, records which plugins are the user's own, the vehicle each was imported for and the file each variant was made from, and keeps keys it doesn't know. An index that can't be read is moved aside whole and never written over, one of a later format is left as it is, and each change is made to the file as it is then.

A package with the id of a plugin of the user's own updates it only with the same lineage at a higher version; anything else is refused in words. A taken id is numbered, and a file finds the plugin it made however that has changed. An OBDb set kept again for a vehicle takes its earlier conversion's place while that has one variant and joins the variants the user added to it. Only a plugin of the user's own takes or drops a variant. A forgotten vehicle's imports are released, so a vehicle later given its id inherits none.

The bridge reads an import once, passes a byte-order mark by and tells its kind from its first key, holds a signal file or an OBDb set until it is kept, names an OBDb variant by a typed year only, exports a plugin's kept copy byte for byte, and gives a vehicle's ordered picks, where the first that extends obd2 stands in on an adapter. No page calls these yet.
…n sweep lines

A recording from a requesting session with conditions and a default pick has a header no row case held: conditions, pick, min sweep and link lines among those recordingRowOf reads, and a core line that begins as columns does. The row is a session's, not a log's, with every signal counted and the uri read.

Tests: BridgeTest (test_bridge). Mutation-checked 2026-11-14.
Recording.conditions says whether the recording names a set of conditions, whether the copy is in the folder and matches its hash, how many cond lines it holds and whether the list was cut. condition_events() gives each line with both times, the key, the state and its fired, stale and held flags, and condition_set() loads the copy, refusing one that is missing, longer than a set can be or doesn't match.

Recorder.state() reads what the recorder wrote and lost, the condition events it had no room for among it; close() returns the state read just before it and closes the recording even when that read fails. Every call on the recorder and its close hold one lock, so a state polled on another thread never reads a recorder another thread freed.

Tests: PythonTest.test_conditions. Mutation-checked 2026-11-14.
Under Default the Dashboard's offline signal list falls back to the picked vehicle's plugin, then its files, and on an adapter's address to its first set that reads obd2; Add can add every signal of that set as one undo step; a gauge without its signal names the set that has it or the profile read.
A variant's signal file is core's text for it, which loads alone; the bridge saves it to a file and gives it to the form. Copy to my plugin puts someone else's variant into a new plugin of the user's own or one picked, its source kept, never in a variant's place or into the plugin it is in, and says the copy won't follow the original's updates. Export plugin's note names each variant under a share-alike license in havne-cli plugins check's words (ADR-0064 Q7 and Q8).

A document written through Android's provider is judged at its close too, so a refusal there is a failed write.
…byte

A recording's header names the SHA-256 of its conditions.json, and a Windows checkout with core.autocrlf rewrote the fixture's copy with CRLF, so it no longer matched: the CLI goldens, CliReplayTest and Python's test_conditions failed on any fresh checkout, CI's Windows runners included. The copies are -text.
tests/data/vehiclebook holds six vehicle books as an older Havne stores them, the format 2 text ADR-0064's migration writes for each, and the three signal files they name by the SHA-256 of their bytes. The migration's cases and the Signals page's reader both read it, so the two agree on format 2. A checkout keeps the folder's bytes as they are.
StoreMigration (ADR-0064 step 4) wraps each signal file the vehicle book names into a plugin of the user's own, writes the book's format 2 under vehicles/book, keeps the bytes of a file that didn't move under plugins/unmigrated, gives the saved addresses whose profile is a moved file's the plugin's profile, and sets the store's mark last. The old book and signals/ are only read, so an older Havne keeps what it had.

A book under the new key is never written over, and its presence alone keeps the files from moving again, so an index that lost its mark costs nothing the user has edited. A file counts as moved when the store names a variant made from it, judged once every file is wrapped, which gives the picks and the addresses one answer on a start that resumes. A book that can't be read moves every stored file that loads, picked by no vehicle.

Format 2 holds nothing a strict reader would drop a book for: a list element that isn't an object is left out and an address is always text. A file that didn't move is recorded with its words, and with kept false when its bytes are only in the old folder, so that folder's removal can spare them. Addresses that can't be written leave the mark unset. A seam ends a run after each file and step for the tests.

SessionBridge::migrateStores returns the lines for the activity log. Nothing calls it yet.
main() moves the stores once the bridge is made and before QML loads, and logs the lines when the Log page listens. It waits off integ/v080 for the Signals page that reads the new book: before that a migrated folder lists each file twice.
The page shows the session's activity; Log also names Start log and a
recording. The sidebar entry, the page's title, Settings' phone row, the
Show activity buttons and the words that send a user to the page say
Activity. A test checks the sidebar.
The recorder says the condition events it had no room for in a drop line (the recording lost N condition events), and the reader took only the frames' drop line, so a recording that lost events opened looking complete. The reader sums those lines into events_lost, a word from ecuio_recording_conditions_t's reserved room (format 3 alone, stopping at UINT64_MAX). The recorder writes the line and the reader reads it through one pair of functions in recording_rows.h, so the two cannot drift apart.
view and info write the reader's count of lost condition events as the last key of opened.conditions (schema 1 growth), and a recording that holds nothing but that count still gets the object. The two conditions goldens gain the key at 0; a third reads conditions-lost, the conditions fixture as a recorder that lost three events writes it.
The reader's count of the condition events the recorder lost, as the namedtuple's last field.
…events

RecordingView's info gains conditionEventsLost, and the line over the panel's list says how many events were lost while recording and that an entry may be missing or run on past its end.
…t events

EachRunOfLostEventsHasADropLineOfItsOwn set the writer's hold while a pass could still be under way. That pass drained the ring during the flood, a part of the carry went in, and the second run was said in two drop lines: about one run in a few hundred on Windows, on dev's build too. The case waits for the writer to see the hold before it floods.
Their returns after the start line skipped ended(), so with standard output failing a refusal exited 3 with no word, and a recording that couldn't be made exited 1 without the stderr line. Each returns through ended(), as every other command's do. CliExitTest.AFailedWriteIsExit1 runs their refusals into an unwritable file: a bad URI, an unread condition file, a recording that can't be made, and play's missing interface on Linux.
The error label broke inside words on a phone; Text.Wrap breaks at word
boundaries. A case sets three words of 0.6 of the label width at 320 px
and wants a word to a line.
A Blank cell has no label, so its Remove read "Remove ". It now reads
"Remove blank cell", and another cell with no label takes its kind's name.
Export layout's note read "It needs the plugins X" for a single plugin
and had no closing full stop. It now says "the plugin" for one and ends
with a full stop.
A computed signal was listed unsupported, absent or unasked, and a condition on it marked not received, whenever any input under it was, though a format 2 if, all or any gives it values without that input: if(obd2.speed > 0, obd2.maf / obd2.speed, 0) reads 0 at a standstill on a car without MAF, while Live said it wasn't asked. A walk of the program's steps now says whether it lacks a value with the inputs the session doesn't get, all of them at once: a push lacks with its input, a constant never, if with its predicate or both branches, all and any with both parts, any other step with either part. So any(obd2.maf > 10, obd2.map > 50) is listed on a car with neither PID and not on one with either. The conditions judge each computed signal over every input not received, unsupported, absent or dropped together. A program with no if, all or any (every format 1 program) is listed when any input is, as before, and so is one whose steps don't run to one value. The focus still keeps every leaf of a picked signal asked. Cases hold the walk to the machine over every set of inputs gone, and the three lists and the conditions against a file whose signals read MAF in a branch, a predicate, both branches, an any, an all and a sum.
ADR-0063's status, the armed recorder, link terms, the app and the Alerts page as built, the cond line's seven fields, the 180 s pace bound and the focus line; ADR-0064's status, the store, the migration, the wrap and the one-store UI as built; ADR-0062's appendix on the lists a program lacks, Decided item 23 and the computed inputs' bound; ADR-0056's pick lines; the VIN before the identity (ADR-0027, ADR-0043); notes in ADR-0039, ADR-0052, ADR-0053 and ADR-0057.
…o v0.8.0

condition-files.md says link terms are judged, armed recording acts on record and the age bound is three times the signal's pace (the schema's description with it); signal-files.md states how far apart a computed signal's inputs may arrive; plugins/README.md describes the one list, Import and the wrap commands.
…list

A section on Settings, Alerts, Armed beside Start log, the viewer's condition bars, the drive view's banner, the Activity page's name, and Add a vehicle and pick its signals in place of the import section.
CHANGELOG Unreleased holds every user-visible change from the lanes' drafts and the commit list; STATUS has a v0.8.0 section, its roadmap row, the test counts and what goes to v0.8.1; the README names alerts and the one plugin list, the split files and conditions.h.
The frame's journey judges conditions, test_bridge's link line, the Activity page's name where a page is named, rows for conditions, the one store, the wrap, the default pick and the lost events, the migration's and the condition file's trust boundaries, the migration's fuzz note, and v0.8.0's rows and one lesson in the engineering log.
The sidebar reads Activity and the header has Armed in every desktop shot; new shots of Settings, Alerts, the alert band and the viewer's Conditions panel; the viewer's shot is of a minute's recording, with its alt text and captions.
The sidebar reads Activity and the header has Armed; the same quarter mile at 960x600, 17 s.
Codes, Activity's frame table and Settings, Display from the current build over mock://demo, with the status bar's icons covered.
@erickramer42
erickramer42 merged commit b85db57 into main Nov 16, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant