Round 2 candidate 7a585aa9606863a0d44a26094b585160914e3d8fd5f13436b56470cd69e6d867,
packet manifest 4292da90162c801a9c56716a0539f8fa072e67e93e4f4d9a0f1e107b84b652ea,
base 02ee7f640. Filbert approved round 2 in comment 28707. Committed by Sage
for Rocko, who has no git access; secrets grep clean, no binaries (one empty file).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
6.6 KiB
Row 147 / #1641 — standard project record repository, round 1
Base fba879f6a12060fd4934b8ae9347b15c76032689. Detached candidate:
/mnt/storage/src/mosaic-stack-rocko-147-r1. Reviewer Filbert; owner gate Sage.
Source is uncommitted. No live paths, units, store, secrets, remote or push used.
Row 138 waits for Filbert's 147 approval; row 143 is reassigned to Researcher (sage-0414).
Result and interface
Previously a project had only its code root, with no shared record layout.
packages/project/ now defines layout 1, three closed package-owned JSON schemas,
five validating templates, initializer, full layout checker and one agent writer.
README.md and DESIGN.md document the exact shape and the shared API. Context is
{business, project, dataRoot}. The separate repository resolves from optional
business.projects[project].repo, otherwise dataRoot/projects/business/project.
root remains the code checkout and cannot overlap the records repository.
mosaic project init BUSINESS PROJECT creates local main, writes the layout and
commits as business.human. It refuses non-empty directories and undeclared
projects. CLI init refuses agent environments. mosaic project check is local
and read-only; it names every discovered problem and exits 2. No bus is needed.
The writer validates data, filename/ID agreement and actor shape before writing.
It takes {definition,instance} from its trusted caller, authors a commit as
definition.instance and commits only its requested record. The future broker
must supply the authenticated actor; this library is not a second identity
system. Agent paths under spec/ refuse. No spec citations, role grant, broker
verb, harness tool, Console editor or migration belongs to this row.
Stricter-than-brief refusals approved in sage-0400: remote repositories and dirty repositories (including staged/untracked/ignored files and hidden index flags). These are named project-remote / project-dirty in the README and tested. They prevent agent commits from including human pending edits or contacting a remote. Other guards cover path confinement, symlinks/hardlinks, separate code/record roots, metadata identity, writer locking and unexpected git config. Git uses the existing bounded process-group runner, sanitized config/environment, disabled hooks/filters/fsmonitor/transports and explicit actor identity. A failed commit with unchanged HEAD restores only the writer's file/index; uncertain changed HEAD preserves evidence instead of rewinding. Writer locks do not serialize arbitrary human editors; callers must coordinate simultaneous saves.
Requirements/decisions begin empty, with an empty .gitkeep so their directories survive checkout. No fictional requirements or decisions are installed. JSON schemas stay in the package; project templates cannot replace them. Unknown schema keywords refuse rather than silently weaken a future schema. Records are bounded regular UTF-8 files without NULs, named by their IDs; check inspects the whole layout and reports bad records, wrong names and unknown paths separately.
Scope additions — sage-0400, brief 10d4b526a / rev1396
- scripts/mosaic dispatches
projectto packages/cli/src/cli.mjs, tested by the real dispatcher in cli/tests/project.test.mjs. - scripts/stack-copy.sh includes packages/project. The real pinned-copy test checks source/schema/template presence and starts its real CLI/bus/Console fixture, so missing package dependencies fail. No live install or unit action.
The original brief base was8686c7e84. Rebuilt onfba879f6a after row145 changed cli.mjs; its plug-in imports/command remain. The one textual conflict was USAGE: both PLUGINS_USAGE and PROJECT_USAGE are retained, with no conflict markers. Sage sage-0410 confirms fba879f6a..dda7e31b0 is docs/agents only and explicitly keeps this base. No code from paused138 was carried into147.
Evidence and scheduled gate
Focused single-file checks authorized by sage-0401, fixture-only local git:
- project/tests/project.test.mjs: 14 passed, 0 failed.
- business/tests/project-repo.test.mjs: 1 passed, 0 failed.
- cli/tests/project.test.mjs: 3 passed, 0 failed.
- cli/tests/stack-copy.test.mjs: 12 passed, 0 failed (real pinned-copy fixture). Red logs preserve the missing implementation before building. A fixture test initially named a nonexistent fixture.root and was corrected before treating CLI coverage as evidence; current rebased logs are authoritative.
50 mutants are prepared in mutants.py, one deliberate fault per check, with whole-process-group timeout cleanup. A timeout, syntax error or accidental import error is never a kill. The package-copy fault intentionally removes the package and is killed by artifact presence/runtime loading coverage; it is a packaging acceptance check. MUTANT_ONLY supports a selected retry; final report must cover all cases. Every source file restores its original bytes in finally.
Mutants, suites and scripts are NOT YET RUN. Waiting for Sage's explicit "slot yours" (sage-0410), after Researcher/146 priority. Owner gate belongs to Sage and runs after mutants. gate.py is an UNRUN suggested owner runner: touched project/business/CLI suites plus every scripts/test-*.sh. DOCKER_HOST is a dead socket except task/release, where it is unset for those runs only so Docker cases are not silently skipped. Sage can use their repository-wide gate instead. The runner stops on any failure; no automatic retry hides a flake. Two recurrences of #258/#261/#262/#263 in a gate stop and are reported. No Docker action so far.
Final mutant/gate counts, restored manifests and process/network cleanup must be appended here after authorized verification, before claiming review readiness.
Mutant verification — sage-0428, 2026-10-15 23:21:48 UTC
Slot granted explicitly by Sage. Final sequential run killed 50/50, with no survivors, invalid mutants or timeouts. See mutants/table.md, results.json and per-check logs. The first attempt stopped at check20 because its replacement removed a loop body and caused SyntaxError; that is NOT counted as a kill. 20-required-template-invalid-attempt.log preserves it. The mutant replacement was corrected to an empty statement and all 50 were rerun, green kills.
All 24 candidate hashes match the original manifest. The staged diff exactly matches pre-mutant-index.patch. No source/test changes were needed. Every test runner exited; the /proc cwd-scoped sweep found no node/chromium/python under this worktree. DOCKER_HOST was unix:///nonexistent.sock. No Docker used or network created. Sent Sage slot clear at the observed stamp above. Owner gate is pending; no suites/scripts were run by Rocko and no in-review move made. This section supersedes the earlier unrun/scheduled mutant status.