Skip to content

Releases

Release v0.9.0

Choose a tag to compare

@github-actions github-actions released this 24 Oct 07:33

Highlights

A correctness release. Clone groups no longer admit members that overlap or that no single build compiles together, compiler helpers read only the compilation database the scan selected, native artifact symbols and relocations resolve through one index, and report options are checked before any work starts. No new features.

Before you upgrade

The database and baseline schemas did not change. A 0.8.0 database opens as it is.

  • SARIF categories. Every build-variant partition run and every comparison now carries its own automationDetails id. GitHub code scanning keeps one category per run, so uploads made under the previous ids are treated as a separate analysis once the new ones arrive.
  • Some group ids change. Semantic and cross-language group ids are now derived from window content alone, so editing the surrounding code or shifting a window's rank no longer changes them. A group whose members overlapped in one file is now split or dropped. Against an existing baseline these can show as new once; refresh the baseline if they do.
  • The first scan after upgrading is not reused. Run reuse now keys on the settings that decide the rows (detection configuration, and a baseline by what it hides), so output, database, report and jobs settings no longer invalidate it. The digest changed shape, so the first scan runs in full.
  • Native artifact fingerprints change. A symbol's relocations are now part of its fingerprint, so byte-identical code calling different targets is no longer reported as a duplicate. artifact compare across the upgrade can show native symbols as removed and added.

Source scanning

  • A clone group admits a member only when it does not overlap another member in its file and, with preprocessor arms, can be compiled in one build with the others.
  • A renamed group is matched to each member of an outer group at most once, so an exact repeat inside one renamed member keeps its group.
  • A discovery root that is a file is refused. Multi-letter extensions are classified regardless of case, single letters stay case-sensitive, and .cp is C++.
  • The C lexer skips a quoted literal inside a preprocessor directive, so a comment opener inside it is not read as a comment. A block macro inside a member function body is no longer read as a method.
  • Rust: call and index chains count toward the nesting budget, and async / async move closures are closure units.
  • Suppression marker lookup stays linear in the length of a line.
  • A group hidden by a rule other than the baseline is neither carried nor reported as new after an unchanged rescan.

Semantic mode and helpers

  • The Clang helper reads the compilation database that discovery selected, instead of searching upward from each source, so a database above the scanned tree is no longer picked up. .C is compiled as C++, matching discovery.
  • A translation unit that Clang reads with errors is reported as a helper failure carrying the first error, instead of being answered from recovered types.
  • When build scripts are permitted, a crate whose build script fails is reported as a helper failure with its error.
  • Helpers read configuration, manifests and lockfiles only when they are regular files under the size ceiling, so a FIFO or an oversized file is passed over rather than waited on. The configured helper timeout now also applies to discovery and the handshake.
  • doctor reports a helper that was found but cannot be used, with its reason, separately from a missing one.
  • A run with a helper failure is not reused once the helper answers.

Reports, database and cache

  • report refuses a named database together with --no-record, --suggest or --until, and a deny-asymmetric flag together with paths, as usage errors before touching any database. Text-only flags are checked against the output format, and the destination is checked before rendering.
  • scan, report, cache and doctor resolve the database the same way, so cache status, prune and clear act on the file a read uses. A subdirectory configuration's default database stays at the repository root.
  • The latest run is chosen by start time, so a reused run counts as the newest and a running or failed run is never returned as the latest.
  • A seam delta is reported only when both ledger entries describe the same seam.
  • config show notes when a discovered configuration's [helpers] section is disregarded.
  • scan_lock is reported as in use only on lock contention; other lock failures name their cause.

Artifact analysis

  • ELF, PE/COFF and archive IRs record the instruction architecture; an archive keeps one only when all its members agree. Calibration refuses to mix formats, architectures or universal slices, and comparisons state differing architectures.
  • 32-bit ARM addresses have the Thumb bit cleared. A symbol starting inside bytes another symbol owns is treated as an alias, so copied bytes never exceed the section.
  • A section symbol plus addend resolves to the function it reaches.
  • Text and CSV reports now show the analysis id, architecture and counts that JSON already carried.
  • CSV fields that begin with a carriage return are guarded against spreadsheet formula injection.
  • An analysis whose IR exceeds the storage cap is reported but not saved, instead of failing.
  • Calibration and report replay read every partition of the newest invocation.

Library crates

  • codehelion-artifact: native::symbol_size is removed. NativeTextSymbols::symbols is replaced by index: SymbolIndex, which resolves addresses and relocations (ResolvedRelocation, ResolvedTarget). ArtifactSliceKey and slice_key / slice_fingerprint are new.
  • codehelion-helper-protocol: the describe-build and analyze requests gain an optional compilation_database, so struct literals need updating. The tree_file module is new.
  • codehelion-helper: re-exports tree_file and adds MAX_FILE_BYTES_ENV and a file ceiling on the sandbox.

Full Changelog: v0.8.0...v0.9.0

Release v0.8.0

Choose a tag to compare

@github-actions github-actions released this 05 Oct 11:11

Highlights

Artifact analysis now says who owns the code in a binary. Symbols are labelled as your own, toolchain or other code, reports total the bytes per owner, and they name the functions of yours that pull toolchain code in. Identical copies of one function now get distinct fingerprints, so retained sizes and dead-code results are available on emscripten C++ and stripped release WASM, where they used to be withdrawn. Source scanning is unchanged.

Before you upgrade: artifact JSON moved to schema v3

The source scan, its database and baselines did not change. A 0.7.0 database opens as it is and no rescan is needed.

Both artifact JSON reports moved to a new schema version:

  • artifact-report-v3: retained_sizes[].symbol, dead_code.symbols[], duplicate_groups.*[].fingerprint and each member's symbol are hex strings instead of byte arrays. New fields: symbols[].content_fingerprint, symbols[].identity_by_order and a top-level symbol_assumptions.
  • artifact-comparison-report-v3: adds ownership deltas and an owner on each symbol delta.

The v2 schema files still ship unchanged, for consumers that validate old output against them.

Some artifact symbols get new fingerprints, so artifact compare across the upgrade can show them as removed and added:

  • C++ demangling applies only to _Z/__Z/___Z names. Bare names such as y, Ss or _GLOBAL__I_a are no longer turned into type names, and a binaryen $byn$… suffix is kept. Symbols whose display name changed get a new fingerprint.
  • Copies of one function (same name, same content) now have distinct fingerprints. Unique symbols keep theirs.

artifact compare now reads codehelion.toml from the working directory, like artifact analyze, and fails on an invalid configuration. It used to read no configuration.

Artifact analysis

  • [artifact] own lists the owners that count as your code. Every symbol is labelled own, toolchain, other or unnamed, and analyze, report and compare show totals per class and per owner, in text, JSON and CSV. See Artifact analysis.
  • Toolchain holdings: the report names the non-toolchain functions through which toolchain code is reached, with the bytes each one holds.
  • Owner labels are derived when a report is rendered, from the stored names and the current [artifact] own. Nothing about ownership is written to the database, so artifact report on an older analysis shows ownership too.
  • Copies of one function are told apart by their callers, callees, roots and body, and by file order only as a last resort. Such symbols are marked identity_by_order and the report says so. On suzume's release WASM this restores retained sizes for 240 copies.
  • Each copy gets its own DWARF/PDB inline frames and source-mapping rows, and dead-code lists copies individually.
  • artifact compare pairs copies by their shared content, so reordering identical functions no longer shows them as removed and added. Editing one function in an archive no longer marks its unchanged siblings as changed.
  • A stored analysis from before this release still replays, with retained sizes for shared identities withdrawn as before.
  • Mixed-format archives classify each member's symbols by that member's format.
  • Artifact CSV gains per-symbol, owner, ownership-summary and toolchain-holdings records; comparison CSV gains owner deltas.

Library crates

codehelion-artifact changed its API: ArtifactSymbol has new public fields content_fingerprint and identity_by_order, so struct literals need updating. native::NativeSymbolRange, native::NativeTextSymbols and native::infer_text_regions now carry symbol positions, and native::join_addresses is new. The new ownership module and metrics::CallGraph::toolchain_holdings are additive.

Full Changelog: v0.7.0...v0.8.0

Release v0.7.0

Choose a tag to compare

@github-actions github-actions released this 03 Oct 00:29

Highlights

A correctness release. No new commands; detection, replay and artifact sizes are more often right, and three changes need a rescan or a recreated baseline.

Before you upgrade: rescan and recreate baselines

The C, C++ and Rust frontends now split and name some code differently, so their recorded versions moved. Ids recorded by 0.6.0 for affected code do not carry over, and a baseline written by 0.6.0 names the old detector versions. Create a fresh baseline with codehelion baseline create after the first 0.7.0 scan, as Baselines describes for any detector-version change.

The database schema did not change. A 0.6.0 database opens as it is. A scan after the upgrade analyses the tree again instead of replaying the 0.6.0 run, because run reuse now compares the tool and detector versions.

Destructor and operator units in C and C++ Fast mode are now named ~Name, operator== and so on. A symbols suppression glob written against the old names needs updating.

Detection

  • Fast mode keeps a whole-function verbatim duplicate even when a renamed fragment of it also exists. Fast recall on the Rust corpus goes from 0.7143 to 0.8571. Structural figures are unchanged.
  • Adding a C++ file to a tree with no bare .h file no longer changes every stable id.
  • Group order and the occurrence each group is measured against no longer depend on file discovery order.
  • Structural mode no longer overflows the stack on very long return/break/yield or fn() -> chains.
  • A Rust doc comment no longer widens the lines a unit reports, and its text no longer enters the token stream.
  • Fast mode handles constructors after an access specifier, operator>, records with C++11 attributes, trailing return types with multi-argument templates, &mut impl Trait parameters and qualified function-pointer types.

Reports and replay

  • report without --run, seam, and the seam findings count cover every partition of a multi-configuration Semantic scan.
  • report --run N shows the seam block recorded with that run and the suppressions that run applied. It says explicitly that the baseline status is not replayed, in text, JSON (summary.baseline_not_replayed) and SARIF.
  • explain and report agree on ranking and order. Printed short ids are unique within the report.
  • Printed replay and explain commands carry --path, --config, --db and --untrusted when they are needed.
  • Every command resolves a relative --db against the working directory, doctor included.
  • Command-line usage errors exit with status 2 in every command.

Seam tracking

--until accepts annotated tags, and a shallow clone is read to its depth with a warning instead of failing.

Artifact analysis

  • ELF dead-code candidates and retained sizes follow tail jumps and address-taken functions.
  • Same-address ELF aliases are no longer counted twice.
  • Inferred function sizes no longer cut real trailing instructions.
  • artifact compare reports changed native code as modified when the format has no body identity.
  • PDB expansion is bounded by the same budget as DWARF.
  • Archives and relocatable objects no longer claim line attribution they cannot produce.

Hardening

  • A discovered codehelion.toml that is a symlink is refused, and configuration reads are capped at 1 MiB.
  • Under --untrusted, a database whose lock, WAL, SHM or journal file is a symlink is refused.
  • Two commands creating the same new database at once no longer fail with an orphaned-sidecar error; the second waits for the first to finish.
  • A Semantic helper ends its own process group when the scanner disappears, so build scripts and compilers do not outlive a cancelled scan.

Library crates

codehelion-store changed its API: Store::activate_suppressions is replaced by Store::confirm_reused_run, and looking up a group by a malformed id now returns an error.

Full Changelog: v0.6.0...v0.7.0

Release v0.6.0

Choose a tag to compare

@github-actions github-actions released this 02 Sep 15:34

Highlights

Three new commands, and a change to the local database that needs one manual step.

history, seam and guard

codehelion seam measures the seams a project has written down in its ledger — sets of
files that implement one rule in more than one place and therefore have to change
together. codehelion guard compares one change against that ledger and can fail a
build when a change touched some of a seam's members and not the others
(--deny-asymmetric, exit 3). codehelion history reads a local git history into
pinned commit records, which is what the seam measurement is derived from.

Each seam run is recorded in the local database, so a report says what the previous
generation measured beside what this one did.

See Seam tracking.

Before you upgrade: the local database is recreated

The audit database schema moved from 5 to 6 to hold the seam run tables. A database
written by 0.5.0 is not migrated.
The first 0.6.0 command that needs it leaves the
old file untouched, writes to audit-v6.db beside it, and says which file it used:

note: <repo>/.codehelion/audit.db was written by another schema version and was
      left unchanged; codehelion used <repo>/.codehelion/audit-v6.db

Nothing is lost that a fresh scan does not recreate. Baselines are unaffected — they
are separate files with their own version. If you want the run history back, rescan;
if you do not, delete the old file.

Continuous integration

A new page gathers the three things a CI job can use — the baseline gate on
duplication that arrived, the seam gate on asymmetric changes, and the SARIF upload
into a code-scanning view:
Continuous integration.

Install

The prebuilt binaries attached to each release are now the first route the README
offers; no toolchain is needed to run one.

The Intel macOS archive is no longer built. codehelion-0.5.0-macos-x86_64.tar.gz
existed; codehelion-0.6.0-macos-x86_64.tar.gz does not. The compiler helpers were
never built for that platform, so the release shipped a CLI where semantic mode could
not be installed from a release at all. Intel macOS is still supported through
cargo install codehelion.

Stability

The pre-1.0 caveat in the README is now two halves rather than one blanket sentence.
Scanning in Fast or Structural mode, the text report, replaying a run with report
and explain, the JSON export and artifact analyze are settled. Semantic mode,
baselines, SARIF, seam tracking and guard, artifact compare, calibration,
history and the suppression configuration keys are still finding their shape, and
each page says so.

Full Changelog: v0.5.0...v0.6.0

Release v0.5.0

Choose a tag to compare

@github-actions github-actions released this 01 Sep 17:13

Full Changelog: v0.4.0...v0.5.0

Release v0.4.0

Choose a tag to compare

@github-actions github-actions released this 19 Aug 10:54

Full Changelog: v0.3.0...v0.4.0

Release v0.3.0

Choose a tag to compare

@github-actions github-actions released this 18 Aug 09:55

Full Changelog: v0.2.0...v0.3.0

Release v0.2.0

Choose a tag to compare

@github-actions github-actions released this 12 Aug 17:27

Full Changelog: v0.1.0...v0.2.0

Release v0.1.0

Choose a tag to compare

@github-actions github-actions released this 04 Aug 18:02