interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

branch main Branches Tags History

aien-architecture-mv / scripts / pipeline-proofs / 00-measure.sh

15 lines · 1077 bytes Raw Blame History
1#!/usr/bin/env bash
2# 00: baseline timings of the crumb tool on a clean clone (no assertion beyond "the commands run").
3# Records: compile (at HEAD, expected 0 rewritten), verify, status, context lookup on the deepest crumb path.
4here="$(cd "$(dirname "$0")" && pwd)"; . "$here/lib.sh"
5proof_begin 00 "crumb timings on a clean clone" "${1:-}"
6clone_repo "$TMP/a"; cd "$TMP/a" || exit 1
7L=$(leaf_crumb_dir .) || L=.
8F=$(tracked_file_in . "$L")
9measure compile_at_head $CRUMB compile .; note "$(echo "$OUT" | tail -1)"; check "compile exits 0" [ "$RC" -eq 0 ]
10measure verify $CRUMB verify .; note "$(echo "$OUT" | tail -1)"; check "verify exits 0 at HEAD" [ "$RC" -eq 0 ]
11measure status $CRUMB status .; note "$(echo "$OUT" | tail -1)"; check "status exits 0" [ "$RC" -eq 0 ]
12measure context_root $CRUMB context .; check "context . exits 0" [ "$RC" -eq 0 ]
13measure context_leaf $CRUMB context "$F"; check "context $F exits 0" [ "$RC" -eq 0 ]
14num "crumbs=$(crumb_dirs . | wc -l)"; num "tracked_files=$(git ls-files | wc -l)"; num "leaf=$L"
15proof_end