29 KiB
src — Source Tree Root
Purpose
The source tree root contains all editable source code, build scripts, test suites, VFS payloads, vendor dependencies, and documentation. This is the primary development area.
Ownership
- The
src/tree is where agents perform development work. - Generated/output directories at the project root (
modules/,lib/,lib_tcl8/,lib_tcl9/,modules_tcl8/,modules_tcl9/) are build targets — agents must not directly modify them. - VFS payloads, runtime mappings, vendored dependencies, generated docs, and entry-point scripts have child AGENTS.md files with local ownership rules.
Local Contracts
make.tclis the primary build entry point:tclsh src/make.tcl <command>.- The build system handles bootstrap loading, version assignment, module/library packaging, and VFS packaging.
- Shell launcher entry points include
tclsh src/make.tcl shell, built launchers under the projectbin/directory, scripts sourced fromsrc/scriptapps/, and executable entry scripts undersrc/vfs/_config/. - Tcl 8.6+ is required and Tcl 9.0 is supported; gate 9.0-specific behavior behind version checks or existing
punk::lib::compathelpers. - Primary target is Windows (
win32-x86_64); Linux, macOS, and FreeBSD are secondary targets. - Tcl linting is available only through the VS Code Tcl lint plugin configured by
tclint.toml; do not try to runtclintortcllintas shell commands, except at explicit user request. - Lint coverage is
.tcland.tm; extend config if new Tcl-related extensions appear. - Shared Tcl source formatting defaults are a 400-character line cap, no more than 10 consecutive blank lines, 4-space indentation, and no tabs except inside string literals.
- Source priority for editable modules:
src/modules/>src/modules_tcl<major>/> bootsupport > VFS > built > installed. - Source priority for editable libraries:
src/lib/>src/lib_tcl<major>/> vendorlib > VFS > built > installed. - Treat
pkgIndex.tclas a loader map unless the task is about package loading or registration. - Prefer vendored dependencies under
src/vendor*before fetching new dependencies. - Guard optional compiled extensions such as
twapiortdomwith fallback behavior or actionable messages.
File Resolution Policy
Use the strongest available anchor first and do not broaden scope until that anchor is checked.
Treat active-editor anchors in source-derived or generated trees as ambiguous unless the user explicitly named that path. In particular, confirm the intended target before editing files opened under src/bootsupport/, root modules/, root lib/, modules_tcl8/, modules_tcl9/, lib_tcl8/, or lib_tcl9/; for generic module/library work, the usual target is src/modules/, src/modules_tcl<major>/, src/lib/, or src/lib_tcl<major>/.
Anchor order:
- Exact path named by the user.
- Active editor file, when the environment provides one.
- Exact proc, symbol, or identifier named by the user.
- Repository naming and source-precedence rules.
Proc inspection order:
- Read the exact file named by the user, if provided.
- Otherwise read the active editor file, if provided and relevant.
- Otherwise search once for the exact proc name.
- Prefer editable source under
src/modules/,src/modules_tcl<major>/,src/lib/, orsrc/lib_tcl<major>/. - If multiple matches exist, prefer the generic source tree unless version-specific behavior is relevant or only a version-specific definition exists.
- If the best hit is
pkgIndex.tcl, use it to resolve the implementation file. - Once the owning source file is identified, continue locally from that file.
Recovery after a wrong path guess:
- Re-check the user-provided path.
- Re-check the active editor file, if available.
- Re-check repo naming conventions.
- Use one exact symbol search instead of probing more filename variants.
Work Guidance
- Run
tclsh src/make.tcl packagesonce after cloning to populate generated module and library assets. - Use
tclsh src/make.tcl bakehousefor full builds from a clean checkout (packages + bake; refuses uncommitted src by default --dirty-abort 0overrides). The deprecatedprojectalias maps to it with a notice. - Use
tclsh src/make.tcl modulesto build just the module packages. - Use
tclsh src/make.tcl libsto build just the library packages. - Use
tclsh src/make.tcl packagesto build both modules and libraries. - make.tcl colour is terminal-aware (G-113): piped/redirected runs (agent harnesses, CI, log capture) automatically produce fully ESC-free output with no caller action required - an ansistrip channel transform on stdout+stderr guarantees zero ESC bytes for every emitter, including module-side ones (punkcheck summaries, punk::args tables). Interactive terminal runs keep colour (stdout tty probe via the
-winsizechannel option, Tcl 8.7+/9). Precedence:NO_COLOR(any value) always suppresses colour;PUNK_FORCE_COLOR/FORCE_COLOR(value other than 0/false/no/off) re-enables ANSI on piped output; otherwise the probe decides. Tcl 8.6 terminals are auto-detected without dependencies: windows consoles via the console channel's utf-16 encoding signature (-encoding unicode- only 8.6 console channels report it; the byte-level strip transform is never pushed onto a utf-16-class channel, which it would corrupt - per-channel push, so> filefrom an 8.6 console wraps stdout only), and unix-class hosts (linux/WSL/mac, plus msys2/cygwin-runtime tclsh builds that report platform unix on windows) via the tty channel signature (real ttys expose-modeetc; pipes/files lack them). The force vars remain for exotic environments. stderr follows the stdout decision;make.tcl shellpops the transform (repl colour is the shell's own concern).tclsh src/make.tcl checkreports the active policy (colour policy (G-113): mode=...line; modes tty|forced|nocolor|piped-plain|tcl86-plain). Pinned bysrc/tests/shell/testsuites/punkexe/maketclcolour.test. Agents no longer need to set NO_COLOR for captured runs (setting it remains harmless). - Use
tclsh src/make.tcl vendorupdateto refresh vendormodules from config. It warns (non-fatal) for each source project whose fossil/git checkout is dirty - vendored artifacts built from a dirty tree have no committed provenance; commit in the source project to clear the warning (enforcement policy tracked by goal G-026). - All build/promotion commands (
bakehouse,packages,modules,libs,bake,vfslibs,bin,bootsupport,vfscommonupdate) warn similarly when this project's ownsrc/has uncommitted fossil/git changes (dirt outsidesrc/is ignored). Warn-only by default EXCEPTbakehouse(aborts by default;-dirty-abort 0overrides); pass-dirty-abortelsewhere to make the check aborting. For evaluating uncommitted source without a build, prefer<builtexe> src/<builtexe> src shell. The check ispunkboot::utils::vcs_dirty_warnings(optional scope argument) loaded guardedly from bootsupport - if the snapshot is stale/missing the check degrades to a skip notice (but-dirty-abortthen aborts rather than silently losing the requested strictness). - Provenance warnings (dirty-src gate + vendorupdate source-project check) print with a plain column-0
PROVENANCE-WARNING:token (grep for it in captured build output) and are recapped at the end of the run via make.tcl's wrapped::exit. Interactive terminal runs get a 3-second ctrl-c grace countdown before a dirty build proceeds; piped/agent runs skip it.tclsh src/make.tcl checkreports the current src provenance status and what the build commands would do. - Use
tclsh src/make.tcl vfscommonupdateto rebuild_vfscommon.vfs. The REPLACE confirmation prompts on an interactive terminal; unattended/agent runs must pass-confirm 0(with the default-confirm 1and a piped/closed stdin, make.tcl aborts fast with guidance instead of reading stdin - do not pipey). tclsh src/make.tcl workflowprints an embedded ASCII data-flow overview of the build/release workflow (release-ready command sequence, source→outputs folder flow, kit assembly, keyed notes). The text lives in::punkboot::workflow_textinsrc/make.tcl- embedded rather than a data file so it travels with the make.tcl copies seeded into generated projects. Update contract (agents): whenever build data flow changes - a make.tcl subcommand added/removed/repurposed, a source or output folder added or rerouted, a propagation target added, a gate (staleness/provenance/confirm) or deploy behaviour changed - update the workflow text in the same change-set. Keep it plain ASCII, max line width 100, and preserve the RELEASE SEQUENCE / DIAGRAM / KEY-NOTES / MAINTENANCE structure; verify by runningtclsh src/make.tcl workflow(and once underPUNKBOOT_PLAIN=1). Adding/changing a subcommand also means: SUMMARIES + HELPTEXTS + SUBOPTS (+ SUBGROUPS) in::punkboot::argdoc,known_commands, the plainpunkboot_gethelptext, and a project-version bump (make.tcl interface is product surface per root AGENTS.md). Layout make.tcl copies pick the change up viamake.tcl bootsupport- do not hand-sync them.- make.tcl subcommands and flags are punk::args-declared (G-030):
tclsh src/make.tcl help ?subcommand?or<subcommand> -helpshows tabled usage; invalid arguments produce punk::args usage errors. The dispatch degrades to plain scan/help when the bootsupport punk::args (or its rendering stack) is stale or unavailable;PUNKBOOT_PLAIN=1forces the degraded mode for troubleshooting. The::punkboot::argdocdefinitions are constructed (string-built) and use the G-045 authoring mechanisms — block-form help values +@normalize, explicit@form -synopsis— see src/modules/AGENTS.md "punk::args definition authoring ergonomics" before editing them or authoring similar definitions. - Uncommitted
make.tcl-generated outputs may be batched into one commit, regardless of how manymake.tclinvocations produced them. This covers punkcheck-managed build outputs that are VCS-tracked:src/bootsupport/,_vfscommon.vfs/modules+/lib, declared per-kit*.vfs/lib_tcl<N>/<pkg>subfolders, the thin-layout sync copies (src/project_layouts/vendor/punk/<layout>/src/{make.tcl,build.tcl}+ bootsupport manifest copies), and the module-shipped layout payload undersrc/modules/punk/mix/#modpod-templates-*/templates/project_layouts/(G-087: synced fromsrc/project_layouts- never hand-edit the modpod copy). (Rootmodules/,lib/,modules_tcl<N>/,lib_tcl<N>/are gitignored and never committed.) Each module's old→new version rename is atomic; a regeneration reflects one build-output refresh, not independent hand-edits. This is a carve-out from generic "split aggressively" commit guidance for punkcheck-managed build outputs only — it does not cover user-curated VFS content (_config/, per-kit*.vfs/outside declaredlib_tcl<N>subfolders,_aside/,mkzipfix.vfs,_vfscommon.vfs/doc), which commits separately per its own concerns. - Boot-precondition gate (G-125). A bake refuses any kit whose merged
.vfssupplies no tcl library: the kit is listed underFAILED KITSwith a reason naming the cause, and NOTHING is written - nosrc/_build/<kit>, no deploy, and the previously deployedbin/<kit>is left byte-identical. This is deliberately a failure rather than a warning: the deploy step deletes the old kit before copying the new one, so the pre-gate behaviour replaced a working shell with an artifact that died at startup withapplication-specific initialization failed: Cannot find a usable init.tcl. The check is structural and non-executing (so it covers cross-target kits too):init.tclintcl_library/,lib/tcl<major>.<minor>/ortcl<major>.<minor>/- the third for runtimes whose archive mounts at the executable's own path rather than//zipfs:/app, so[info library]is<exe>/tcl8.6(the androwish/undroidwish zipfs backport for 8.6 does this) - plus one companion file a real Tcl library carries beside it (tm.tcl,package.tcl,auto.tcl,clock.tcl,history.tcl,word.tcl) or anencoding/directory - without that second test thelib/BWidget1.10.1/init.tclevery punkshell kit carries would answer for a tcl library it cannot provide. It reads the MERGED tree rather than asking whether extraction ran, so a.vfsthat legitimately supplies its own tcl library (src/vfs/punk8_statictwapi.vfs,src/vfs/punk9test.vfs) builds and deploys unchanged. Remedy when a kit is refused: the usual cause is that the runtime's own payload could not be extracted - read the recappedBUILD-WARNINGnaming what was tried, then either fix extraction (a driving tclsh with no zipfs needs punk::zip >= 0.2.0 in bootsupport - see the extraction bullet above), point the kit at a runtime that carries a payload, or have the kit's.vfssupply a tcl library itself. The predicate ispunkboot::utils::vfs_boot_library_reportcalled through a guarded require, exactly as the dirty-src provenance check is: a stale or missing bootsupport snapshot degrades the gate to aNOTErather than failing every kit.tclsh src/make.tcl checkreports whether the gate isACTIVEorUNAVAILABLE. - Payload/target consistency checks (G-133), both ADVISORY - warnings are recapped
BUILD-WARNINGs and the kit still builds and deploys (unlike the G-125 gate). (a) Binary-arch scan, at the same post-merge seam as the gate: every binary library (*.dll/*.so/*.dylib) in the merged tree is classified by header bytes (punkboot::utils::binary_arch_classify- PE Machine field, ELF e_machine, Mach-O incl. universal; unclassifiable content is honestlyunknownand never warned about) against the kit's target platform. Structural and non-executing, so it runs for cross-target kits too (measured ~30-140ms per kit, avg ~93ms across the 12 assembled trees). Libraries under a platform-discriminated subdir - canonical<os>-<cpu>platform-dir names, the universalmacosxfolder, or a recognised vendor spelling (win-x64etc; the lists are namespace variables inpunkboot::utils) - are exempt: multi-arch payloads are legitimate there. First real sweep (2026-07-27) found a true latent instance:zint.dll2.13.0 insrc/vfs/punk8win.vfs/lib_tcl8/is 32-bit (i386) and can never load in the x64 tcl8 kits (punk86/punkbi/punksys) that carry it - those bakes warn until the payload is fixed. (b) Smoke-require probe: a kit declaring packages insrc/runtime/mapvfs.config(5th entry element - seesrc/runtime/AGENTS.md) has each one plain-package required INSIDE the freshly built artifact via its tclsh subcommand, which exits cleanly even on runtimes whose full repl teardown is fragile. This is the only check that observes actual package RESOLUTION - the punkluck86 2026-07-27 incident class (a higher-versioned wrong-arch Thread shadowing the runtime's working copy on plain require) is invisible to structural checks because the working file exists too. Failures are recapped naming kit, package and the actual error; cross-target kits skip with a stated reason; undeclared kits run nothing new; the probe only runs when the kit actually rebuilds. What the checks do NOT guarantee: statically linked packages, pure-tcl packages whose binary dependency lives elsewhere, and version-preference outcomes are visible only to the smoke probe - and only for the declared package set; the arch scan proves nothing about loadability beyond architecture, and anunknownclassification is silence, not a pass. Both degrade to a NOTE when the bootsupportpunkboot::utilssnapshot is stale (same guarded require as the G-125 gate);tclsh src/make.tcl checkreports the scan's ACTIVE/UNAVAILABLE state and the currently declared smoke-require kits. - Kit bakes consume the punk-runtime WORKING COPIES under
bin/runtime/<platform>/:make.tcl bake/bakehouseemit aBUILD-WARNING:(recapped at end of run) when a wrapped runtime's beside-toml revision is older than an-r<N>artifact present in the same folder - the forgot-to-switch-back guard for deliberatepunk-runtime use <old-rN>testing excursions. Heed it before trusting freshly baked family kits;bin/punk-runtime.cmd use <artifact-r<N>>(.exesuffix optional) re-materializes the working copy. tclsh src/make.tcl bakelist ?kitname ...?(G-121) reports the kit outputs configured insrc/runtime/mapvfs.config: kit name, kit type, runtime (with presence in the runtime store), vfs folder, and the deployed state ofbin/<kit>vs thesrc/_buildbuild product (current|stale|absent|nobuild), with anomalies (runtime=missing,vfs=missing,rtrev=r<cur><r<max>materialization staleness) and the cross-target markertarget=<platform>in a trailing notes column. A nonexistent store tier is flagged loudly per tier actually referenced (header(FOLDER MISSING)for the default tier + stderr derivation; bake's no-runtimes exit self-diagnoses the same way). Name arguments filter the report and add a per-kit detail block (resolved store tier, target and provenance of the target, paths/sizes/mtimes).make.tcl bake ?kitname ...?bakes and deploys only the named kits - other kits'_build/binartifacts and punkcheck records are untouched and the vfslibs phase narrows to the named kits' vfs folders; an unknown name errors before any build, listing the configured names; flags go before kit names (make.tcl bake -confirm 0 punk91). Barebakeprocesses all configured kits as before. Both surfaces consume the shared parsed-mapping helpers (::punkboot::lib::mapvfs_*) rather than the file format, so the G-024 config-format work swaps the reader underneath. Piped characterization:src/tests/shell/testsuites/punkexe/maketclbakelist.test.- Host vs target platform (G-122). Everything a bake EMITS is keyed by the artifact's TARGET platform, never by the driving tclsh's personality: the
bin/runtime/<tier>store the runtime is read from,.exesuffixing of runtime files and kit outputs, the presence checks behindruntime=missing, and whether the pre-deploy process sweep usestasklist/taskkillorps/kill. Host semantics - copy commands, path handling, filesystem case rules, prompts - stay keyed to the host. The default target is the host's own platform canon, EXCEPT a cygwin-family host (an msys2/cygwin-runtime tclsh, which reportstcl_platform(platform)unixon windows and canonizes asmsys-x86_64/cygwin-x86_64), which targetswin32-x86_64: such a host now drives the identical kit set, names and store addressing as a native tclsh.tclsh src/make.tcl checkprints the derivation on oneplatform (G-122): host=... target=... store=... exe-suffix=... process-tooling=...line. A mapvfs entry may declare its own target platform (4th element - seesrc/runtime/AGENTS.md), which is then read from that platform's tier, named with that platform's executable convention, and skipped by the process sweep (its processes are not visible to this host). Traps this closes, all field-verified 2026-07-26: msyspscannot see a natively-launched kit (onlytasklistcan), and msys2 rewrites arguments that look like absolute posix paths when spawning a native windows program - sotaskkill /PID <n>arrived astaskkill C:/<msysroot>/PID <n>; native-windows command lines therefore go through::punkboot::exec_nativeargs(setsMSYS2_ARG_CONV_EXCL=*, inert elsewhere). Also note a cygwin-family tclsh is a POSIX Tcl: name the script the way that shell spells paths (tclsh /c/repo/.../src/make.tcl, notC:/repo/..., which it resolves relative to the cwd) - make.tcl diagnoses the windows-spelling case. Piped characterization:src/tests/shell/testsuites/punkexe/maketclplatform.test(the cygwin-host tests self-gate on finding and probing a real msys/cygwin tclsh;PUNK_MSYS_TCLSHnames one explicitly). - Zip-type kit assembly does not require zipfs in the driving tcl (G-122): with
tcl::zipfs::mkimgpresent it is used as before, otherwise the image is assembled by concatenation (raw-runtime split +punk::zip::mkzip+ append, the same::punkboot::assemble_zipcat_imagehelper thezipcatkit type uses). Both mount identically - tcl zipfs reads the archive with archive-start-relative offsets. - Neither is EXTRACTING the runtime's own attached zip (needed to carry its
tcl_libraryinto the kit):punk::zip>= 0.2.0 reads a zip with stock Tcl only - no zipfs, no vfs::zip, no tcllib (G-124, the former tcllibzipfile::decodedependency is gone). The zipfs-less bake path splits off the executable prefix withpunk::zip::extract_preambleand then reads the MEMBERS from the original runtime withpunk::zip::unzip, never from the split-off intermediate: a runtime whose zip offsets are file-relative (the historicalzipfs mkimgconvention -tclsh90b4_piperepl.exein the store is one) splits into a .zip whose offsets still count from the removed prefix, which plain zip readers reject. Reading the whole file at the derived base offset makes the two offset conventions indistinguishable to callers;punk::zip::archive_info <file>reports which one a given artifact uses. Verified 2026-07-26 by baking a zip kit from msys2's/usr/bin/tclsh8.6(no zipfs, no vfs::zip, no tcllib) and booting the result with itstcl_librarypresent. - What the RUNTIME must provide to be zip-kit-wrappable - which zipfs commands, mount conventions and startup hooks are supported - is documented in
bin/AGENTS.md"Kit-wrappable runtime requirements (G-129)". Short form:tcl::zipfs::mountwith pairwise no-arg output (tcl::zipfs::rootNOT required), any attached-archive mount point (the boot derives it from the runtime's own mount table - the androwish/undroidwish 8.6 backport mounts at the executable's own path), amain.tcl/app/main.tclstartup hook, and a liftable library payload for the G-125 gate. The bake's runtime capability probe keyshas_zipfsontcl::zipfs::mountaccordingly. - Use
punk make.tcl bakehouseorpunk902z make.tcl bakehouseinside Punk shell when building binaries through Punk (the deprecatedprojectalias still maps). Driving make.tcl from a built punk executable is supported for informational/update subcommands and for kit builds of other kits — the kit whose deployed executable is running the build is skipped with a warning (it cannot be replaced while running, and the pre-deploy process sweep must not kill the build itself; the sweep also excludes the build's own pid in all cases). Rebuild that kit from tclsh or a different kit. - Punk-exe-hosted make.tcl runs in a pre-loaded interp, not a virgin one — the kit's script-mode boot has already loaded much of the punk stack (punk, punk::lib, punk::repl, punk::console, punk::du, flagfilter, struct::set ...) and set process state (app-punkscript forces
::tcl_interactive 0for script semantics; libunknown/packagepreference are active). Consequences make.tcl must (and now does) handle explicitly:package requireof an already-provided package is a no-op, so anything make.tcl breaks in the interp (the accelerator-reload block forgets+destroys sha1/md5/struct::* — it re-requires what was loaded), and anything computed at package-load time (punk::repl's::tcl_interactiveprobe — the shell branch recomputes it beforerepl::start), must be restored deliberately rather than relying on later loads to re-fire. Also note the copies that run in this mode are the kit's pre-loaded modules, not the bootsupport snapshots make.tcl's paths would otherwise prefer — silent provenance mixing when versions diverge. When adding interp-surgery or load-time-state assumptions to make.tcl, test under bothtclsh src/make.tcl ...and<punkexe> src/make.tcl .... - Binary images are platform-specific; build on each target platform rather than expecting a cross-platform flag.
- Remove
_build/artifacts only when a clean/resync is needed, then rerun the relevantmake.tclcommand. Avoid partial cleans that break boot modules. - Superseded module intermediates are pruned automatically so payload wrapping inherits clean trees:
punk::mix::cli::lib::prune_superseded_target_modulesruns insidebuild_modules_from_source_to_baseafter each module install/skip (covers rootmodules/,modules_tcl8/,modules_tcl9/), and frommake.tcl bootsupportfor non-globinclude_modules.configentries (glob entries may intentionally track multiple versions and are never pruned).punk::mix::cli::lib::prune_sourcevanished_targetsmirror-prunes recorded targets whose recorded source files no longer exist: rootmodules*/vendormodule copies (installermake.tcl) and the thin-layout/modpod sync copies recorded insrc/project_layouts/.punkcheck(installermake.tcl, all file types).- Every deletion is recorded as a punkcheck DELETE event in the owning
.punkcheck, so change detection stays consistent. Files without a qualifying punkcheck install record (e.g placed manually) are never deleted — they are reported to stderr and must be removed by hand if unwanted. - Install records carry virtual
module_name/module_versionSOURCE entries (punkchecktargetset_addsource_virtual, punkcheck >= 0.3.0) identifying which product of a source fileset a target is — needed because successive versions are typically built from the same physical source files. Prune trusts this identity; for legacy records it falls back to requiring the candidate's recorded sources to share the keep-version's source folder(s) and module-name prefix. - The make.tcl call sites are guarded with
info commandschecks: after changing this tooling itself, the firstmake.tcl modules+make.tcl bootsupportpass builds/propagates the new tooling (prune skipped with a stderr note) and the next pass prunes.
- Use
tcl::tm::path add <dir>to surface project modules when writing focused tooling. - Review VS Code Tcl lint diagnostics before submitting new agent-produced Tcl code, but do not use lint tooling to reformat existing code.
- When touching VFS payloads, describe regeneration steps in durable docs if the workflow changes.
- When a tool summary reports cleanup issues such as
git diff --checkwhitespace errors, verify against exact command output and exit code before running secondary scans or reporting the issue. make.tclperforms version-aware bootsupport staleness detection: major bumps abort, minor bumps prompt (y/N;-confirm 0proceeds without prompting, non-interactive stdin without it aborts fast), patch bumps warn-and-proceed. Seesrc/bootsupport/AGENTS.md"Bootsupport Staleness Handling" for the full contract and the version-bump discipline agents must follow.- Project-level version bumps are governed by the root
AGENTS.md"Project Versioning" section. Anysrc/change that ships user-visible shell behaviour requires apunkproject.tomlversion bump and aCHANGELOG.mdentry as part of the DOX closeout pass. Runtclsh src/make.tcl projectversionto verify.
Verification
- VS Code Tcl lint diagnostics are reviewed for modified Tcl files when available.
- Relevant tests pass, either
tclsh src/tests/runtests.tclor a specifictclsh src/tests/modules/<modulehierarchypath>/tests/all.tcl. tclsh src/make.tcl packagesis verified when touching build-critical code.tclsh src/make.tcl bakehouse(with-dirty-abort 0when verifying a deliberately dirty tree) completes without errors when changing build, runtime, or VFS behavior.- Documentation/comments are updated for new behavior, flags, workflow, or ownership rules.
- Diffs are reviewed so no stray whitespace or debugging output remains.
Child DOX Index
modules/— Main editable module source (see modules/AGENTS.md)modules/punk/— Core punk namespace modules (see modules/punk/AGENTS.md)modules/test/— Installed-module test packages (see modules/test/AGENTS.md)modules_tcl8/— Tcl 8 specific modules (see modules_tcl8/AGENTS.md)modules_tcl9/— Tcl 9 specific modules (see modules_tcl9/AGENTS.md)lib/— Editable library source (see lib/AGENTS.md)lib_tcl8/— Tcl 8 specific librarieslib_tcl9/— Tcl 9 specific librariesbootsupport/— Early-load bootstrap modules (see bootsupport/AGENTS.md)tests/— Source-tree test harness and tests (see tests/AGENTS.md)vfs/— Virtual file system images for builds (see vfs/AGENTS.md)scriptapps/— Entry-point scripts for Punk apps (see scriptapps/AGENTS.md)vendormodules/— Third-party bundled modules (see vendormodules/AGENTS.md)vendorlib/— Third-party bundled libraries (see vendorlib/AGENTS.md)vendorlib_tcl8/— Tcl 8 specific vendor librariesvendorlib_tcl9/— Tcl 9 specific vendor librariesruntime/— Build runtimes and VFS config (see runtime/AGENTS.md)buildsuites/— Zig-built runtime factory: suites building Tcl runtimes from external sources with the pinned zig toolchain; surfaced viamake.tcl buildsuite list/info/build; suite self-description contract in buildsuites/README.md (see buildsuites/AGENTS.md)tools/— Vendored first-party build tools (zig; punkzip now, the G-128 tool later) built intobin/by the make.tcl tool step; upstream-first editing with per-tree PROVENANCE.md provenance/licence records (see tools/AGENTS.md)doc/— Generated documentation (see doc/AGENTS.md)assets/logo/— Project logo vector masters and the.icofiles generated from them; source of the project icon, with the pre-2026-07 artwork retained underlegacy/(see assets/logo/AGENTS.md)testansi/— Sample ANSI art files (do not modify)