docs: record application CYJ worker operating procedure
This commit is contained in:
parent
a5f9a3da57
commit
7c313d9828
40
AGENTS.md
40
AGENTS.md
@ -140,6 +140,46 @@ preferences, Data Protection identity, uploads, SQL, subscriptions and users per
|
||||
|
||||
Help front matter must explicitly declare visibility: public, administrator or internal. Public publication includes only public. Administrator help requires the existing AdminOnly policy in the application. Generate separate public/application audience artifacts; never select an application artifact for the website. Missing classifications fail closed.
|
||||
|
||||
## CYJ development worker
|
||||
|
||||
This repository uses the **application** worker, CYJ resource **7** in PlotDirector
|
||||
organisation 1. Run the shared toolkit from this repository, without changing its
|
||||
development/branching/testing/deployment procedures:
|
||||
|
||||
```sh
|
||||
/home/nick/cyj-planner/scripts/cyj-worker --worker application verify
|
||||
/home/nick/cyj-planner/scripts/cyj-worker --worker application available
|
||||
/home/nick/cyj-planner/scripts/cyj-worker --worker application waiting
|
||||
/home/nick/cyj-planner/scripts/cyj-worker --worker application task TASK_ID
|
||||
```
|
||||
|
||||
Read `/home/nick/cyj-planner/WORKERS.md` for the command reference, payloads and full
|
||||
workflow; use command `--help` for exact arguments. The toolkit loads only
|
||||
`~/.config/cyj/credentials/application.key` and verifies resource 7 before task
|
||||
operations. Never use planner/other-worker credentials or display secrets/state files.
|
||||
|
||||
Execute only work assigned to resource 7. Retrieve the full brief before claiming;
|
||||
claim only when ready. Review requirements against this file, then explicitly start
|
||||
InProgress. Use exact task ETags and a distinct persisted key per logical write.
|
||||
Renew the 15-minute claim every five minutes, before lengthy commands and on session
|
||||
resumption; short-yield long-running tools so renewal remains possible. No background
|
||||
heartbeat exists: if control cannot return before expiry, pause/split the work. Stop
|
||||
at expiry, reconcile and reacquire when eligible; never blindly repeat external effects.
|
||||
|
||||
Report progress; request human assistance for genuine blockers, instruction conflicts
|
||||
or unauthorised destructive actions. Record factual time and release while awaiting a
|
||||
human. Read the response, explicitly evaluate it if required, recheck eligibility and
|
||||
reclaim before resuming. Never bypass dependencies or release restrictions. Workers
|
||||
cannot correct estimates through execution endpoints: propose corrections to the planner.
|
||||
Do not independently edit deadlines, dependencies, assignments or resource calendars.
|
||||
|
||||
Implement and verify against the complete brief and existing repository gates. Record
|
||||
commits, real test outcomes, artifacts/result links, limitations and actual time before
|
||||
completion. Do not complete unfinished/unverified required work. Deployment requires
|
||||
the task's explicit scope and the existing repository procedure; it is not automatic.
|
||||
For uncertain writes use `retry ORIGINAL_KEY`, not a new key; reread/reconcile stale
|
||||
ETags and expired claims using WORKERS.md. Do not create/claim tasks merely to test setup.
|
||||
|
||||
## CYJ automatic controller claim ownership
|
||||
|
||||
For automatic `application` executions launched by `cyj-controller.service`, the
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user