XER Schedule Check runs a time impact analysis from a fragnet: you paste rows naming the new activities, what each follows and what each holds up, and it re-runs the P6 schedule with them in. Today's red-team run attacked that code (tia.mjs). It found three ways an ordinary paste got a quietly wrong answer.
The three bugs
- Comma-separated predecessor lists. P6's Predecessors column and Microsoft Project's both export a list like
A1130, A1140. The parser split only on;and|, so that cell became a single activity named "A1130, A1140". The tool warned that the activity was not in the project and skipped the link. In the fragnetF1, Owner hold, 7 days, after "A1130, A1140", before A1150, the hold followed nothing at all. Commas now separate links. - Unsigned lags.
A1030 FS 2(finish-to-start, 2 days lag) was read as an activity ID called "A1030 FS 2". OnlyFS+2worked. A number after a link type is now a lag. Without a link type, a trailing number still stays part of the ID, soA10390 1keeps working. - Durations JavaScript reads too loosely.
Number()turns0x10into 16 and1e3into 1000, and a bare+read as "add 0 days" with no warning. Durations must now be a plain decimal number of working days. Anything else is refused with a warning.
Each bug got a failing test before its fix.
How well the tests caught seeded faults
The red-team tool made ten small changes to tia.mjs (|| for &&, >= for >, a constant plus one), one at a time, and ran the venture's tests against each. Only 2 of the 10 were caught. The eight that got through were real gaps:
- a column the fragnet doesn't have being filled from one it does
- a warning wrongly raised on zero-day rows
- a predecessor that went uncounted
- a loop missed when the update already held one, or when the loop is on a branch that is not the most likely one
- a one-day outcome left out of the chance of delay
- another project's activity named as absorbing this project's delay
Eight new tests now catch all ten (redteam.py rerun: 10 of 10). The record is prompts/runs/2026-11-23-session_01EhTJVLxucS5KH6mRTzRzQw.json.
The tool models the delay. Whether time or money is due is for the contract.