D1-01 — Freeze the first real repository demo scenario #31
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Creatidy/creatidy-kernel#31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #30
Goal
Define and prepare the smallest real repository scenario that Creatidy Kernel will use for its first end-to-end dogfood demo.
This issue freezes the demo subject before Kernel gains new live-composition behavior.
The result must be specific enough that later D1 work can answer unambiguously:
This issue does NOT implement the Kernel live demo runner.
Demo repository
Create a dedicated owner-controlled disposable repository on canonical Forgejo:
Creatidy/kernel-demoThe repository exists only to dogfood Creatidy Kernel.
It should be small, public if there is no reason to keep it private, Apache-2.0 licensed, and contain no credentials, private workload data or production dependencies.
GitHub mirroring is not required for D1-01.
The default development branch should be
develop.mainremains human-controlled and is not needed by the demo.Technology
Use a deliberately small Python 3.12 project.
Prefer:
pyproject.toml;src/package layout;The repository must be fast to clone, inspect and test.
Do not create a toy consisting only of a text file. The agent must edit real source code and satisfy real tests.
Frozen first task
The first demo task is:
The repository should initially contain the function as intentionally incomplete production code, for example by raising
NotImplementedError.The intended contract:
-;-;Do not hide requirements from the agent. The repository task/instructions and tests should agree.
If implementing accented-character handling correctly would require an unnecessary dependency, choose and document a smaller standard-library-only normalization contract instead. Determinism and a clean task contract matter more than feature breadth.
Why this task
The task should be:
It must not require architectural changes, external APIs or broad repository exploration.
Repository shape
Keep the initial repository approximately this small:
Additional files are allowed only when they materially improve the demo contract.
Acceptance checks
Freeze one deterministic verification command suitable for Kernel-controlled execution.
Preferred:
If the repository uses
uv, the exact command may instead be:The command must:
Also define an allowed changed-file set for the first demo.
Prefer:
The first demo should fail verification if the candidate modifies unrelated source, test, configuration or governance files.
Tests are controller-owned acceptance evidence. The coding Runtime must not be authorized to rewrite
tests/test_slug.pyto make itself pass.Initial repository state
The starting
developbranch must:normalize_slugis incomplete;Record:
developSHA;Workspace authority
For this first demo, the coding Runtime may modify only the disposable checked-out worktree.
It must not receive authority to:
.gitconfiguration;The controller owns candidate collection, verification and Forge delivery.
Trusted-development limitations must be stated honestly. Do not claim hostile-code isolation unless a real sandbox proves it.
Forge behavior
The successful later D1 demo will:
developbase;developthrough Kernel's existing Forge/AGit boundary;D1-01 does not need to make that live PR yet. It prepares the repository and exact conditions required for it.
Repeatability
The scenario must be easy to reset.
Document the minimum owner action needed to return the demo repository to the frozen initial state after a successful demo.
Prefer a clean branch/base-reset procedure over scripts with hidden state.
Do not require deleting Kernel's durable evidence merely to reset the demo repository.
UX baseline
Record what a human would currently need to do manually to execute this scenario using today's Kernel APIs.
This is baseline evidence for D1.
Do not fix the UX in this issue.
The purpose is to identify which manual steps D1-02 must remove.
Reuse-first
Before adding scaffolding or helper code, inspect whether an existing minimal repository mechanism can be reused.
Do not import a large template/framework merely to create this tiny demo.
Deliverables
This issue is complete when:
Creatidy/kernel-demoexists on Forgejo.developstate is frozen and revision-pinned.Validation
Run the demo repository's own installation and test commands.
Demonstrate:
Do not leave the solution committed on
develop.Completion
Record the final evidence on this issue.
No Creatidy Kernel PR is expected from D1-01 unless investigation discovers that repository-side preparation genuinely belongs there.
Do not begin D1-02 automatically.
D1-01 evidence — synthetic demo plan superseded; real-backlog candidate scan
Parent program: #30
Supersession record
Owner decision (2026-09-28, interactive session): the synthetic
Creatidy/kernel-demorepository approach is superseded. The first Kernel dogfood demo must perform a real useful task from one of the owner's existing repositories so the model work has value even if the demo exposes Kernel failures.kernel-demomust NOT be created.Factual history of the aborted original path:
kilo) could not create repositories in theCreatidyorg: "Given user is not allowed to create repository in organization" — an owner-only infrastructure step.Creatidy/kernel-demoexists; nothing was pushed; the unused local scratch workspace was deleted.creatidy-kernelfile changed:developworking tree clean throughout (HEAD49af0c4).Scan scope and method
Canonical Forgejo open issues + open PRs inspected for:
BioMedical-IT/ollama-monitoring,DemandTrace/creatidy,DemandTrace/creatidy-api,DemandTrace/creatidy-batch,DemandTrace/creatidy-frontend,DemandTrace/creatidy-ops,BioMedical-IT/scarcity-router,BioMedical-IT/trace-ct,BioMedical-IT/imaging-evidence-path— with implementation-status verification againstdevelopfile content where decisive.Key finding: many "open" issues are already implemented on
developVerification evidence (checked 2026-09-28):
apps/contract_wins/observability.pyondevelopalready containsOUTCOME_SOURCE_INCOMPLETEandbuild_source_incomplete_signal(docstrings cite #177).scripts/prefect_observability.pyondevelopalready containsAUTOMATION_NAME_SOURCE_INCOMPLETEand_source_incomplete_automation.db-check.*targets already use$(PY) -m scripts.db_checkwith the exact rationale comment.app/learning/(store + routes) andtests/test_learning_routes.pyexist.Consequence: issue state alone cannot select a dogfood task;
developcontent must be checked. This is relevant input for D1-02+ task selection and for any automated candidate-selection UX.Shortlist (2 candidates; marginal candidates rejected aggressively)
1. PREFERRED — BioMedical-IT/scarcity-router #143
"Flaky under load: test_scenario_11 client-disconnect cancel can assert before the cancel reaches the worker reader"
tests/test_e2e_execution.pyonly; the racy drain loop is still present ondevelopin both scenario-11 tests (verified in source).make check(full deterministic suite, 2100+ tests) plus repeated runs ofCancellationTests(the issue documents 8/8 isolation passes vs full-suite failures under load).2. BACKUP (caveated) — DemandTrace/creatidy-api #66
"[Public API][Later] Expose bounded public run history for What Changed"
app/api/routes.py, response models, cohort sanitizer, tests.make check(offline deterministic test suite).Rejected (with reasons)
Final recommendation
Freeze BioMedical-IT/scarcity-router #143 as the first Kernel dogfood task, pending owner approval. No suitable candidate existed in the higher-preference repositories: ollama-monitoring has an empty backlog, and every suitable DemandTrace-repo task found was either already implemented on
developor failed the offline/credential/deterministic-acceptance constraints.Confirmations
Creatidy/kernel-demowas not created; no repository, branch, PR, or issue was created or modified in any target repository.creatidy-kernelimplementation changed; no Scarcity Router policy modified; nothing was implemented; no live model call was made.D1-01 frozen real-task contract — OWNER APPROVED
Parent program: #30. Scan evidence and the supersession record for the original synthetic
kernel-demoplan: see comment above. The synthetic plan was superseded by explicit owner decision;kernel-demowas never created.Owner decision (2026-09-28, interactive session):
BioMedical-IT/scarcity-router#143 is approved as the first Creatidy Kernel dogfood task. It is NOT implemented by D1-01; this comment freezes the scenario only.Frozen base (re-read immediately before freezing, 2026-09-28)
https://forgejo.creatidy.com/BioMedical-IT/scarcity-routerdevelop@781bace66cec4f91b952cbe1993a3524be90fb63(merge of PR #155, 2026-09-28T12:30:06Z)Exact relevant tests (
tests/test_e2e_execution.py, classCancellationTests)test_scenario_11_client_disconnect_propagates_canceltest_scenario_11_cancel_reaches_exactly_the_owning_workerCurrent racy mechanism (verified at
781bace)After the client half-closes (
SHUT_WR), both tests drain the response socket:Under load, the server's FIN can be observed (EOF →
break) before the worker reader thread records the cancel, so the assertion races cancel delivery against FIN observation; the 15 s deadline cannot protect it. Historical manifestation: full-suitemake checkfailures (~2 of ~7 runs) while the class passes 8/8 in isolation.Dogfood execution boundary
Implementation change limited to exactly:
tests/test_e2e_execution.py. No production code unless a later owner decision explicitly expands scope.Acceptance invariants (a candidate MUST NOT)
skip/xfail;bystander.cancels == []);The semantic assertion that cancellation reaches exactly the owning worker must remain. The expected repair class: deterministic bounded synchronization around the cancel-delivery event (wait on the worker reader's cancel-received event, or a bounded post-EOF grace poll of
worker.cancels), replacing the racy EOF/drain observation order.Frozen verification plan (finite, recorded)
uv run python -m unittest tests.test_e2e_execution.CancellationTests -vmake check— one run (=uv run python tools/test_runner.py+uv run basedpyrightper the repository Makefile; the full-suite environment is where the race historically manifested)Statistical repeated success is supporting evidence only. The primary correctness argument is structural: the race-producing observation order is replaced by deterministic synchronization. No additional stress testing is required or authorized.
Controller-owned acceptance — explicit D1-02 input
Because the implementation target is itself a test file, passing the edited test is not sufficient acceptance evidence. D1-02 must preserve an independent controller-side acceptance check over the candidate diff that rejects at minimum:
Confirmations
creatidy-kernelunchanged; D1-02 not started; no coding model dispatched.D1-01 deliverables are complete; closing this issue as completed.