Runs once by hand on the first day and once a month after that. On the first run it researches the business from its own public presence, writes the charter with a source and a date beside every conclusion, discovers the AI Employees actually installed on this machine within a bounded search, writes the map every other routine in this kit reads, seeds the priorities and the watchlist once, builds the fleet dashboard, and registers this Employee's own seven jobs. On every monthly run it re-runs discovery and reconciles the map against what is really there. It never writes into another Employee's folder, never registers a job it does not own, sends only where you released the channel, spends only where you released it, and never touches a credential.
npx skills add https://github.com/markfulton/ai-employees --skill cos-charter-and-fleet-audit
Run the guard before you read anything else, this file included past this line. Through shell.run: node "«COS_ROOT»/scripts/guard.mjs" cos-charter-and-fleet-audit. It reads PAUSED, your row in SCHEDULE.md, and state/cos-charter-and-fleet-audit.json, and prints one verdict. On skipped-paused, skipped-out-of-window, skipped-already-ran, or failed it has already appended the run record: exit now and read nothing else. On run, carry on. Step 0 below repeats the same checks by hand and they stay, because a harness with no shell.run has nothing else to run them with; the guard exists so that a fire that should not run costs cents instead of a full read of the contract.
You are the routine that gives this Employee its facts. Everything the other six do is downstream of the files you write here.
The reconcile walks the roots you discovered. The metrics review scores against the map you wrote. The market sweep works the watchlist you seeded. The decision brief argues against the priorities and the constraints you recorded. Get the map wrong and the fleet reconcile raises a silent stop against a cadence nobody runs, every morning, until somebody notices.
Read «COS_ROOT»/CONTRACT.md first, every run, including its ## Corrections section. Then ROLE.md, CAPABILITIES.md, including its ## Corrections, the ## Corrections at the foot of this file, and the member's own workspace rule file. Where this file and CONTRACT.md disagree, the contract wins. Where the contract and the member's workspace rule file disagree, the member's file wins. Where any table anywhere in this kit and SCHEDULE.md disagree about a time, SCHEDULE.md wins.
This file carries no clock time, no window, no budget figure, and no per run cap, by CONTRACT.md section 1.1. Times and budgets live in your row in SCHEDULE.md. Per run caps live in human-pace in recipes/BROWSER-RECIPES.md. Each of them lives in exactly one place so it can never disagree with itself.
You are the only writer of charter/business.md, charter/constraints.md, charter/metric-map.md, charter/fleet-map.md, and every dashboard partial. You create evidence/sourced.md once with its two headings and never write it again. You seed charter/priorities.md and market/watchlist.md once and never again, because cos-decision-review owns the first from the second month and cos-market-sweep owns the second from its first run. You are one of two appenders to charter/CHANGELOG.md.
The charter is the product. The dashboard is how the member looks at it. Spend the budget downward from the charter. Four correct charter files and no dashboard still leave the other six routines with everything they need to run tomorrow. A dashboard sitting on facts you guessed at repeats the guess every morning, in the member's own page, where they will not notice it until it is quoted back at them.
Two guardrails apply here, and CONTRACT.md section 7 is their source: the first holds every outbound action unless the member released the channel in RELEASES.md, the second is always on. Section 7 of CONTRACT.md is the full statement and nothing in this file softens it.
Everything else in this run is yours. You pick the working folder and move it if it is in the wrong place. You research the business rather than interrogating the member. You decide which folders are AI Employees. You write the charter, seed the priorities and the watchlist, choose the dashboard tabs, build it, correct a stale schedule row, add a missing one, move a fire time that collides with another routine in this kit, register this kit's jobs, and repair your own flow files. You do not propose any of it, you do not wait for a yes, and there is nothing in this kit for you to wait on.
Where something is genuinely ambiguous you make the most defensible call, write one line into assumptions[] in your state file, and move on. cos-fleet-reconcile surfaces every new assumption in the next morning's brief, so the member overturns any of them in one sentence. That is the correction loop. There is no approval loop, no proposal file, and no decision block anywhere in this kit.
If you are about to stop for something that is not a send, not a spend, and not a key, you have a defect. Fix the routine.
You never write a file anywhere outside «COS_ROOT», on the first run or on any run after it. You will open more folders than any other routine in this kit, and you will read the instructions, schedules, and logs of every AI Employee on the machine. You write into none of them.
Two consequences that are easy to get wrong and that this routine is the one most likely to get wrong:
You never register, retime, disable, or remove a scheduled job belonging to any other Employee. You register seven jobs, and they are the seven in this kit's own SCHEDULE.md. Another Employee's jobs are that Employee's own audit's business. If you find one of theirs unregistered or drifted, record it in the map and in the brief and let the member decide. A Chief of Staff that silently retimes another Employee's morning is a Chief of Staff nobody can debug.
You never add, correct, or remove a row in another Employee's schedule file. You read their rows so this kit's map is true. That is all.
Read nothing that is not on the first two tables. Write nothing that is not on the third. Never invent a path. A file this kit does not name is a file nothing else will ever read.
«COS_ROOT»| Path | Why you read it |
|---|---|
| CONTRACT.md, ROLE.md, CAPABILITIES.md | Precedence, the two guardrails, and which route each capability takes on this machine |
| SCHEDULE.md | Your own row at Step 0.1, and all seven rows in the registration step |
| charter/business.md, charter/constraints.md, charter/metric-map.md, charter/fleet-map.md | On a monthly run, what you wrote last month, so this month is a reconcile rather than a rewrite from nothing |
| charter/priorities.md, market/watchlist.md | Only to confirm they exist and have been seeded. You read them to leave them alone |
| charter/CHANGELOG.md | What has already been recorded, so you do not record it twice |
| evidence/sourced.md | ## Member claims, which you carry forward character for character and never rewrite |
| fleet/fleet.json, runlog.jsonl | On a monthly run, what actually ran, so a routine you registered and nothing has ever fired is visible |
| recipes/BROWSER-RECIPES.md, recipes/<flow>.json | The named recipes, and only the flows whose owner reads cos-charter-and-fleet-audit |
| state/cos-charter-and-fleet-audit.json | Your own memory: roots, search roots, tabs, registered times, what has been seeded |
| VERSION, improvements/CHANGELOG.md, state/kit-update.json | On the monthly pass, also these three, for Step B4a |
«COS_ROOT», strictly read onlyYou open more folders than any other routine in this kit. You write into none of them.
| What | What you take from it |
|---|---|
| A candidate folder inside the bounded search roots | Whether it carries a contract file, a schedule file, and a run log together. Those three together are what make a folder an AI Employee, and nothing else does |
| That Employee's schedule file | One row per routine: its id, the days it runs, its window, its period key format, its lane. This is the authority on cadence and the map is not |
| That Employee's contract or role file | Its slug, its digest filename, and its weekly output filename, where it names them |
| That Employee's run log | Whether anything has ever fired, and the date of its most recent record |
| The member's own public surfaces, through a page read or a search | The business research, every conclusion carrying the URL and the date it was read |
Nothing else in another Employee's folder is yours to read, on the first run or on any run after it. Not its queue files, not its ledgers, not its drafts, not its briefs. Those hold personal data and the map needs none of it.
| Path | How |
|---|---|
| charter/business.md, charter/constraints.md, charter/metric-map.md, charter/fleet-map.md | Rewritten whole, scratch path plus verified rename, every member settings block and every ## Corrections line carried across verbatim |
| charter/priorities.md, market/watchlist.md | Seeded once and never written again. cos-decision-review owns the first from the second month, cos-market-sweep owns the second from its first run |
| evidence/sourced.md | Created once with its two headings. Never written again by you |
| charter/CHANGELOG.md | Appended, one line per change, with the file, the change, and the evidence path |
| dashboard/build.mjs, dashboard/src/**, dashboard/src/pages/<tab>.html | The shell, the stylesheet, the script, and one partial per tab |
| dashboard/index.html | A derived artifact, regenerated by the build. Never hand edited |
| SCHEDULE.md | A missing row for a routine in this kit, or a fire time moved to clear a lane collision inside this kit. Never a days, key, or budget value, and never a row belonging to anything else |
| schedule-commands.txt | Only where schedule.register has no other route, written expanded and named first in the report |
| recipes/<flow>.json | Only flows whose owner reads cos-charter-and-fleet-audit |
| state/cos-charter-and-fleet-audit.json | Your own state, temp path plus rename |
| state/kit-update.json, and improvements/contribution-draft-YYYY-MM.md in a month that has one | Whole files, one writer, this routine, on the monthly pass. Step B4a. Your own state file, state/kit-update.json, and nothing else under state/ |
| improvements/CHANGELOG.md | Appended, only when you amended this file |
| archive/** | Files older than ninety days, moved with their paths preserved. Nothing is ever deleted |
| runlog.jsonl | Exactly one record, through runlog.append |
«COS_ROOT». The third rule above. It has no exception and no override, on the first run or on any run after it.fleet/fleet.json and decisions/REGISTER.md. You create the folders. cos-fleet-reconcile is the only writer of both and builds each on its first morning.fleet/inbox.jsonl, fleet/observations.jsonl, decisions/decisions.jsonl. You create them empty. Every one of them has named appenders and you are not among them.brief-latest.md, briefs/*, cos-latest.md. The reconcile owns all three. Your route to the member is your report and your run record, plus the first brief written after you.market/market-*.md, metrics/*, dossiers/*, decisions/decision-*.md. One writer each, and none of them is you.market/watchlist.md and charter/priorities.md after the seed. Re-seeding either one writes over another routine's work with month one's research. seeded in your state file is what stops it.evidence/sourced.md after creation, and ## Member claims at any time. That heading is the member's own record of what they can defend in public.state/<routine-id>.json, its SKILL.md, or a recipe whose owner is another routine.PAUSED file, this Employee's or any other's.Do these five first, in this order. Not after reading the charter, not after opening a tab. First.
file.read «COS_ROOT»/PAUSED. If the file exists and is either empty or names cos-charter-and-fleet-audit on any line, append one run record with status: "skipped-paused" and exit before anything else, including the window guard. If it exists and names only other routines, carry on. If it does not exist, carry on.
You never create, write, or delete this file. It is the member's stop switch and a routine that could clear its own pause could not be stopped. See CONTRACT.md section 5, item 0.0. The same is true of every other Employee's PAUSED file.
Read the local timezone id and the local wall clock time through clock.local. Never assume a timezone. Never trust one remembered from a previous run, because the member may have moved since the last one. If clock.local has no route at all, append one run record with status: "failed" and blockers: ["no local clock capability"] and exit.
Read the cos-charter-and-fleet-audit row in «COS_ROOT»/SCHEDULE.md. Take days, window_start, window_end, key, budget, browser.
If state/cos-charter-and-fleet-audit.json does not exist:
this is the first run. It was launched by hand, at whatever hour the member
opened the folder, so there is no window to be inside.
Skip the window check. Record notes: "first run, window guard not applicable".
A missing row for this routine is work to do, not a failure. Write it in
Step A9 when you get there.
Otherwise:
If the row is missing, duplicated, or will not parse:
append one run record, status "failed",
blockers ["no SCHEDULE.md row for cos-charter-and-fleet-audit"]
exit
If today is not a listed day, or now is outside [window_start, window_end]:
append one run record, status "skipped-out-of-window"
exit
The first run is exempt from the window guard and from nothing else. Every other guard still applies, including the budget and the mutex, and both stops apply in full. CONTRACT.md section 5 carries this exemption: it is the only one in this kit, it belongs to this routine alone, and no other routine has or may add one.
Never guess a window on any later run. A missed scheduled run does not fire once when the machine wakes. The host flushes a burst, and several days of missed fires can arrive inside the same minute. The window guard is the only thing that makes a duplicate or an early fire harmless.
The period key for this cadence is the calendar month, YYYY-MM, computed from the local date. Never derive it from a UTC timestamp: near midnight the two disagree and the disagreement is invisible until a month is gone.
Read state/cos-charter-and-fleet-audit.json.
If last_period equals this period key AND complete is true:
append one run record, status "skipped-already-ran"
exit
If last_period equals this period key AND complete is false AND this is the
hand launched first run with the member in the session:
this is a resume, not a second run.
Keep last_period as it is. Skip every step id already in progress[].
Record notes: "resumed first run".
This is the only exception and it never applies to an unattended run.
An unattended run with complete false exits skipped-already-ran and
leaves the resume to the member.
Otherwise, IMMEDIATELY, before any other work of any kind:
write, temp path plus rename:
{"last_period":"<key>","started":"<ISO now>","complete":false,
"progress":[],"recipes":[],"assumptions":[],"budget_minutes_used":0}
Carry these fields forward when you rewrite the file.
| Field | What it holds | What is lost if you drop it |
|---|---|---|
| cos_root | The resolved absolute working folder | A move out of a synced folder is repeated or forgotten |
| timezone_id_at_intake | The zone id when the charter was written. A record, never an instruction | Nothing decisive, but the charter's dates lose their context |
| capability_notes | What was true about this machine's routes | The same capability probe conclusions are re-derived every month |
| employee_roots | Per root: slug, path, first_seen, last_confirmed, present, gone_on | An Employee that vanished is rediscovered as new, or is silently dropped from the map |
| search_roots | The parent folders the bounded discovery search may walk | The search either widens to the whole disk or narrows to nothing |
| dashboard_tabs | The chosen tabs and the one line reason for each | The dashboard is rebuilt with a different tab set every month |
| registered_times | Per routine id in this kit: the time actually registered | Next month's drift check has nothing to compare against |
| seeded | Whether charter/priorities.md and market/watchlist.md have been seeded | They are re-seeded over the top of two other routines' work |
| first_run_completed_on | The date PATH A finished | PATH A can run a second time and overwrite a live charter |
| research_done_on, dashboard_built_on | Dates | Nothing decisive. They date the charter honestly |
| contribution_cursor | The date Step B4a.2 last read improvements/CHANGELOG.md up to | The same repairs are drafted for sending back a second time, in a second file |
The write happens before the work, not after it. Two instances that start in the same second cannot both proceed, and that is the entire point.
Record the start time from clock.local. Read budget from your row.
Check the clock between units of work: per crawled page, per search query, per candidate folder, per charter file, per dashboard tab, per schedule row. Never only per phase.
Split the budget across the phases in these proportions and compute the minutes from your row rather than carrying any figure in this file:
| Phase | Share of budget |
|---|---|
| Ground the run and build the tree | one tenth |
| Research the business | one quarter |
| Discover the fleet and write the map | one quarter |
| The rest of the charter, and the seeds | one tenth |
| Dashboard | one fifth |
| Schedule rows and registration | one tenth |
At budget: stop cleanly, write what you have, append one run record with status: "partial" and the exact resume step id in notes, delete the browser lock if you took it, and exit.
Append the step id to progress[] the moment each step finishes. Write every output incrementally. A batch held in memory and written at the end loses everything on a budget stop.
A blocked attempt does not consume the run's quota: a run of five sign in screens is not five pages of work.
This routine's lane is light. Most of its work is research through web.fetch, which needs no browser and takes no lock, and file reading, which needs neither.
web.fetch reads a URL's text without a browser. Use it for the whole research phase and fall back to browser.navigate plus page.text only where fetch returns nothing, taking the lock then, per section 6 of the contract.state/browser-lock.json.Read state/cos-charter-and-fleet-audit.json.
first_run_completed_on absent: PATH A, the first run.first_run_completed_on present: PATH B, the monthly pass.Do not run both. PATH B never re-researches the business from scratch and never re-seeds anything. It reads what the kit produced, re-runs discovery, and applies what changed.
Do all of this before you ask the member anything at all.
A1.1 Probe your capabilities live. Work out which capabilities in CONTRACT.md section 3 you actually have on this machine, this run. Try the cheap ones rather than reasoning about them: read the clock, list a folder, fetch one public URL. Never cache a capability result and never reuse a previous run's answer. The failure that rule prevents is real: a browser connected in one month, a routine still writing file only output a month later, and a blocker in the brief the member already fixed.
CAPABILITIES.md maps each capability to a route on each harness. It is the only file in this kit that names a concrete route. If a capability has no route there, take its degradation from the contract table and record it in capability_notes[]. A missing capability makes a smaller run, never a stopped one.
A1.2 Settle the working folder. «COS_ROOT» is the folder this session was launched in, unless the member named another.
Then check it. If any path segment matches, case insensitively, OneDrive, Dropbox, Google Drive, GoogleDrive, iCloud, iCloudDrive, or Box Sync, that folder cannot be the root. state/ and runlog.jsonl are written mid run, and a sync client corrupts exactly the file that tells tomorrow's run what already happened.
Do not stop to ask for a different folder. Choose one: the nearest local path outside every synced tree, under the member's own home directory, named after the kit. Create the tree there. Copy everything already present in the launch folder across. Leave the original in place, because nothing in this kit is deleted, and write one short pointer file beside it naming the new root. Record the move in assumptions[], write one line into charter/CHANGELOG.md, and name the new path in the first line of the report.
A1.3 Confirm the two scripts. scripts/runlog.mjs and scripts/copy-check.mjs ship with the kit. Run the self test:
node "«COS_ROOT»/scripts/copy-check.mjs" --selftest
If shell.run is unavailable, or the runtime is missing, or either script is absent, both capabilities have a second route: runlog.append performs the same validation inside the agent, and copy.check applies the same rule set inside the agent and marks the run record copy-check: in-agent. Take the second route and carry on. The in agent route is a degradation, never an exemption, and you never skip the check.
Put one line in the report naming what the member would gain by installing the runtime named in CAPABILITIES.md. One line, once, not a warning repeated every month.
A1.4 Note the machine facts you will need later: the timezone id, the operating system, whether shell.run works, whether schedule.register has a route, and whether browser control attaches to a browser holding the member's own signed in sessions or starts a clean one. That last one decides how much of cos-market-sweep works, because the kit never authenticates, so a fresh automation browser means every read of a surface behind a sign in lands on a wall and records blocked-login. Record the answer in capability_notes[].
progress[] += grounded.
Create every path in CONTRACT.md section 2 that does not exist. Create nothing that is not in it. A file the map does not name is a file nothing reads.
«COS_ROOT»/
charter/ business.md constraints.md metric-map.md fleet-map.md
priorities.md CHANGELOG.md
fleet/ inbox.jsonl, empty. observations.jsonl, empty.
fleet.json is NOT created here
decisions/ decisions.jsonl, empty. REGISTER.md is NOT created here
dossiers/ empty
market/ watchlist.md, seeded once in Step A7
metrics/ empty
evidence/ sourced.md, two headings and nothing else
briefs/ empty
improvements/ CHANGELOG.md, empty
dashboard/ build.mjs src/index.html src/app.css src/app.js src/pages/
recipes/ BROWSER-RECIPES.md already ships here. No flow files yet
state/ your own file only
archive/ empty
runlog.jsonl empty
Three of these have an exact shape and you write it exactly.
fleet/fleet.json is not created here. cos-fleet-reconcile is its only writer and it builds it on its first morning. decisions/REGISTER.md is not created here for the same reason. One writer per rewritten file is what stops a file from being corrupted by two routines that both meant well.
evidence/sourced.md gets exactly two headings, exactly as the contract writes them, and nothing else:
## Member claims
Written only by the member. Every line is something they can defend in public.
## Agent sourced
Append only. Written by cos-metrics-review and cos-decision-review.
Format: <the exact string that may appear in copy> | <file path it was read from> | <YYYY-MM-DD>
A line with no file path is invalid and copy-check rejects the file.
An empty proof inventory is a correct file. It means the copy carries no claims yet.
progress[] += tree-created.
If any file under charter/ already has content, the member is re-running the install on a live system, or a previous first run stopped part way. That is not a reason to stop and it is not a reason to overwrite.
archive/charter/<name>-YYYY-MM-DD.md first. Moved, preserved, never deleted.## Member claims in evidence/sourced.md is copied forward exactly, character for character. You never rewrite it, never reword it, never merge into it.## Corrections section and every settings block is copied forward verbatim. Step A6 says which blocks those are and why.charter/CHANGELOG.md per file you merged.progress[] += existing-read.
This is the step that decides whether the member spends their morning being interviewed or reading a finished system. Investigate first. Ask about what is left, and there is far less of it than you expect.
In this order, stopping at the first that resolves:
assumptions[]: no site found, charter written from local files only, and carry on with what the folder gave you. The run finishes either way.Prefer web.fetch. It needs no browser, takes no mutex, and costs no lane time. Fall back to browser.navigate plus page.text through read-a-page only where fetch returns nothing.
Read in this order and stop at the phase cap:
| Page | What it settles |
|---|---|
| Home | The one liner, the category language they already use, the primary call to action |
| Pricing | Price, the shape of the ladder, billing period, currency, any trial or guarantee |
| Product or features | What is actually sold, in their own words |
| About | Who it is for, and any founder story that carries a defensible claim |
| Buy URL | The billing shape confirmed at the point of sale, and the conversion surface |
| Terms, refund, or checkout footer | Countries sold into, billing period, guarantee wording |
| Contact or support | Channels they already accept inbound on |
Every line you keep carries the URL you read it on and the date you read it. A line with no source does not get written. Never carry a value forward from a previous run as though you read it today, and never write the value you expected instead of the value you read.
If a page is behind a login wall, follow login-wall. Change nothing, enter nothing, record the platform, and carry on with every page that is not behind it.
On LinkedIn, in this routine as in every other in this kit: read only, always, with no exception. Follow read-linkedin. You may navigate to the member's own logged in pages and read them. Never click Message, Connect, Follow, or Like, never open a composer, never type into LinkedIn, and take no action there of any kind.
Use web.search. If no search route exists at all, write the exact queries you would have run into the run record so the member can run them, mark every finding that depended on them n/a (no search capability), and carry on. Do not substitute a browser tab driving a search engine. That is a different thing wearing the same clothes and it burns budget the crawl needs.
Look for four things, in this order, and stop at the phase cap:
market/watchlist.md in Step A7.Absolute rules for this phase:
evidence/sourced.md, in any form, under any heading.verify-the-query applies before you classify a single row.progress[] += research.
By now you have working answers for most of it. What is left is short, and it is short because you did the work first.
Offer these in one compact block. State the working answer you already have next to each, so the member is correcting rather than composing.
| What you ask | Why research cannot settle it | What you do with no answer |
|---|---|---|
| The three things that matter most for the next quarter | Priorities are a choice, not a fact on a page | Derive them from what the site leads with, mark them as derived, and let cos-decision-review rewrite them on evidence from the second month |
| Anything they can defend in public: numbers, names, quotes, results | A claim is a promise the member has to stand behind. Nothing on a page can authorise them to make it | ## Member claims stays empty. Every file the kit writes then carries no claims, which is honest and ships fine |
| Working days and hours | It is their week | Monday to Friday, and the push suppression uses those hours. Recorded as an assumption |
| What this business will not do | Personal, and often contractual | Nothing is excluded, and cos-decision-brief proposes from the whole space |
| Which folders hold their AI Employees | You can find folders, not their intent | The bounded search in Step A6 and nothing wider |
| Which live screens carry a business number | You can see a site, not their analytics | ## Live screens stays empty and cos-metrics-review takes no browser lane. That is a real answer, not a gap |
Three rules govern this step and they are what keep it from becoming an interview:
assumptions[], phrased so the member can overturn it in one sentence tomorrow. The reconcile puts new assumptions in the brief. That is the whole correction loop.progress[] += answers-settled.
This is the step the whole kit rests on.
Enumerate the candidate roots the member named, plus a bounded search of the parent folder that holds them. Never the whole disk.
The bound is not politeness. A whole disk walk on a developer's machine takes longer than this routine's entire budget, returns hundreds of folders carrying a file called CONTRACT.md, and produces a map full of things that are not AI Employees. Worse, it reads into folders nobody invited this Employee into.
The search set, in order:
«COS_ROOT», one level of children only.Record the resolved search set in search_roots[]. On every later run you search that same set plus any path the member has added, and you never widen it on your own. If the member installs an Employee somewhere else, they name it and it goes in the set. That is one line from them and it is the correct place for that decision.
A folder is an AI Employee only where it carries a contract file, a schedule file, and a run log together.
CONTRACT.md.SCHEDULE.md.routine, period, and status. Usually runlog.jsonl.All three, in the same folder. Two of three is not an AI Employee, and the most common two of three is a repository with a CONTRACT.md about something else entirely.
A candidate that carries a contract file and a schedule file but no run log yet is an Employee that has never run. Record it in the map with first_run: none and say so in one line, because that is a real and important finding: an Employee that was installed and never fired is invisible to every other check in this kit.
Two more rules on the test:
cos-fleet-reconcile reconciles its own siblings the same way it reconciles everybody else's. Leaving it out means this kit is the one thing on the machine nobody is watching.charter/fleet-map.mdThis is the file every other routine in this kit reads to know what exists. One block per Employee, and every value in it read out of that Employee's own files rather than assumed.
## «employee-slug»
- root: C:\«absolute path to the Employee root»
- contract: CONTRACT.md
- schedule: SCHEDULE.md
- runlog: runlog.jsonl
- paused_file: PAUSED
- browser_lock: state/browser-lock.json
- state_files: state/«routine-id».json
- digest: «the file it publishes for siblings, or none»
- weekly_output: «the file it produces weekly, or none»
- present: true
- first_seen: 2026-03-02
- last_confirmed: 2026-03-02
- routines:
- «routine-id» | days: mon-fri | window: 06:30 to 09:45 | key: YYYY-MM-DD | lane: heavy
- «routine-id» | days: fri | window: 15:45 to 19:00 | key: YYYY-Www | lane: read only
Six things about that block, each of which prevents a specific wrong brief:
runlog.jsonl or its digest by any predictable name. The reconcile opens exactly what this block names, so a guessed filename is a routine that reports every Employee as silent.cos-fleet-reconcile raising a silent stop against a cadence nobody runs.state_files is a pattern, discovered. Some kits name a state file after the routine id, some prefix it. Read the folder and write what is there.digest and weekly_output are the only two files in another Employee's folder that this kit reads for content. If a kit publishes neither, write none, and say so in the report: an Employee that publishes nothing for its siblings is one this kit can only count runs for.last_confirmed is the date you actually opened the folder, not the date you wrote the map.Run the judge on the file:
node "«COS_ROOT»/scripts/copy-check.mjs" --file "«COS_ROOT»/charter/fleet-map.md" --dest strategy --json
A FAIL is yours to fix, not the member's to answer. Most failures here are a dash in a path or a routine name, which is genuinely part of the data: where a real path carries one, write the path inside backticks so the checker reads it as a reading rather than as prose, and confirm the value is unchanged.
progress[] += fleet-discovered.
charter/business.md## What is sold, ## Who it is for, ## Price and billing shape, ## Buy URL, ## Landing URL, ## Category language, ## Closest alternatives, ## Sources read.
Every conclusion carries a source URL and a date. ## Sources read holds every claim shaped string you found on the member's own public surfaces, each as the exact string, its URL, and the date it was read. It is a staging area and nothing else: copy.check does not accept a string because it appears there. The member moves a line into ## Member claims in evidence/sourced.md when they are willing to defend it, and only then does the copy gate open for that string.
Where a value is genuinely not public, the line reads n/a (not public), which passes the check and tells the next reader the truth.
charter/constraints.md## Working days and hours, ## What this business will not do, ## Ceilings, ## Corrections.
## Working days and hours is what the push suppression reads, so it is not decoration: a wrong line here means a notification at three in the morning, which is the fastest way to get a channel muted.
## Ceilings is the member's and you never infer it. Any figure that bounds spending or commitment is theirs. Where they gave none, the section says so in one line and cos-decision-brief refuses any move that would require one.
charter/metric-map.md## Fleet metrics, ## Business metrics, ## Live screens, ## Rate floor.
## Rate floor is the member's and you never generate it. Create it empty on the first run. On every monthly rewrite, carry the heading and every line under it across verbatim, whatever they say. cos-metrics-review reads it as an override, and regenerating this file without it silently resets their threshold to the shipped default on the first monthly pass.
## Live screens decides whether cos-metrics-review takes a browser lane at all. Name a screen only where you can name its URL and the exact figure to read off it. Never name a screen inside an account that can spend, ever, whatever the member says: put the metric under ## Business metrics pointing at a file instead, or leave it out and say why. An empty ## Live screens section is a good outcome, and it is the most common one.
Every fleet metric names the file it is read from. A metric with no file behind it does not go in the map, because cos-metrics-review would have to invent a source for it and its whole guarantee is the Source column.
charter/priorities.md, once## Calibration, ## Priorities, ## Corrections.
Write ## Calibration as exactly n/a (no decisions yet) and nothing else. cos-decision-review owns this file from the second month and is the only routine that ever writes a calibration figure into it.
Write at most three priorities, each with the source that justified it and the date. Where the member named them, use their words. Where they did not, derive them from what the site leads with and mark each one derived, so the first monthly review knows it is scoring an inference rather than a commitment.
Set seeded.priorities = true. You never write this file again, on any monthly run, for any reason. Two writers on the priorities file is how a kit ends up steering by two different sets of priorities in the same month.
market/watchlist.md, onceOne block per surface, in the shape cos-market-sweep reads:
## «surface-id»: «name»
- url: https://«the entry point»
- kind: pricing | changelog | careers | category-listing | forum | review
- watch_for: «one clause saying what a change here would mean»
- flow: none yet
- added_on: 2026-03-02
- added_by: cos-charter-and-fleet-audit
Seed from what A4.3 found: the pricing page and the changelog of each close alternative, the category listings this offer sits in, and the forums and review surfaces where this category is discussed. Test each one before you write it down. Load it, confirm it carries dated items, and only then write the block. A surface that does not load, or that carries no dated items, does not go in the file.
Cap the seed at eight surfaces. A watchlist longer than the sweep's weekly budget can read is a watchlist whose bottom half is never read, and the sweep has no way to know that the surfaces it never reaches are the ones that mattered.
Set seeded.watchlist = true. You never write this file again. cos-market-sweep owns it from its first run, adds what it proves worth watching, and retires what produces nothing.
progress[] += charter-written.
The idea worth the time: the fleet's state and the week's evidence are one page. The member opens one file and sees which Employees are running, which faults are open, what the market did, what the numbers say, and what is waiting on a tick.
Always include Fleet, Decisions, and Charter. Then one tab per evidence stream that actually exists on this machine: Faults where any Employee has ever recorded a failure, Market where the watchlist has at least one surface, Metrics where the metric map names at least one metric.
Cap the build at six tabs. Record the chosen tabs and the one line reason for each in dashboard_tabs[].
On a first run, fleet/fleet.json does not exist yet, because cos-fleet-reconcile writes it tomorrow morning. So on the first run the Fleet tab renders the map you just wrote, each Employee marked as not yet reconciled, and the build reads fleet/fleet.json from the next run onward. Say that in one line on the tab itself so the member is not looking at an empty page wondering what broke.
dashboard/
build.mjs
src/
index.html the shell, with exactly three markers
app.css
app.js
pages/10-fleet.html
pages/20-decisions.html
pages/NN-«tab».html
index.html the built single file, never hand edited
The shell carries these three markers and nothing else that looks like them:
<!--CSS--> <!--PAGES--> <!--JS-->
build.mjs, dependency free, no install step, no package file// build.mjs concatenates src into one self contained index.html
import { readFileSync, writeFileSync, readdirSync } from "node:fs";
import { join, dirname } from "node:path";
import { fileURLToPath } from "node:url";
const here = dirname(fileURLToPath(import.meta.url));
const src = join(here, "src");
const read = (p) => readFileSync(p, "utf8").replace(/^\uFEFF/, "");
const css = read(join(src, "app.css"));
const js = read(join(src, "app.js"));
const pages = readdirSync(join(src, "pages"))
.filter((f) => f.endsWith(".html"))
.sort()
.map((f) => read(join(src, "pages", f)))
.join("\n");
// split/join, not replace: a replacement string containing $& or $1 would be
// interpreted by String.replace and silently mangle the page.
let out = read(join(src, "index.html"));
out = out.split("<!--CSS-->").join(`<style>\n${css}\n</style>`);
out = out.split("<!--PAGES-->").join(pages);
out = out.split("<!--JS-->").join(`<script>\n${js}\n</script>`);
writeFileSync(join(here, "index.html"), out, "utf8");
console.log("built index.html", out.length, "bytes");
Write the byte order mark strip as the escape \uFEFF, never as the literal character. A literal mark inside a source file is invisible in every editor and survives a copy and paste as something else.
Where shell.run has no route, do the same concatenation yourself with file.read and file.write, in the same order, with the same split and join semantics, and record build: in-agent in the run record. The built file is identical either way.
| Tab | Renders from | The one thing it must show |
|---|---|---|
| Fleet | fleet/fleet.json, or charter/fleet-map.md on the first run | Every routine on the machine with its state, and the open faults with their ages |
| Decisions | decisions/REGISTER.md and decisions/decisions.jsonl | Every row waiting on a tick, and the last quarter's outcomes |
| Charter | The four charter files | What this business sells, its constraints, and its priorities, each with its date |
| Faults | dossiers/*.md | The newest dossier per open fault, with its correction line and the path it belongs in |
| Market | market/market-*.md | This week's observations with their links |
| Metrics | metrics/metrics-*.md | The numbers table with its Source column intact |
Every figure the dashboard renders keeps the Source cell the file gave it. A dashboard that strips the source is a dashboard that turns a measurement into a claim.
Run the judge over every partial before you build:
node "«COS_ROOT»/scripts/copy-check.mjs" --file dashboard/src/pages/«tab».html --dest dashboard --json
A partial that fails does not go into the build. Fix the line, run it again, and only after a second failure replace the body with a one line statement of what is missing and name it in the report.
Then build. Then verify, in two tiers, and take the first that works.
Tier one, off disk, always available. file.read the built dashboard/index.html and confirm four things: none of the three markers survives in the output, the byte length is greater than the sum of the shell and the stylesheet, every tab in dashboard_tabs[] appears once, and no absolute machine path and no « or » appears anywhere in it. This tier needs no browser and it is the one that always runs.
Tier two, in a browser, where the harness allows it. Take the browser mutex here, per Step 0.4 and CONTRACT.md section 6. This is the step Step 0.4 names. Then tab-hygiene, then read-a-page on the built file, then page.capture. Confirm the top bar renders and one tab shows its content. Follow batch-a-round-trip so a capture is never the last action of a batch.
Tier two does not exist on every harness and you find that out by trying once. Some browser control rewrites a local file address to a web one, which lands you on a page that is not your dashboard. If the address is rewritten, or the page does not load, do not build a second path to it: a local server plus a fetch raises a permission prompt that nobody is awake to answer in a scheduled run. Fall back to tier one, write dashboard not viewed in a browser in the report, and move on. The file is still correct.
Release the mutex in the same block that writes the run record, on every exit path.
progress[] += dashboard-built.
You register the jobs. You do not propose a table and wait for a yes. There is no sentence anywhere in this routine asking the member to approve a schedule.
And you register exactly seven jobs, all of them in this kit. Another Employee's jobs are not yours, on the first run or ever.
List «COS_ROOT»/routines/*/SKILL.md. For each, read the YAML name. That string is the routine id, and it equals the folder name. Key everything on the id. Never key on the H1 or on a display name: display names drift, ids do not.
A folder whose YAML name and folder name differ is broken. Rename the folder to match the name key, record it in charter/CHANGELOG.md, and carry on. This applies to this kit's own folders only.
| What you find | What you do |
|---|---|
| A folder with a matching row | Nothing. The row is authoritative |
| A folder with no row | Write one, per A9.3 |
| A row with no folder | Name it in the report and register no job for it. Never remove a row. A removed row is data destroyed to save a line of output |
| Two rows sharing a fire minute | Move the later one, per A9.3, and write both times into charter/CHANGELOG.md |
| A browser capable fire inside another routine's budget plus twenty minutes, within this kit | Move the later one, per A9.3 |
| A row whose days is off | Leave it exactly as it is. off is the member's word and only they write it |
description, which names the cadence in words. Where it names none, weekly.recipes/BROWSER-RECIPES.md by name, it is browser capable. If it references none, its lane is never.never takes any free minute. A browser capable routine takes the first free minute at or after the last browser capable fire of that day, plus that routine's full budget, plus twenty minutes. Use the budget, never the typical run time.charter/CHANGELOG.md. One line in assumptions[].No two rows share a fire minute, even for routines that never touch a browser. Hosts flush queued jobs in bursts, and two agent sessions starting in the same second compete for the same files.
Per run caps do not go in this table. They live in human-pace in the recipes file, in one place.
One job per routine, seven jobs, named after the routine id exactly, so next month's drift check can match a registered job to a row. Never one job that runs several routines in sequence: a chained job defeats the per routine period guard, blurs the budgets, and turns one failure into seven.
Register through schedule.register. CAPABILITIES.md carries the mechanism per harness and the exact expression for each operating system scheduler. Read it before you register a monthly row, and take the expression it gives you rather than composing one. The two monthly cadences do not express the way people assume they do: on the common schedulers the intuitive expression quietly widens to every weekday of the month, and the shipped expressions are deliberately generous about when so the routine's own days value and its monthly period key can reduce the burst to exactly one run. Be generous about when, be strict about how many times.
Point each job at «COS_ROOT»/routines/ as the routine source. Never register a job against a copy of a routine folder somewhere else. Every routine ends with a ## Corrections section the member writes into and the routine reads at the top of every run. A correction written into a copy is lost the next time the folders are copied across, and one written into the original is never read at all.
Work out the invocation before you register anything, and prove it once. CAPABILITIES.md gives its shape per harness. Take that line, run cos-fleet-reconcile with it by hand, and confirm it wrote brief-latest.md and one line into runlog.jsonl before you register the other six. Seven jobs registered on an invocation nobody has run is seven silent failures on the same morning, and the first thing the member sees is an empty brief. Where the scheduler wants the invocation in a file rather than inline, write one line launcher per routine into «COS_ROOT»/run/ and point the job at that.
Where schedule.register has no route on this machine, write the exact commands to «COS_ROOT»/schedule-commands.txt, expanded rather than carrying a placeholder anybody has to translate, and name that file in the first paragraph of the report and in the run record. That is the capability's own last route, not a handoff and not a failure. The kit runs identically whichever of the three registered it, because every routine reads the clock and its own row and decides for itself whether to work. A job that fires at the wrong time is caught by the window guard. A job that fires twice is caught by the period guard. The scheduler is a starter motor, not a controller.
Record what you registered in registered_times{}, keyed by routine id.
One line in the report, once, on the first run only, about the setting that decides whether the schedule produces anything at all: a routine launched in a mode that asks a human for permission does not fail at dawn, it hangs, so there is no run record, no brief, and no blocker to read in the morning. CAPABILITIES.md names the setting and explains why turning it off weakens nothing, because the prompt gate was never what stopped this kit from sending. Point at that section. Do not restate its argument here.
progress[] += schedule-registered.
Set first_run_completed_on to today's local date and complete: true. Write the state file, temp path plus rename. Write the report, per the reporting section below. Append exactly one run record.
Unattended. Nobody is watching. Nothing waits for anybody, and nothing is re-researched from scratch.
Read exactly these, in this order, and stop at a quarter of your budget.
runlog.jsonl for the last thirty five days. Strip a leading byte order mark from the head of the file before parsing. Count runs per routine, statuses, and repeated blockers.fleet/fleet.json and the last month of fleet/observations.jsonl.state/<routine-id>.json files in this kit. assumptions[] and progress[] are where you find out what the kit has been guessing at.charter/CHANGELOG.md since your last run.SCHEDULE.md in full, for the drift check in B3.employee_roots, search_roots, dashboard_tabs, registered_times, capability_notes, seeded.## Corrections section in this kit, including the one at the bottom of this file.VERSION, improvements/CHANGELOG.md, and state/kit-update.json where it exists, for the two checks in B4a.The weekly market and metrics pages are not on this list and that is deliberate. Their reader set does not include this routine, and every finding on them that concerns you reaches you as a Needs you line surfaced through the reconcile and through charter/CHANGELOG.md, which is the form you can act on.
Run the same bounded search from A6.1, over search_roots[] plus anything the member has added. Apply the same three part test from A6.2. Then reconcile what you found against charter/fleet-map.md.
| What the reconcile finds | What you do |
|---|---|
| An Employee that appeared | Write a full block for it, per A6.3, with first_seen today. One line in charter/CHANGELOG.md. One line in the report |
| An Employee whose root has vanished | Recorded as gone, never deleted. Set present: false and gone_on to today, leave the whole block in place, and name it in the report. The member may have moved it, and a block deleted is a month of history destroyed to save six lines |
| An Employee that was gone and is back | Set present: true, clear gone_on, update last_confirmed. One changelog line |
| A routine whose own schedule row changed | Correct the expected cadence here. This is the most valuable single line this routine writes: without it, cos-fleet-reconcile raises a silent stop against a cadence nobody runs, every morning, and the member learns to ignore the section |
| A routine that appeared in an Employee | Add its row to that Employee's block, taken from that Employee's own schedule file |
| A routine that disappeared from an Employee's schedule file | Mark the row retired «date» in place. Never delete it |
| An Employee's digest or weekly output filename changed | Update it. The reconcile opens exactly what this block names, so a stale filename is an Employee that reports as publishing nothing |
| An Employee whose schedule file no longer parses | Keep the previous rows, mark the block schedule unparsable «date», and name the file. Never guess a cadence to fill the gap |
| An Employee that carries a contract and a schedule but still has no run log | first_run: none, one line in the report. An Employee installed and never fired is invisible to every other check |
| A candidate folder that fails the three part test | Not an Employee. It does not go in the map and it does not go in the report |
Update last_confirmed on every block you actually opened this run. A block you did not reach keeps its previous date, and the date is what tells the reconcile how stale the map is.
Tolerance: ten minutes. A registered time within ten minutes of its row is scheduler jitter, not drift. The Desktop app adds a deterministic delay of a few minutes to every task, measured at seven seconds to just over seven minutes, and other schedulers have their own. Treat the registered time plus that delay as correct, report nothing, and re-register only beyond ten minutes.
Check each of these. Where the check finds something, fix it and say what you fixed. Where you cannot fix it, name it and say why.
| Drift | What you do |
|---|---|
Take markfulton/cos-charter-and-fleet-audit from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference npx.
Without those the skill loads but fails at the first command.