DEV Community

Blue Feather Designs
Blue Feather Designs

Posted on Edited on

Check the unit before you scope the fit out: a worked example in Python

A fit out quote is only as reliable as the scope behind it. This walkthrough builds a short Python script that compares what the landlord says is in a unit with what the business needs. It sorts every line into keep, alter or add, and it shows which lines have nobody's name against them. A second script then turns the client's CDM duties, and some HSE advice, into a checklist. Both run on the standard library, and both work on an invented unit.

By the end you will have:

  • an inventory file of what the landlord says the unit contains
  • a plan file of what the business needs
  • a script that sorts each line into keep, alter or add and lists the gaps
  • a second script that lists the client's open duties by stage
  • a short list of approvals to ask about

The code is a planning aid and not a legal tool. The rules quoted come from the Health and Safety Executive (HSE), GOV.UK, the Planning Portal and an industry wiki. Each is named where it appears. It covers England only. Check each point with the body or adviser the page names. Where a page gives no figure, the post says so.

A London design studio, Blue Feather Designs, wrote this post. The studio draws, specifies and coordinates, and contractors build. It is not an architect, a structural engineer, a fire risk assessor, a building control body or a lawyer. When the text describes the studio's own practice, it says so.

Step 1: why compare two lists

A wiki on construction, Designing Buildings, says that Category A has no standard definition, and that the other fit out categories lack one too. Its advice is to put the exact work, and the person doing it, into the contract documents. Short labels are not enough. That advice is the whole idea of this script. It forces two lists onto the table: what the unit contains and what the business needs.

The same page describes four starting points for a unit:

  • Shell and core: the structure, cladding, base plant, finished common areas and external works.
  • Category A: the level the developer takes the tenant's space to. The wiki's examples are raised floors, suspended ceilings, mechanical and electrical services, internal finishes and blinds.
  • Category B: the interior completed to the tenant's requirements.
  • Turnkey: a unit already fitted out for the tenant by the developer, ready to use.

These descriptions are the wiki's own and not official guidance. The wiki also leans on office buildings. Treat them as a way to start a conversation.

Step 2: meet the example unit

The example is invented. A ten person office takes a floor in a building where the landlord has finished a base level, which the agent calls Category A. Every item and every owner in the data below is made up. Swap in your own.

The tenant wants meeting rooms, a reception, data cabling, screens, a kitchen area, furniture and the company's own finishes. That is a typical Category B list. The tenant also wants to move some ceiling lighting to suit the new partitions, which touches work the landlord did.

Step 3: write the inventory

The wiki says an agreement to lease should define what the developer built as shell and core. It should also name any Category A works that the tenant installs and the landlord pays for. A floor taken from a landlord has the same gap in miniature. Ask the agent for a written inventory and put each line in a file. The tested_by column records who stands behind the item. The script does not read it. It is there for your own reference.

import csv
import io

INVENTORY = """item,state,tested_by
raised_floor,present,landlord
suspended_ceiling,present,landlord
ceiling_lighting,present,landlord
heating_and_cooling,present,landlord
power_to_floor_box,present,landlord
internal_finishes,present,landlord
blinds,present,landlord
fire_detection,present,landlord
"""
Enter fullscreen mode Exit fullscreen mode

Nothing in the data is a rule. The items follow the wiki's Category A examples, with a few additions of the example's own, such as fire detection and ceiling lighting. Keep names short so the output stays readable.

Step 4: write the plan

The plan lists what the business needs, one line per item. The action is keep, alter or add. The owner is whoever will supply and install it, or stays blank if nobody has been named yet. Most of the added items come from the wiki's Category B list: finishes and branding, offices and meeting rooms, reception areas, ICT and audio visual equipment, kitchen areas and furniture.

PLAN = """item,action,owner
suspended_ceiling,alter,
ceiling_lighting,alter,contractor
power_to_floor_box,keep,
internal_finishes,keep,
meeting_room_partitions,add,contractor
reception_desk,add,
data_cabling,add,contractor
screens_and_av,add,
kitchen_area,add,contractor
furniture,add,tenant
branding_and_final_finishes,add,contractor
"""
Enter fullscreen mode Exit fullscreen mode

Two lines are blank on purpose. A blank is the most useful data in the file, because it marks something that will otherwise be priced by nobody or by everybody.

Step 5: the comparison script

Save the three code blocks from steps 3, 4 and 5, in that order, in one file called scope_check.py. The script reads both lists and sorts each plan line against the inventory. A kept item has to exist in the inventory. An altered item has to exist as well, and an added item must not. Anything else is reported as a mismatch. Every altered or added line with no owner goes onto the gap list.

def load(text):
    return list(csv.DictReader(io.StringIO(text)))

inventory = {row["item"]: row for row in load(INVENTORY)}
plan = load(PLAN)

keep, alter, add, gaps = [], [], [], []
for row in plan:
    item, action, owner = row["item"], row["action"], row["owner"].strip()
    present = item in inventory
    if action == "keep" and present:
        keep.append(item)
    elif action == "alter" and present:
        alter.append(item)
    elif action == "add" and not present:
        add.append(item)
    else:
        gaps.append(f"{item}: plan says {action} but inventory does not match")
    if action in ("alter", "add") and not owner:
        gaps.append(f"{item}: no owner named")

planned = {row["item"] for row in plan}
unused = sorted(set(inventory).difference(planned))

print("KEEP  (check the landlord's test record):", ", ".join(keep))
print("ALTER (check the lease and ask for consent):", ", ".join(alter))
print("ADD   (needs a scope line in a contract):", ", ".join(add))
print("NOT IN PLAN (decide: reuse, remove or leave):", ", ".join(unused))
print()
print("GAPS TO CLOSE BEFORE ANY QUOTE:")
for g in gaps:
    print("  *", g)
Enter fullscreen mode Exit fullscreen mode

Step 6: read the report

Run it and the output looks like this.

KEEP  (check the landlord's test record): power_to_floor_box, internal_finishes
ALTER (check the lease and ask for consent): suspended_ceiling, ceiling_lighting
ADD   (needs a scope line in a contract): meeting_room_partitions, reception_desk, data_cabling, screens_and_av, kitchen_area, furniture, branding_and_final_finishes
NOT IN PLAN (decide: reuse, remove or leave): blinds, fire_detection, heating_and_cooling, raised_floor

GAPS TO CLOSE BEFORE ANY QUOTE:
  * suspended_ceiling: no owner named
  * reception_desk: no owner named
  * screens_and_av: no owner named
Enter fullscreen mode Exit fullscreen mode

Read the report from the top:

  • Keep: the floor box and the finishes stay, so ask the landlord for the test record behind them.
  • Alter: the ceiling and the lighting must change, so check the lease for who may touch them.
  • Add: the scope to be priced.
  • Not in plan: four landlord items the business never mentioned. Each needs a decision, so nobody removes or damages one by accident.

The gap list is the part to act on. Three lines have no owner. In this example the ceiling alteration, the reception desk and the screens would each reach a tender with a hole in the scope.

Step 7: close each gap in writing

The wiki's advice applies line by line. For each gap, write down the work and the person who does it, then put it into the contract papers. Do not leave it as a verbal understanding. The example might settle it like this: the contractor takes the ceiling alteration, the tenant buys the reception desk and the contractor installs the screens.

The studio's restaurant page says it will work with any qualified construction team the client picks. It can also help put the project out to tender, and it usually advises at least three quotes. Give every bidder the same corrected file. Then the quotes can be compared line against line, and what each one leaves out becomes visible.

The HSE leaflet for clients adds a check on the bidders themselves. Designers and contractors should be able to give references from previous clients for similar work, and explain how they will manage the risks. Add a column for it if you like.

Step 8: put the client duties in a second file

The scope file covers what is built. A second file covers what the client must do. The HSE says the commercial client holds the contractual control and decides the money, time and other resources. A commercial client is any person or organisation that takes on building work for a business, so a tenant fitting out an office counts.

The checklist below is built from HSE pages. They list these duties for the commercial client:

  • suitable arrangements to manage the project
  • enough time and resources for each stage
  • pre-construction information for those pricing the job
  • a construction phase plan before work begins
  • suitable welfare facilities
  • a health and safety file kept at the end

The HSE leaflet for clients adds three more points:

  • it suggests a written client brief
  • it says no work should start where asbestos may be present until a survey is done
  • where more than one contractor is involved, it says to appoint a principal designer and a principal contractor in writing, as early as possible

The stage labels in the file (design, tender, start, end) are the author's own grouping and not the law's. Two lines are marked as HSE advice, because the leaflet suggests them and does not list them as duties. Move items between stages if your project needs it.

DUTIES = [
    # (stage, duty, status)
    ("design", "Write a client brief with timescales, budget and how the job is managed (HSE advice)", "done"),
    ("design", "Check each designer has skills, knowledge, experience and organisational capability", "open"),
    ("design", "Allow enough time and resources for each stage", "open"),
    ("design", "Appoint principal designer in writing (more than one contractor)", "open"),
    ("tender", "Give pre-construction information to everyone pricing the job", "open"),
    ("tender", "Appoint principal contractor in writing (more than one contractor)", "open"),
    ("tender", "Ask for references from similar work (HSE advice)", "open"),
    ("start", "Check a survey exists if asbestos may be present", "open"),
    ("start", "Check suitable welfare facilities are provided", "open"),
    ("start", "Check a construction phase plan exists before work starts", "open"),
    ("start", "Ask whether the job must be notified to the HSE", "open"),
    ("end", "Receive and keep the health and safety file", "open"),
]

ORDER = ["design", "tender", "start", "end"]

open_items = [d for d in DUTIES if d[2] == "open"]
for stage in ORDER:
    rows = [d for d in open_items if d[0] == stage]
    print(f"{stage.upper()} ({len(rows)} open)")
    for _, duty, _ in rows:
        print("  [ ]", duty)

print()
print(f"{len(open_items)} open of {len(DUTIES)}")
Enter fullscreen mode Exit fullscreen mode

It prints only the open items, grouped by stage.

DESIGN (3 open)
  [ ] Check each designer has skills, knowledge, experience and organisational capability
  [ ] Allow enough time and resources for each stage
  [ ] Appoint principal designer in writing (more than one contractor)
TENDER (3 open)
  [ ] Give pre-construction information to everyone pricing the job
  [ ] Appoint principal contractor in writing (more than one contractor)
  [ ] Ask for references from similar work (HSE advice)
START (4 open)
  [ ] Check a survey exists if asbestos may be present
  [ ] Check suitable welfare facilities are provided
  [ ] Check a construction phase plan exists before work starts
  [ ] Ask whether the job must be notified to the HSE
END (1 open)
  [ ] Receive and keep the health and safety file

11 open of 12
Enter fullscreen mode Exit fullscreen mode

One line asks whether the job must be notified to the HSE. The HSE page sets two tests. The first is planned construction work that lasts more than 30 working days with more than 20 workers at any one time. The other is work that goes beyond 500 individual worker days. The page does not say whether a given office fit out meets either test, so the line asks a question and does not answer it.

On a project with more than one contractor, the client appoints a designer to take control of the pre-construction phase. That designer is the principal designer. The leaflet warns that a client who appoints neither a principal designer nor a principal contractor becomes responsible for what they should have done. The studio says it takes the principal designer role under CDM on its own projects. The appointment is still the client's.

Step 9: add the approvals as questions

Approvals do not belong in the scope file, but they belong next to it. These are the rows to add to a log:

  • Building regulations. GOV.UK says building regulations approval and planning permission are separate, and a project might need both. Its page lists alterations that may need approval and says to check with a building control body if you cannot decide. The Approved Documents collection includes Part B (fire safety), Part F (ventilation), Part L (fuel and power) and Part M (access). It does not say which apply to a given job.
  • Planning. The Planning Portal says a change of use can happen inside one class or between two. An application may be required, depending on the details. It places offices under Class E(g)(i). The unit in the example is already an office, so the log records the use as a question for the agent and the council.
  • Fire. GOV.UK names the responsible person for a workplace as an employer, owner, landlord, occupier or anyone else in control. For shared or common areas, it names the landlord, freeholder or managing agent. The example office is on a shared floor plate, so the log asks who holds the duty for the corridors and stairs. Whoever holds the duty has to assess the fire risk and review that assessment regularly.
  • Workplace rules. The HSE leaflet says a workplace being altered must meet the Workplace (Health, Safety and Welfare) Regulations 1992. The log gets a row for staff areas.

Step 10: set the date from the long lead items

With scope and duties on paper, the studio's order of work is easy to follow. It starts with a first conversation, then a site visit and survey, then concept design. Plans for space use, lighting, electrics and finishes come next, and the tenders are priced from them. The studio then offers 3D visuals and samples of every finish, and either a procurement service or a shopping list. Layouts are drawn in CAD and then marked out on site.

Joinery arrives last, so the studio lists each item at the start with its lead time. It names licences and permissions as what most often fixes an opening date. For a small café or shop, it says brief to opening takes about six months. That figure is from the studio's own work and has not been tested on an office.

The usual mistake, the studio says, is an unrealistic budget paired with an unrealistic timeline. A gap list that is full on day one is a cheap way to see that early.

Step 11: what the script does not do

The script does not know your building. It cannot tell whether an item is present, whether a test record is genuine or whether a lease clause blocks a change. It only shows where the written information stops. It also does not replace a survey. The HSE leaflet names asbestos, overhead cables and buried services as hazards that may be present on a site. A survey or a specialist answers that, not a spreadsheet.

The designer's part is limited too. The studio does not build. It does not inspect a unit for a client before the lease is signed. It generally stays out of the lease. Approvals come from building control and the planning authority. The fire risk assessment sits with the responsible person. The studio gives no forecast of takings, footfall or reviews.

Step 12: keep the files with the lease

When the build ends, the principal designer should hand the client a health and safety file. The HSE leaflet describes a record for any later maintenance, repair, building work or demolition. The client should keep it and show it to anyone who needs to alter or maintain the building. Keep the inventory, the plan, the gap list and the duties file in the same folder.

Published by Blue Feather Designs, a London studio specialising primarily in sustainable commercial and hospitality interiors. Its services page lists the services it offers.

Top comments (0)