Skip to content

ADR 0017 — measurement log

Back to ADR 0017 · notes index

All measurements were taken on 2026-10-19 on a macOS arm64 machine, read-only, in fresh clones under a temporary directory. Nothing was committed to any repository other than this record.

Heads measured

Repository Head Cloned from
Skatzi/platform bdee22a the task's working copy, branch main
Skatzi/taskbase 3f95930 git clone --depth 50
Skatzi/agent-runner 41bb238 git clone --depth 50
Skatzi/skatzi-agents 8ef1907 git clone --depth 50
Skatzi/emiliero f7e9f52 git clone --depth 50

Tool versions

Tool Version Note
go 1.27.1 darwin/arm64 repositories pin 1.24 (taskbase api, emiliero) and 1.25 (taskbase mcp, agent-runner)
node / npm 22.22.1
staticcheck honnef.co/go/tools v0.8.2 via go run …@v0.8.2 2025.1.1 could not run: internal error in importing "internal/byteorder" (cannot decode … export data version 4 is greater than maximum supported version 2) on every package. A tool execution error, not a finding; counted as nothing.
ESLint taskbase's ui/node_modules after npm ci (eslint ^10.11.0)
TypeScript taskbase's ui/node_modules (typescript ^7.0.2)
vitest taskbase ^5.0.3, emiliero ^2.1.9
yamllint 1.37.1 (pip, venv) default and relaxed configs
markdownlint-cli2 latest via npx --yes markdownlint-cli2 default rules, no config file in either repository
zensical 0.0.71 (pip, Python 3.12 venv) used only to build this record; under Python 3.9 pip installs a placeholder 0.0.2 that has no CLI
absent helm, kustomize, kubeconform, terraform, golangci-lint, semgrep, conftest, dependency-cruiser, go-arch-lint not installed; checks that need them are marked "not measured" in the record

Go modules

Command, per module (taskbase/api, taskbase/mcp, agent-runner, agent-runner/desktop, emiliero/api):

find . -name '*.go' | wc -l
gofmt -l . | wc -l
go vet ./... 2>&1 | grep -v '^#' | grep -c .
GOFLAGS=-mod=mod go run honnef.co/go/tools/cmd/staticcheck@v0.8.2 -f json ./... | jq -r '.code' | sort | uniq -c
Module Go files gofmt -l go vet staticcheck v0.8.2
taskbase/api 343 0 0 6: U1000 ×2, ST1018 ×2, ST1005 ×1, SA4006 ×1
taskbase/mcp 26 0 0 4: ST1005 ×4
agent-runner 183 0 0 2: U1000 ×1, ST1005 ×1
agent-runner/desktop 55 0 0 11: ST1005 ×10, U1000 ×1
emiliero/api 9 3 (cmd/server/main.go, internal/db/db.go, internal/imaging/resize.go) 0 5: U1000 ×5

Forbidden-API style greps over non-test Go files (grep -rn --include='*.go' --exclude='*_test.go'):

Module log.Print* fmt.Print* panic( os.Exit outside main.go and cmd/
taskbase/api 0 0 2 1
agent-runner 0 0 0 3
emiliero/api 0 0 0 0

Largest non-test Go files (find . -name '*.go' -not -name '*_test.go' | xargs wc -l | sort -rn):

  • taskbase/api: internal/runner/store_pg.go 1,943; internal/runner/store_memory.go 1,361; internal/session/handler.go 1,251; internal/runner/session_turns.go 1,064; internal/session/plan.go 925; internal/runner/handler.go 869. Six files over 1,000 lines.
  • agent-runner: main.go 938; internal/runner/runner.go 820; internal/config/config.go 705; internal/adapter/adapter.go 639; desktop/window_windows.go 596. None over 1,000.
  • emiliero/api: cmd/server/main.go 414.

Taskbase import graph (api/internal, non-test)

go list -f '{{.ImportPath}} {{.Imports}}' ./internal/... | <python: collect sibling internal imports per package>
agenttype        -> gitea, httputil, task
apikey           -> authz, httputil
attention        -> httputil
attentionaction  -> agenttype, attention, authz, comment, httputil, task
auth             -> apikey, authz, keycloak
authz            -> httputil
comment          -> authz, gitea, httputil
db               -> migrations
diagram          -> authz, httputil
epic             -> authz, httputil, task
milestone        -> authz, httputil, task
modelpolicy      -> gitea, httputil
notice           -> attention, httputil
organization     -> httputil
pgtest           -> db
pipeline         -> gitea, httputil
preference       -> authz, httputil
project          -> httputil, taskgroup
pullrequest      -> attention, gitea, httputil, task
runner           -> agenttype, attention, authz, gitea, httputil, project, session, task
session          -> agenttype, attentionaction, authz, comment, epic, httputil, task
sessionframe     -> attention, comment, organization, project, pullrequest, runner, session, task
task             -> authz, gitea, httputil
taskgroup        -> httputil
webhook          -> comment, gitea, project, pullrequest, task

Cross-package references to a PostgreSQL store, non-test (grep -rnE '\b[a-z]+\.(New)?PostgresStore\b' internal/): 0. References in cmd/server/main.go: 28. A first grep that counted every PostgresStore outside store_pg.go gave 30, all in sibling files of the same package (session/store_pg_turns.go, task/links_pg.go, …); that was a false positive of the grep, not a boundary crossing.

Route-table tests: internal/authz/routes_test.go has TestGuardRouteTableMatchesRegisteredRoutes and TestEveryRegisteredRouteIsAuthorized over a registeredAPIRoutes list; the guard table in guard.go has about 126 route rules (grep -c '^\s*"[A-Z]* /api' internal/authz/guard.go).

agent-runner import graph (internal, non-test)

adapter   -> config, giteamcp, runner, taskbase, workspace
appupdate -> release, update
config    -> secrets
runner    -> config, status, sysload, taskbase
status    -> taskbase
update    -> release

Files with a //go:build constraint: 42.

Taskbase UI

cd ui && npm ci
npx eslint src -f json | jq '[.[].messages[]] | group_by(.ruleId) | map({rule: .[0].ruleId, n: length})'
npm run typecheck
node --test src/tokens.test.js src/themes.test.js
npx vitest run src/Spacing.test.jsx
grep -l 'readFileSync\|readdirSync' src/*.test.js src/*.test.jsx | wc -l
ls src/*.test.js src/*.test.jsx src/diagramLayout/*.test.ts | wc -l
Check Result
ESLint (repo config) 2 findings, both no-unused-vars (warnings)
tsc -p tsconfig.json 0 errors
tokens.test.js + themes.test.js 10 pass, 0 fail
Spacing.test.jsx 4 pass
test files reading source files 15 of 86 test files
largest non-test source files App.jsx 5,592; DiagramCanvas.jsx 1,063; worldArt.jsx 899

CI coverage of the UI: .gitea/workflows/ci.yaml has jobs test-api, test-mcp and test-promote only. deploy-dev.yaml builds the UI image; ui/Dockerfile runs npm ci and npm run build. No workflow or Dockerfile step runs npm test, npm run lint or npm run typecheck (grep -n 'npm' .gitea/workflows/*.yaml ui/Dockerfile).

Markdown files in the repository (git ls-files '*.md'): CLAUDE.md plus 10 under docs/ (agent-world-visualization.md and its folder of 5, diagram-frameworks-survey.md and its folder of 2, diagram-simplification.md). CLAUDE.md says: "Do not create .md documentation files in this repository." ADR-0012 in platform links to docs/diagram-simplification.md.

emiliero

cd ui && npm ci && npx vitest run            # 1 file, 6 tests, all pass
# ESLint, ad hoc: taskbase's config plus Node globals and a files pattern, run from taskbase's node_modules
<taskbase>/ui/node_modules/.bin/eslint --no-config-lookup -c <config> -f json $(find src -name '*.js' -o -name '*.jsx')

ESLint ad hoc: 5 files, 5 findings (no-unused-vars ×4, no-undef ×1). A first run without a files pattern linted nothing ("File ignored because no matching configuration was supplied"); a second run from the wrong working directory matched no files either. Both were tool misconfigurations, not clean results.

Sizes: ui/src/App.jsx 1,538 lines; ui/src/index.css 2,139; api/cmd/server/main.go 414. deploy/prod/ has 10 manifests; kubeconform not run (absent).

skatzi-agents

Custom check (Python), run over personas/*.md: frontmatter keys against the allowed set {name, description, kind, default_model} (the set Taskbase's api/internal/agenttype/parse.go accepts, with ErrBadFrontmatter on any other key); name equals the filename stem; top-level # sections equal Role, Responsibilities, Out of scope, Workflow, Output in order (README, "Layout"); a model-name word search over the body; word count.

Persona Extra keys Name matches file Sections in order Words
analyst none yes yes 1,910
assistant none yes yes 1,320
attention-helper none yes yes 1,071
developer none yes yes 2,582
junior-developer none yes yes 1,773
project-manager none yes no: Role, Responsibilities, Requests from a project's request box, Out of scope, Workflow, Output 2,606
request-builder none yes yes 892
reviewer none yes yes 1,496
senior-developer none yes yes 2,792
technical-writer none yes yes 1,709

Model-name search: the regex \b(claude|gpt|opus|sonnet|haiku|gemini)\b (case-insensitive) hit 4 personas (developer, junior-developer, reviewer, senior-developer); every hit is the file name CLAUDE.md in a sentence about the repository's instruction file. A real check needs to exclude CLAUDE.md or match model ids. Real violations: 0.

markdownlint-cli2, default rules: 515 findings on personas/*.md (MD013 line length 333, MD022 51, MD025 41, MD032 40, MD060 26). CI: .gitea/workflows/ does not exist.

platform

Structural conventions (custom Python over PyYAML)

HelmRelease remediation (components/**/*.yaml, kind HelmRelease; convention: install and upgrade remediation, upgrade strategy rollback): 16 HelmReleases, 5 without upgrade.remediation.strategy: rollback:

File install upgrade
components/argocd/helmrelease.yaml remediation retries 3 remediation retries 3, no strategy
components/prometheus-stack/helmrelease.yaml remediation retries 3 remediation retries 3, no strategy
components/hetzner-csi/helmrelease.yaml remediation retries 3 remediation retries 3, no strategy
components/canary-checker/helmrelease.yaml crds CreateReplace, remediation retries 3 crds CreateReplace, remediation retries 3, no strategy
components/agent-runner/runner/helm-release.yaml remediation retries 3 remediation retries 3, no strategy

Files named after their kind (133 manifest files under components/ and cluster/, excluding kustomization.yaml, values.yaml, theme and chart files): strict reading (kebab-case of the kind, e.g. helm-release.yaml): 85 not matching, because the repository mostly writes helmrelease.yaml. Lenient reading (hyphens ignored, a prefix and a plural allowed): 23 not matching:

components/nightgain/base/ib-gateway.yaml            deployment, service
components/harbor/base/helm-repo.yaml                helmrepository
components/prometheus-stack/ingress.yaml             httproute, referencegrant
components/prometheus-stack/dashboard-deployer.yaml  job
components/docs/nginx-config.yaml                    configmap
components/docs/ingress.yaml                         httproute, referencegrant
components/gitea/base/helm-repo.yaml                 helmrepository
components/gateway-system/crds/standard-install.yaml customresourcedefinition
components/mattermost/base/helm-repo.yaml            helmrepository
components/keycloak/base/skatzi-realm.yaml           keycloakrealmimport
components/keycloak/base/kodexet-realm.yaml          keycloakrealmimport
components/keycloak/base/emiliero-realm.yaml         keycloakrealmimport
components/keycloak/base/keycloak-instance.yaml      keycloak
components/keycloak/base/postgresql.yaml             service, statefulset
components/rocketchat/mongodb-standalone.yaml        service, statefulset
components/rocketchat/helm-repo.yaml                 helmrepository
cluster/kodexet/argocd/config/gitea-repo-creds.yaml  externalsecret
cluster/kodexet/apps/manifests/*.yaml (6 files)      application

Several files of one kind in one directory (convention: group them): 3 — components/prometheus-stack (2 Secret files), components/keycloak/base (3 KeycloakRealmImport files), components/rocketchat (2 Secret files).

Literal prod.skatzi.com in components/ on lines without ${: 49 lines in 21 files (first hits: openbao/external/httproute.yaml, harbor/base/httproute.yaml, harbor/base/helmrelease.yaml, flux/gitea-overlay/gitrepository.yaml, prometheus-stack/ingress.yaml). Some are deliberate platform-level hostnames; the count is a proxy for the convention, not a violation count.

ADR index: 17 files 0*.md, all listed except 0000-template-adr.md, which is 0 bytes.

yamllint

yamllint -f parsable components cluster | sed -E 's/.*\[(error|warning)\] .*\(([a-z-]+)\)$/\1 \2/' | sort | uniq -c

Default config: 4,023 (line-length 3,367; indentation 417; trailing-spaces 129; document-start 52; new-line-at-end-of-file 35; empty-lines 15; comments-indentation 5; comments 3). relaxed config: 3,406. Line-length by file: components/gateway-system/crds/standard-install.yaml 3,274; the next file has 13. Excluding paths matching /crds/ or realm: 368.

markdownlint-cli2

npx --yes markdownlint-cli2 "docs/content/**/*.md"

Default rules: 6,876 (MD013 5,176; MD060 1,374; MD032 84; MD040 71; MD022 63; MD031 31; MD047 14; MD018 10; MD007 10; MD049 8).

626 relative links in docs/content/**/*.md checked for a file or an index.md directory at the target. 5 reported: docs/content/principles.md: ../contribution/ and docs/content/index.md: ../contribution/, ../operations/ (URL-style links from the site root, which the built site resolves; the check cannot judge them); 0002-task-management-agent-integration.md: ../../../docs/Dockerfile (does not exist at that path; a real broken link); components/taskbase/attention.md: … (an ellipsis inside parentheses, a false positive). Real: 1.

CI facts

  • ci-manifests.yaml runs on pull_request: installs kustomize 5.4.3, helm 3.16.4, kubeconform 0.6.7; logs in to Harbor; renders base and head with scripts/render-manifests.py; validates with kubeconform -strict using CRD schemas generated from the render plus the datree CRD catalog; posts the diff as a comment.
  • ci-docs.yaml runs on workflow_dispatch and tags v*.*.* only.
  • Terraform validate and plan run inside _terraform-plan.yaml, called by the workflow_dispatch apply and destroy workflows.
  • No workflow runs yamllint, markdownlint, a link check or terraform fmt -check.

False positives and tool errors met during the evaluation

What First result After correction Lesson for a runner
staticcheck 2025.1.1 on Go 1.27 "compile" error on every package v0.8.2: real counts a tool that fails to run must not be read as zero findings
kind-named files, strict 85 lenient: 23 a convention needs one precise reading before it becomes a check
model names in personas 4 0 word lists need an exclusion for file names
PostgresStore outside its package 30 0 a grep is not an import graph
ESLint on emiliero 0 files linted (twice) 5 findings an empty result from a misconfigured tool looks like a pass
relative links 5 1 real a check should say what it cannot judge

External sources retrieval log

Each page was fetched with curl on 2026-10-19 and its <title> and the presence of key terms recorded.

id address title retrieved terms confirmed
S7 thoughtworks.com/insights/articles/fitness-function-driven-development Fitness function-driven development "fitness function" ×45
S8 github.com/sverweij/dependency-cruiser dependency-cruiser: Validate and visualize dependencies. Your rules. JavaScript, TypeScript, … forbidden, json, Validate
S9 github.com/fe3dback/go-arch-lint go-arch-lint: GoLang architecture linter (checker) tool … arch rules defined in yml file … Tool can by used in your CI .go-arch-lint.yml, json
S10 golangci-lint.run/docs/linters/ Linters – Golangci-lint depguard, forbidigo, funlen, lll, staticcheck, gomodguard
S11 golangci-lint.run/docs/configuration/file/ Configuration File – Golangci-lint sarif, json, max-issues-per-linter, new-from-rev (an earlier address, /docs/usage/configuration/, returned 404)
S12 semgrep.dev/docs/writing-rules/overview Write rules - Semgrep yaml, pattern
S13 semgrep.dev/docs/cli-reference CLI reference - Semgrep --json, --sarif, --error, --config
S14 conftest.dev; github.com/open-policy-agent/conftest Conftest; conftest: Write tests against structured configuration data using the Open Policy Agent Rego query language Rego, HCL, Dockerfile, deny, json (the address github.com/OpenPolicyAgent/conftest returned 404)
S15 megalinter.io/latest/ Home - MegaLinter by OX Security linters, SARIF, GitHub Action, Docker
S16 eslint.org (max-lines, no-restricted-imports, command-line-interface) the three rule and CLI pages max-lines, no-restricted-imports, --max-warnings, --format, json
S17 docs.oasis-open.org/sarif/sarif/v2.1.0/sarif-v2.1.0.html Static Analysis Results Interchange Format (SARIF) Version 2.1.0 Plus Errata 01 toolExecutionNotifications ×10, result
S18 archunit.org; github.com/TNG/ArchUnitNET; github.com/ts-arch/ts-arch Unit test your Java architecture - ArchUnit; ArchUnitNET: A C# architecture test library …; ts-arch: An architecture unit test framework for Typescript Java, C#, TypeScript
S19 github.com/yannh/kubeconform kubeconform: A FAST Kubernetes manifests validator, with support for Custom Resources! schema, -strict, -output json, CRD
S20 github.com/DavidAnson/markdownlint-cli2 markdownlint-cli2: A fast, flexible, configuration-based command-line interface for linting Markdown … formatter ×111

Not verified: whether MegaLinter runs under Gitea Actions; Semgrep's generic (non-code) pattern mode; Vale as a prose linter for the persona verb rule. None was installed or run.