atlas-finance/kestrel-env2-v28-task-02-rollout
harbor run -t handshake-ai/kestrel-env2-task-02harbor download handshake-ai/kestrel-env2-task-02Build the Project Helios 500 MW ERCOT wind IPP project-finance model
You are Priya Nair, an associate on Kestrel Partners' North America Power & Renewables desk. Ryan Delgado (VP) has asked you to build the Project Helios project-finance model for the client Lone Star Renewables Partners - a 500 MW onshore wind IPP in West Texas (ERCOT North). Work from your inbox, where Lone Star's data pack from Dana Cole was emailed to you as it arrived (project specs, capex, opex, PPA & merchant terms, PTC memo, debt term sheet, tax-equity term sheet, hedge note, plus the working-capital, refinancing and sponsor-return notes) and Ryan's modelling brief (deliverable structure, macro/tax and MACRS basis, sensitivity spec, formatting overrides) carry everything you need. Build the model to the brief and the house modelling standards; do not ask anyone for results.
Your workspace
You're working in a real Linux workstation. Your home directory is /home/agent/workspace, and you have a shell plus python3 with the standard document libraries already installed (no internet — everything you need is present): openpyxl and pandas for Excel, python-docx for Word, python-pptx for PowerPoint, and pypdf / pdfplumber / reportlab for PDF, plus matplotlib and pillow.
Use them to actually open the files you work with — when you download a file from Drive or save an email attachment, open it from the path the tool returns by writing a short script and running python3 script.py (e.g. openpyxl.load_workbook(path) to read a spreadsheet's real cell values). Build your deliverable as a real file the same way, and save the finished version as /home/agent/workspace/submitted_output.xlsx — that exact name and location is where your work gets collected from.
Where the deliverable is a spreadsheet, leave the working as live in-cell formulas rather than replacing them with the numbers they happen to produce. Hardcoding a computed number where a formula belongs is an error even when the number is right.
Formula recalculation
Limitation: openpyxl can write Excel formulas but does not calculate them.
If you save a workbook with formulas and immediately reopen it with openpyxl.load_workbook(..., data_only=True), formula cells return None unless the workbook has first been recalculated by a real spreadsheet engine such as LibreOffice Calc.
If you create or modify a workbook with formulas and need computed values — for validation, for downstream deliverables, or because the finished workbook must carry them — recalculate it with LibreOffice in headless mode before reading those values.
Use this command:
atlas-recalc /home/agent/workspace/submitted_output.xlsx
It recalculates the file IN PLACE, keeping your formulas and filling in their computed values, and it handles the details that make a raw soffice call unreliable: a private profile, a forced recalculation on load, repeated passes until the values stop moving, and a timeout. Reading values from a separate recalculated copy is not enough here — the workbook you hand in is the one that is graded, so the values have to be in it.
Run it after your last edit. Any later write with openpyxl clears the computed values again.
Only after recalculating should you reopen with "openpyxl.load_workbook(path, data_only=True)" and check the numbers are what you expect. That is also the cheapest way to catch a wiring error before you hand the model in.
If your model is deliberately circular — interest on average cash, an iterative WACC — declare that in the workbook's calculation settings (iterate="1" with an iterateDelta, e.g. 100 iterations at 0.0001). Undeclared, the values are held to a far stricter convergence test and a circular model will not settle. Avoid volatile functions (NOW, TODAY, RAND, OFFSET, INDIRECT) in cells that matter: they change on every recalculation and never settle.
If recalculation fails, do NOT read the file with data_only=True and trust what you get — the values are absent or stale (often zero). Instead fix the model, or validate the logic independently in Python and inspect the formula strings with data_only=False.
Do this work yourself. Do not delegate any part of the task to sub-agents or spawn other agents to do it for you — build the model, read the sources and write the deliverable in this session.
If the task also asks you to deliver the workbook under a different filename, finish and save submitted_output.xlsx first, then make the delivery-named file as a byte-for-byte copy. Do not independently save or re-serialize the workbook under both names: spreadsheet libraries can produce different bytes from two saves of the same in-memory workbook. Verify both files have the same SHA-256 before delivering the copy under that name.
Final submission
Keep the collected copy at /home/agent/workspace/submitted_output.xlsx.
Then send the completed workbook through Outlook from your own account:
The attached business-facing workbook and /home/agent/workspace/submitted_output.xlsx must be copies of the same completed model.
Authoritative modelling conventions
The following conventions are authoritative for this build and supersede any inconsistent shorthand elsewhere.