Repository navigation
Nothing is breaking in the library API or the command line, and no plan that compiled before stops compiling. One new code, hence the minor: the lint warning W_CORRIDOR_DRAWN_INSIDE (the catalogue grows from 279 to 280 codes). No new statement or keyword, no new sheet-level statement, and src/index.ts is unchanged. score --taste (and taste()) reads two more criteria, R38 entrance room and R39 bedroom hierarchy, with the advice codes A_NO_ENTRANCE_ROOM and A_BEDROOMS_EQUAL_SIZE (coverage.weight.total 12 → 14). finish stands a kitchen's hob between two worktops, and the shipped kitchens now do. Fixes: W_ROOM_OVERLAP sees rooms with the same outline, W_STAIR_NO_LANDING reads outdoor ground as floor, dims auto no longer prints a phantom size for a facade turned slightly off the axis, and a browser bundle that imports the core no longer trips on the PNG and PDF backends' font lookup. Which outputs move, and on which plans, is in each entry below. @chanmeng666/archlang-3d 0.11.0 ships alongside: breaking for this 0.x package (the contact shadows and their exports are removed), with glass glazed_sliding doors and no seam lines across one floor finish.
Fixed
W_ROOM_OVERLAPreports two polygon rooms with the same outline, and a rectangle room that fills one arm of an L room: every corner and edge midpoint of each lay on the other's outline and no edge crossed, so the exact polygon test read them as apart, while two identical rectangles were reported (backlog SR.26). A run of edge longer than 1 mm (for an arc-edged room, longer than its curve's sagitta) that two shapes share with their insides on the same side of it now counts as overlap; two rooms either side of a shared wall, or meeting at a corner, still do not, and neither does an outline that doubles back along the other's edge (a spike, or a leg that snaps or evaluates to zero length), which reads as the outline the compiler accepts, nor a room refused as self-intersecting: a stretch they share with their insides on opposite sides vetoes it, even one under 1 mm (a spike drawn up the other's edge in short pieces). The same test decidesW_OUTDOOR_OVERLAPS_ROOM, so an outdoor surface with the same outline as a room, rectangle or polygon, or one filling an arm of an L room, now raises it. Two shapes that each pass through the other's corners are still read as apart, and a sliver thinner than 1 mm along a shared edge reads as overlapping (SR.26a).compile(),describe(),lint(),taste()andfinish()are byte-identical on every tracked plan.- A browser bundle that imports the core no longer trips on the PNG and PDF backends' font lookup. Next.js
next dev --turbopackfailed every page whose client bundle reached the core withModule not found: Can't resolve '../../assets/fonts/Roboto-Regular.ttf', and plain webpack 5 failed its build withCan't resolve '../../assets/fonts'after listing the 503 KiB font as an asset to bundle. Both read the lookup'snew URL(…, import.meta.url)as an asset to bundle. The lookup now builds its URLs with theURLof the lazily importednode:url, which Turbopack (Next.js 15.5), webpack 5.113 and Vite 6.4 do not read:next dev --turbopack,next buildand plain webpack now build with no resolve error and no font in their output, and Vite, which was never affected, still puts no font in its output. A Vite consumer still has to mark the optional backends (clipper2-wasm,@resvg/resvg-js) external, as before. Under Node the font is still found next to the built chunk (dist/assets) and in the repository source (assets/fonts).compile(),describe()andlint()are unchanged, and the playground's bundle code is the same (some chunk names re-hash). dims autoreads the overall size of a side that has no wall parallel to it from the walls as drawn, so a facade turned slightly off the axis no longer prints a phantom size (card RM9.37). Each wall segment facing that side is read on its own two drawn faces, clipped to the measured span, where its face line used to be extended past the wall's end: the card's repro (a 4 m square turned about 1°) printed 15500.32 and now prints 4272.48, a true 1° square printed 15528.87 and now 4271.67, and 0.1° printed 118613.06 and now 4206.99. Where a corner's mitre stands past the measured span, the clip trims its tip, so the figure can fall short of the drawn outline: the repro's drawn outline is 4273.47, and a 4 m square of 200 mm walls turned under 2° is up to 1.23 mm short (exact at 0° and from 2° up). A single wall leaning off an otherwise orthogonal plan is short by about half the wall's thickness times the lean's slope (2.5 mm at 100 mm in 4 m, 10 mm at 400 mm), which is the figure it printed before. How the walls are grouped into statements no longer changes the figure. Witness lines are drawn as before, so the page can still be several times the building: 16.5 m by 17 m for the repro's 4.3 m square, against 342 m by 343 m before.describe()andlint()are unchanged over the corpus; drafting-layer codes may change off it.W_STAIR_NO_LANDINGreadsoutdoorground as floor: an exterior stair whose foot lands on paving, or whose head lands on a balcony, no longer reports "there is no floor". Every surface butwatercounts, and where surfaces overlap the one drawn last decides, as for what a door opens onto. Ground has no walls, so it counts only as deep as it covers the middle half of the flight's width, measured on its shape: a 600 mm strip under a 1000 mm landing reports "the floor ends 600 mm past the bottom step", and a path narrower than that band, or ground that begins some way past the step, reports "there is no floor"; for ground the hint says to extend it or move the stair. Only a landing that stands on no room's floor reads the ground, so an interior stair is judged as before however much ground lies round the building. On a plan whose stair lands on such ground, the rules that share the landing see it too:W_FURNITURE_ON_STAIRreports furniture standing on it,W_SWING_OVER_STAIRa door leaf sweeping it,finishkeeps furniture off it andrepairmoves furniture off it, anddescribe(src, { facts: ["clearances"] })gives that landing its measuredclear_mm(withby: nullwhen the ground covers it) instead of0withby: { kind: "no-floor" }. Found by the 2026-11 HABS probe (RM9.31).compile()is byte-identical on every plan;describe(),lint()andfinish()are byte-identical on every shipped example.- The 1.69.0 note on
ResolveCtx.evaluateoverstated which wrappers are honoured. A plugin that wraps a built-in element and replaces one of the context's two evaluator members is honoured only while the other is still the compiler's own; that covers a wrapper that replaced the oldevalmember with a function of its own, as before 1.69.0. It does not cover a wrapper that hands the old member the compiler's evaluator from another resolve: the built-in then evaluates withevaluate, where before 1.69.0 it used the old member (in the pinning test, a column sized by aletdraws this plan's 300 where it drew the other plan's 600). Nor does it cover two wrappers that each replaced a different member: the built-in usesevaluate. The language reference now says a wrapper should replace both members with the same function. Nothing in the compiler changed;compile(),describe()andlint()are byte-identical on every plan.
Added
score --taste(andtaste()) reads a fourteenth criterion, R39 bedroom hierarchy, in the geometry subscore, with the advice codeA_BEDROOMS_EQUAL_SIZE(card RM9.21). In a home of two bedrooms or more it reads the largest bedroom, by net floor area, against the others: another bedroom of the same net floor area asdescribe()prints it, to 0.01 m², or a rectangle drawn alike (the same width and depth, either way round, the walls round them making the net areas differ), scores 0; a largest bedroom larger than every other scores 1. Its source is the nationally described space standard (2015), 10(e), read on gov.uk: one double bedroom must be at least 2.75 m wide and every other double at least 2.55 m. ArchLang's own reading is that the standard so recognises a principal bedroom, and that the plan should draw one bedroom larger than the rest. Only equality is judged: the standard gives no ratio, and its least areas (7.5 m² for a single bedroom, 11.5 m² for a double) need the bedspaces, which a plan does not say, so no size is used and the advice never names an area to make a bedroom. A home is read from the storey as the rooms reached from one another without going outside, so the houses of a terrace are judged apart. Not judged: a plan where a bedroom's home has no living, dining or kitchen room or has two kitchens (home-unclear, a new skip reason: a bedroom wing entered from outside or by its own stair, a bedroom with no door, two flats off a common corridor drawn inside the building), except a sleeping floor: a storey with no living, dining or kitchen room whose bedrooms are one home, that a stair or lift stops inside, on a plan with a day room on another storey and at most one kitchen on the other storeys, read as the bedrooms of the house below; a home with a room that is a bedroom and a day room at once (uses bedroom living) as large as its largest bedroom (mixed-bedroom, a new skip reason: that room may be the main bedroom); a plan whose bedrooms stand on more than one storey (no-dwelling, until dwellings are declared); a plan that reads as non-residential; and a plan where no home has two bedrooms. Bedrooms that are meant to match (a house share, two main bedrooms) say so withkeep equal widthandkeep equal depthnaming them, by one statement or a chain, and holding as drawn: that home is not judged (kept-equal, a new skip reason); a broken keep, of any grade, is not read. It is advice:lint()anddescribe()never read it, the drawing does not change, andrepairandfinishmove no area for it. Every report gains the R39 entry and its weight (coverage.weight.total13 → 14). Overexamples/**it reportsA_BEDROOMS_EQUAL_SIZEon two plans,bungalow(two bedrooms of 3000 × 4800) andcourtyard-house(two of 5500 × 3000), andvalidate --taste <profile>'snext(and the MCPvalidatetool's, giventaste) now names it on both, where it namedA_DOOR_OFF_CORNER.score --taste(andtaste()) reads a thirteenth criterion, R38 entrance room, in the circulation subscore, with the advice codeA_NO_ENTRANCE_ROOM(card RM9.20). It reads the room the main entrance opens into, one door in: a living, dining or kitchen room with no entry, hall or circulation use scores 0, and a hall, foyer, entry or corridor (or any room that is not a day room) scores 1. Which doors it reads: (a) whendescribe().access.mainEntrancenames a door on any storey (the doorpreview --reviewmarks), that door alone, on the lowest storey that names one; (b) otherwise the entrance candidates, and the doors of a tie, on every storey whose access basis is notupper-storey, so a front door above a basement with no door out, or above a garage storey whose only door is a garage door, is the one read; (c) never a door onto the roof of a storey below thatbuildingGround().notWayInrules out, nor a door onto anoutdoor balcony; (d) when nothing is left, or a storey read in (b) is entered by a cased opening (a doorway with no leaf, which the choice never names), it is not judged (no-main-entrance). When more than one door is read (a tie, or candidates on two storeys), every one is, and doors that read differently are not judged. A room writtenuses living entryis a sitting room that is also the entrance room and passes, the message saying it "also serves as an entry": that is how a plan says the door opens into the living room on purpose. Any room with an entry, hall or circulation use passes whatever its size. Not judged: a plan that reads as non-residential, a plan with no living, dining or kitchen room and a studio whose one habitable room, counted over every storey, is the room entered (bothtoo-few-items), and a landing room with no classified use (no-uses, a new skip reason besideno-main-entrance). The depth, one door in, is ArchLang's own choice: the source, Alexander's A Pattern Language pattern 130 (entrance room), read in the 1977 edition, gives no depth for the indoor part, and no foyer size is assumed for any country. It is advice:lint()anddescribe()never read it, and the drawing does not change. Every report gains the R38 entry and its weight (coverage.weight.total12 → 13). Overexamples/**it reportsA_NO_ENTRANCE_ROOMon eight plans (accessible,attached,garden-loft,laneway-house,sheet-notes,studio,terrace-rowandthemed), each a front door straight into the living or living-kitchen room. Because these plans lint clean,validate --taste <profile>'snext(and the MCPvalidatetool's, giventaste) now namesA_NO_ENTRANCE_ROOMonaccessible,laneway-houseandstudio, where it named nothing, and ongarden-loft,terrace-rowandthemed, where it namedA_DOOR_OFF_CORNER,A_DAYLIGHT_LOWandA_SINGLE_ASPECT.- Lint warns
W_CORRIDOR_DRAWN_INSIDEwhen the only way in reads as the balcony because a corridor, hall or entry with no door to the outside opens only into the dwelling (card RM9.6, coverage class CV16; plan-soundness PS2.42): most often the building's common corridor is drawn as a room inside the dwelling's exterior walls, or the dwelling's own entrance has no door out drawn. It reports when every door to the outside on the storey opens onto anoutdoor balcony, no stair or lift arrives on it, and a room whose every use is entry, hall or circulation, whose label names no store, utility room or place of work ("Hall Cupboard" and "Entry Closet" are not read), that holds no stair, lift or escalator (the roomdescribe().verticals[].roomnames) and has no door to the outside, opens only into one other room by a door with a hinged leaf. That door reads as an inside door:describe().access.entranceslists only the balcony door, the floor area counts the corridor, and the privacy rules cannot judge the plan (the lint coverage report saysbalcony-only-entrance). The warning is at that door, once per door; its hints say to draw the corridor outside the walls (for example asoutdoor paving) with the front door on the exterior wall, or to draw the room's door to the outside, leading with the second for an entry or hall. It reports and does not re-read the room as the way in, sodescribe()and every other rule are unchanged, and so is the lint coverage report outside the plans it reports on. A plan that reads as non-residential is declared (non-dwelling), not judged. It is a validity-layer warning: it failsvalidate --strictandlint --strictwhere it appears, and caps ataste()score at 0.5. Overexamples/**it reports nothing.
Changed
archlang finishstands a kitchen's hob between two worktops where the room allows: once a room's pieces are proposed, it lays them out again as sink, counter, stove, counter (then the fridge), each abutting the next, so a cook has a landing either side (the NKBA Kitchen Planning Guidelines, guideline 17: 12 in, 305 mm, on one side and 15 in, 381 mm, on the other). The same second pass moves a bathtub out of the WC access zone, 1100 mm deep in front of the pan and 350 mm either side of its centreline (Approved Document M vol 1, Diagram 2.5); a basin or a shower may stand in it. The second layout is kept only when it holds every piece the first holds and raises no code the first does not; otherwise the room is furnished exactly as before. TheW_ROOM_NO_FIXTUREandW_ROOM_MISSING_DEFININGhints quote a kitchen's hob the same way, between two counters writtenagainst <room>.<edge> offset …, and keep a quoted piece out of a WC's access zone; where neither fits they quote the set they quoted before. Over the repository's plans,compile(),describe()andlint()are byte-identical except those two codes' hint text;finishoutput moves on 14 test plans, none underexamples/, and in each room keeps every piece it placed before.- The shipped kitchens give every hob a worktop to land a pan on either side (card RM9.6, coverage class CV11; NKBA Kitchen Planning Guidelines, guideline 17: 12 in, 305 mm, on one side and 15 in, 381 mm, on the other). In 17
examples/*.archplans (20 hobs:terrace-row's four units share one), thedocs/overview.mdcopy oflaneway-houseand two docs-site fences (floor-plan-with-a-coding-agent,vs-mermaid) the stove stood beside a sink, a fridge, an oven or bare floor on at least one side; in four more (courtyard-house,furnished-flat,imports,practice-office) it stood at the end of its run against a wall. Each now stands between two counters, by a counter added or moved beside it, or the stove moved along its run; the playground's "Flat with one thing to fix" sample gets the same edit and keeps its one finding. Every landing is at least 381 mm except three of 305 to 380 mm (tiny-house350, whose 2.5 m galley also holds a sink, now a 600 mm single bowl, and a slimline fridge;courtyard-houseandfurnished-flat350, beside a wall or a window). No room, wall or opening moved. In each planlint()is unchanged apart from the byte spans after the inserted lines,compile().diagnosticslikewise,describe()differs only in the furniture it lists and the furniture counts, and the drawing only in the kitchen run. The README anddocs/overview.mdplayground links and the committed example SVGs are regenerated. - The
archlang-brief-to-planandarchlang-edit-planskills end with one taste review once the plan is clean, as the umbrellaarchlangskill already did:archlang score plan.arch --taste generic --jsonandarchlang preview plan.arch --review(plan.review.png), run once each. The final report lists the score with the weight it judged, eachA_*advice code and the review sheet, and says the advice is not an error: the agent does not iterate on it, and the user decides. Inarchlang-edit-planthe review also runs on a plan whose strict check fails only on warnings it carried before the edit, and the agent does not fix those just to make the check clean. Both skills note thatarchlang explaindoes not knowA_*codes. - The
archlang-brief-to-planandarchlang-exportskills end their report with the way to the 3D preview: the playground link (archlang link plan.arch, or the MCPlinktool) opens the plan where the user switches to 3D and can download a GLB, and from a shell with Node 20+npx -y @chanmeng666/archlang-3d view … --replayorbuild …writes it with the separate@chanmeng666/archlang-3dpackage, which the core does not depend on. The skills call it a preview of the plan, not a design or construction file.packages/archlang-3d/test/docs-site.test.tsholds each such command to the package's own command table, required flags included. The OpenAI plugin ZIP (npm run build:openai-plugin) pins that command to the 3D package's version, as it pins the core CLI's. - The
archlang-brief-to-planskill checks a brief for a home against a short list before it writes the plan: an entrance with somewhere for coats, a wardrobe in each bedroom, a place for laundry, storage, and the number of bathrooms. For each item the brief does not mention, the agent writes down the assumption it takes (draw it or not, and why) or asks the user; when it cannot ask, it draws per the assumption, and the final report lists every such assumption. The skill gives no sizes for these items, an assumption never changes a number the brief states, and nothing in the compiler checks the list (no new diagnostic). The plugins' copies of the skill are regenerated.
Shipped alongside
@chanmeng666/archlang-3d0.11.0 (packages/archlang-3d/CHANGELOG.md): the replay no longer draws contact shadows, and the exportscontactShadows,contactFade,CONTACT_SHADOW,contactBandMm, the typesContactShadows,ShadowClassandShadowLayer, and the replay payload's shadow fields are removed with them (breaking for this 0.x package, hence the minor); adoor glazed_slidingis built in glass in a frame, as the plan draws it, where it was an opaque panel; and the 3D preview no longer draws a line across the floor where two rooms of one finish meet with no wall between them. Its core peer range stays^1.61.0.@chanmeng666/archlang-mcp0.2.55, re-pinned to^1.70.0. Its baked spec gains thenorthline's bearing in degrees, and its README no longer mentions contact shadows; the tools, their descriptions and their count are unchanged.- VS Code extension 0.56.4 (
editors/vscode/CHANGELOG.md): rebundles this core. @chanmeng666/arch-planis unchanged at 0.1.2 (the<arch-plan>element served from archlang.uk loads this core) and@chanmeng666/archlang-font-cjkat 1.0.0.