You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f676f60
Browse filesBrowse the repository at this point in the historyBrowse files
exec: ~60% fewer process starts per exec (Windows overhead, #590)
Per-run memos (model path, platform, Python, model dir, version), built-ins instead of date/dirname/basename, in-shell PROJECT.md/CLAUDE.local.md reads, one awk for lint parsing, wait instead of sleep polling, model-stamp asks git once, lint-gate receipt check skipped on an unchanged content signature, fork trimming in snapshot-mpr, look-ledger, script-owners, metrics-ledger, row-groups, build-plan-status, exec-approval and mdl-scan; MXTK_PROFILE=2. Field (Linux, purchase-requests app): forks 730 -> 335, programs started 360 -> 135 per exec, output identical. For #584/#585.
Review: MERGE-AFTER-FIX — lint-receipt skip now keys on content (cp -p escape), T1b fixture fails on the old script, re-reviewed MERGE; Windows not measured yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jQvaonym9V1wKKfAEPmRr
[ "$_pgate"-gt"${MXTK_PERF_GATE_WARN:-45}" ] && note "The gate (mxbuild) dominates: 'Gate mode: check' in PROJECT.md runs mx check per exec and the full build before push."
494
494
[ -n"$_spawn_ms" ] && [ "$_spawn_ms"-gt"${MXTK_SPAWN_WARN_MS:-30}" ] && note "Process starts are slow too (above): that is the machine, not the model — see the advice there."
495
-
note "Per-command profile of one exec: MXTK_PROFILE=1 ./bin/exec.sh <script> (prints the 15 slowest lines)."
495
+
note "Per-command profile of one exec: MXTK_PROFILE=1 ./bin/exec.sh <script> (prints the 15 slowest lines; MXTK_PROFILE=2 traces the scripts it starts too)."
Copy file name to clipboardExpand all lines: project-bin/build-plan-status.sh
+28-18Lines changed: 28 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -88,13 +88,14 @@ MDLSOURCE="$ROOT/mdlsource"
88
88
MODULES_DIR="$ROOT/architecture/modules"
89
89
REGISTER="$ROOT/docs/improvement-register.md"
90
90
BUILD_PLAN="$ROOT/architecture/build-plan.md"
91
-
STAMP="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
91
+
if [ -n"${EPOCHSECONDS:-}" ];then TZ=UTC printf -v STAMP '%(%Y-%m-%dT%H:%M:%SZ)T' -1 # bash 5: no date process
92
+
else STAMP="$(date -u +%Y-%m-%dT%H:%M:%SZ)";fi
92
93
93
94
# PROJECT.md `Progress report: off | ask | auto` (default ask). off = this script never writes the
94
95
# page; ask and auto only change what the agent does at a stage gate or module close (the skills
95
96
# say: ask once, or open it), so the script treats them the same.
96
97
report_name() { # the page name lives in progress-report.py (REPORT_FILE); asked once, here
97
-
REPORT_FILE="$("${PY:-python3}""$(dirname "${BASH_SOURCE[0]}")/progress-report.py" --print-name 2>/dev/null)"# portability-ok: PY is resolve_py output; python3 only if unset
98
+
REPORT_FILE="$("${PY:-python3}""${_bpd:-$(dirname "${BASH_SOURCE[0]}")}/progress-report.py" --print-name 2>/dev/null)"# portability-ok: PY is resolve_py output; python3 only if unset
if [ "$WRITE_JSON"-eq 1 ] || [ "$WRITE_HTML"-eq 1 ];then
435
-
if [ -f"$(dirname "${BASH_SOURCE[0]}")/_common.sh" ];then
444
+
_bpd="${BASH_SOURCE[0]%/*}"; [ "$_bpd"!="${BASH_SOURCE[0]}" ] || _bpd=. # dirname without a process
445
+
if [ -f"$_bpd/_common.sh" ];then
436
446
# shellcheck disable=SC1091
437
-
."$(dirname "${BASH_SOURCE[0]}")/_common.sh"
447
+
."$_bpd/_common.sh"
438
448
fi
439
449
if!type resolve_py >/dev/null 2>&1;then
440
450
resolve_py() {
@@ -532,7 +542,7 @@ render_plan_section() { # stdout: the plan section's HTML
532
542
echo"<h2>The plan</h2><p class=empty>Nothing to show yet: ${PLAN_MSG:-build-plan.md was not read}.</p>"
533
543
return 0
534
544
fi
535
-
"$PY" - "$PLAN_JSON""$MDLSOURCE""${PHASE_DETAIL:-/dev/null}""$ROOT""$(dirname "${BASH_SOURCE[0]}")/progress-report.py"<<'PYEOF' || echo "<h2>The plan</h2><p class=empty>Could not render the plan section from build-plan.md.</p>"
545
+
"$PY" - "$PLAN_JSON""$MDLSOURCE""${PHASE_DETAIL:-/dev/null}""$ROOT""${_bpd:-$(dirname "${BASH_SOURCE[0]}")}/progress-report.py"<<'PYEOF' || echo "<h2>The plan</h2><p class=empty>Could not render the plan section from build-plan.md.</p>"
536
546
import fnmatch, html, json, os, re, sys
537
547
538
548
src, mdl, detail_out, proj, gen = sys.argv[1:6]
@@ -709,7 +719,7 @@ PYEOF
709
719
# architecture/build-plan.html is left exactly where it is: not read, not rewritten, not deleted.
0 commit comments