GrepBoard/Manuals
605 manuals ·

Draft a task breakdown with dependencies, then check the dates

·Tested on Claude Sonnet 5.5 · 2026-10·Test scope ↓·6 steps

Get a seminar prep plan as a task table with durations and predecessors, then compare letting the AI write the dates with letting a script calculate them.

You are planning your first event, and you do not know what has to come first or whether it fits before the deadline. An AI returns a task table in seconds, but whether the dates in that table match the calendar is a separate matter. The example is an invented internal seminar for 80 people. The table comes back as CSV, a script checks it for wrong dates, and a second approach hands the date arithmetic to the script altogether.

[1] The conditions are split into sections. OpenAI's prompt engineering guide suggests Markdown headings or XML tags to separate instructions from material, so the prompt uses <constraints> and <output format>. The calendar conditions were made deliberately awkward. Preparation runs from Monday 2026-11-23 to Wednesday 12-09, which is 12 business days, and Thursday 11-26 is a company holiday. The speaker's slides arrive on Thursday 12-03, a fixed item (M1).

run/p1.en.prompt.txt
Make a preparation schedule for an internal seminar as a CSV. <constraints>- Seminar day: 2026-12-10 (Thu), 80 attendees- Preparation starts 2026-11-23 (Mon) and must be finished by 2026-12-09 (Wed).- Two people, A and B, do the work, and one person does only one task on a given day.- Saturdays, Sundays and 2026-11-26 (Thu, a company holiday) are days off. There are no other days off.- Already fixed: the speaker sends the slides on 2026-12-03 (Thu). Put this in the table as ID M1, Owner -, Days 0, Start and End 2026-12-03.</constraints> <output format>Output a single CSV with no explanatory text. The columns are ID,Task,Owner,Days,Predecessors,Start,End.- Use 10 to 14 tasks including M1; IDs are T01, T02, ... except M1.- Days is the number of business days, counting the start date as day 1.- Join several predecessors with ; and write - when there is none.- A task starts on or after the next business day following the end of its predecessors.</output format>

[2] The first approach asks for the dates too. User instructions and tools are switched off, and the prompt goes in on standard input.

console
$ claude -p --model claude-sonnet-5-5 --max-turns 1 --tools "" --setting-sources "" --strict-mcp-config < run/p1.en.prompt.txt > run/p1.en.1.out.txt
output
ID,Task,Owner,Days,Predecessors,Start,EndM1,Speaker sends slides,-,0,-,2026-12-03,2026-12-03T01,Define agenda and time slots,A,1,-,2026-11-23,2026-11-23T02,Create registration form,B,1,-,2026-11-23,2026-11-23T03,Book venue and AV equipment for 80 attendees,A,1,T01,2026-11-24,2026-11-24T04,Send invitations and collect registrations,B,4,T02,2026-11-24,2026-11-30T05,Prepare feedback survey form,A,1,T01,2026-11-25,2026-11-25T06,Draft MC script and run-of-show,A,2,T01;T03,2026-11-27,2026-11-30…

[3] Instead of counting dates by eye, run/wbs_check.py looks at the following: every predecessor ID exists in the table, there is no circular dependency, no start or end falls on a day off, duration and dates agree (the start counts as day 1 and days off are skipped), each predecessor ends before its successor starts, one owner never has two overlapping tasks, the last End is within the deadline, M1 exists and is on 12-03, there are 10 to 14 tasks, no ID is repeated, every owner is A or B, and every duration is an integer of 1 or more. The calendar arithmetic:

run/wbs_check.py
…def is_bd(d): return d.weekday() < 5 and d not in HOLIDAYSdef next_bd(d):    d += dt.timedelta(days=1)    while not is_bd(d): d += dt.timedelta(days=1)    return ddef add_bd(start, n):                      # 시작일을 1일째로 센 n 영업일째 날    d = start    for _ in range(n - 1): d = next_bd(d)    return d…def plan(tasks):    byid = {t["id"]: t for t in tasks}; done, order = set(), []    while len(order) < len(tasks):        ready = [t for t in tasks if t["id"] not in done and all(p in done for p in t["pred"] if p in byid)]        if not ready: raise SystemExit("cycle")        t = ready[0]; done.add(t["id"]); order.append(t)    free = {}    for t in order:        if t["id"] == FIXED[0]: t["s"] = t["e"] = FIXED[1]; continue        s = START        for p in t["pred"]: s = max(s, next_bd(byid[p]["e"]))        if t["who"] not in ("", "-"): s = max(s, free.get(t["who"], START))        t["s"], t["e"] = s, add_bd(s, t["dur"])        if t["who"] not in ("", "-"): free[t["who"]] = next_bd(t["e"])    return tasks…
console
$ python run/wbs_check.py check run/p1.en.1.out.txt en14 tasks · last End 2026-12-09 · 0 business day(s) before the deadline · FAIL 0

Six of the 12 model outputs came wrapped in a ``` `csv ``` fence (all 6 Korean runs); the script drops fence lines before reading.

[4] To see whether the checker really catches a wrong table, twelve copies of the table above were made with exactly one defect each (unknown predecessor, circular dependency, Saturday date, holiday date, wrong duration, starting before the predecessor ends, one owner overlapping, past the deadline, M1 moved, M1 deleted, owner C, zero days) with run/make_faults.py. All twelve returned FAIL (these are not model output). The first version of the checker passed the last three, so those checks were added. One example:

console
$ python run/wbs_check.py check run/fault_en_holiday.csv enFAIL T01: day offFAIL T03: predecessor End is not before successor Start: T01(2026-11-26) -> T03(2026-11-24)FAIL T05: predecessor End is not before successor Start: T01(2026-11-26) -> T05(2026-11-25)14 tasks · last End 2026-12-09 · 0 business day(s) before the deadline · FAIL 3

[5] The second approach tells the model not to write dates, takes only durations and predecessors, and lets the plan mode calculate the dates. It follows the Gemini prompting strategies advice to split a complex job into steps and feed one step's output into the next. The prompt changes in its first line, the M1 line and the output format; the other constraints are the same.

run/p2.en.prompt.txt
Break the preparation of an internal seminar into tasks and give their dependencies as a CSV. Do not write dates; dates are calculated separately.…<output format>Output a single CSV with no explanatory text. The columns are ID,Task,Owner,Days,Predecessors.- Use 10 to 14 tasks including M1; IDs are T01, T02, ... except M1.- Days is the number of business days.- Join several predecessors with ; and write - when there is none.</output format>
console
$ python run/wbs_check.py plan run/p2.en.1.out.txt run/p2.en.1.plan.csv endependencies only: earliest End 2026-12-09+1 day on 5 of 13 tasks pushes past the deadline14 tasks · last End 2026-12-09 · 0 business day(s) before the deadline · FAIL 0

plan sets the earliest dates that respect dependencies and days off, and puts one owner's tasks back to back on the next business day. The first line is the earliest End when owners are ignored and only dependencies count; the last line includes the two-person limit. That result is one assignment, made in the order of the rows, and not the shortest schedule: moving a single row can change the end date (run/reorder.py; in the Korean table the same move changed 12-09 to 12-08, in this one nothing changed).

console
$ python run/reorder.py enoriginal row order: 2026-12-09T11 moved before T09: 2026-12-09

[6] Results for the 6 English runs. p0 leaves out the rules for counting business days ("the start is day 1", "start on or after the next business day following the predecessor"), p1 is the prompt above (dates requested), and p2 is the second approach (the script calculates the dates).

console
$ python run/summary.py enp0.en.1.out.txt (check): 14 tasks · last End 2026-12-09 · 0 business day(s) before the deadline · FAIL 0p0.en.2.out.txt (check): 13 tasks · last End 2026-12-09 · 0 business day(s) before the deadline · FAIL 0p1.en.1.out.txt (check): 14 tasks · last End 2026-12-09 · 0 business day(s) before the deadline · FAIL 0p1.en.2.out.txt (check): 13 tasks · last End 2026-12-09 · 0 business day(s) before the deadline · FAIL 0p2.en.1.out.txt (plan): 14 tasks · last End 2026-12-09 · 0 business day(s) before the deadline · FAIL 0p2.en.2.out.txt (plan): 14 tasks · last End 2026-12-09 · 0 business day(s) before the deadline · FAIL 0
  • No wrong dates showed up in this run. All 8 runs where the model wrote the dates (p0 and p1, 4 English and 4 Korean) passed every check above, including p0 without the counting rules. The weekend and holiday arithmetic came out right for this input; that is no evidence it will for a larger plan or other conditions.
  • A pass can still have no slack. All 12 tables ended on the deadline day itself (12-09). In both English p2 runs, lengthening any one of 5 of the 13 tasks by one business day pushes the plan past the deadline.
  • What the checker cannot see. Whether a task is missing (a table with no venue booking), whether the durations are realistic, and whether one person can really finish a two-day job in two days. Durations and predecessors are the part of the AI draft a person has to correct.

Do not use this where the holiday rules are complicated (shifts, regional holidays): the script only knows Saturdays, Sundays and the one day you give it.

#wbs#schedule#dependency#prompt