Skip to content

Appendix A1 — Reference specification of the SLO Algorithm for verification ​

Appendix to deliverable D3.2.1: Documento di verifica e validazione tecnica dei moduli dell'Algoritmo SLO (Technical verification and validation document for the SLO Algorithm modules)

Final version

Final version of 5 November 2026. Compared with the version of 15 October it incorporates the verification of the code of the modules (main document of D3.2.1, section «Verification outcome»): it adds the determinism rule of phase 4 for the municipality left alone that chooses a centrality and is in turn claimed, the «incomplete data» outcome of the level calculation, the treatment of the municipalities without travel times and some clarifications on the table of municipalities. The version of 15 October was aligned with the decisions of the call of 7 October 2026 between the consultant, GST and GSSI, confirmed by GSSI on 12 October together with the new draft of the methodology, and with the answers of GSSI of 13 and 14 October on the four cases of phase 3 and phase 4 that the draft did not regulate (decisions D22-D25), including the clarifications of 14 October on D22 and D24, and with the answer of 15 October on the last limit case of phase 4 (decision D26).

This appendix is the operational formalisation, written by the consultant, of the phases of the SLO Algorithm, the algorithm that delineates Homogeneous Local Systems (SLO): it is used as the reference by the verification of the modules described in the main document of D3.2.1. It is derived from GSSI's methodological drafts of 25 August, 17 September and 12 October 2026 and from the decisions taken in the calls of 10 September and 7 October 2026 between the consultant, GST and GSSI. It does not replace D3.1, the methodology of the algorithm, which is a GSSI deliverable: it is material for drafting it.

The methodology does not change: the way it is written does. Every point that in the drafts allowed more than one reading says only one thing here, because an acceptance criterion can be verified only against an unambiguous rule. The decisions of the two calls are incorporated in the text, and are cited with the code used in the main document: D1-D12 for 10 September, in the section The decisions of 10/09/2026, D13-D21 for 7 October, in the section The decisions of 07/10/2026, and D22-D26 for the answers of GSSI from 13 to 15 October, in the section The answers of 13/10/2026.

One structural point comes before everything else: the algorithm does not depend on the data on services. It receives as input the levels of the municipalities, computed separately, and produces the tessellation and the classification of the systems. Which data define the levels is a question external to the algorithm — today population, healthcare, schools and railways; tomorrow, if the data become available, also commercial services and leisure — and changing it does not touch the calculation engine. The section Scope of the algorithm writes this separation as an interface contract, and phase 1 is described for what it is: the parametrisation currently in use for MAPS, not a part of the algorithm.

The rules that serve only to make an outcome deterministic — typically a last tie-break — do not touch the method: they are set here as determinism rules and communicated to GSSI. The rules on which the draft of the methodology does not pronounce itself and that do touch the method were instead put to GSSI: the answers from 13 to 15 October are decisions D22-D26. No case of method remains to be confirmed. A determinism rule of phase 4, set on 5 November after the first national run (section Simultaneous treatment), must be communicated to GSSI.

Definitions and conventions ​

Municipality: elementary unit of analysis, identified by the ISTAT code of the reference year.

Reference year: 2025. All attributes and all geometries are brought to the municipal boundaries in force in 2025. The travel time matrix has a 2021 source and must be brought to 2025 (section Bringing the travel time matrix to 2025).

Centrality level: ordinal number assigned to a municipality by the level calculation (phase 1), which is external to the algorithm. Decreasing order of strength: 1 is the strongest centrality, the highest number the weakest. In the parametrisation currently in use for MAPS there are six levels.

Centrality: a municipality to which the level calculation has assigned a level.

Non-centrality: a municipality to which the level calculation has assigned no level.

Level scheme: how many levels exist, which of them can be the main centre of a merge in phase 2, and which enter phase 4 when one of their municipalities is left alone. It is a declaration of the scenario, not a constant of the code.

Homogeneous Local System (SLO): a set made up of a centrality — the main centre of the system — and of the municipalities assigned to it. The centralities merged in phases 2 and 4 remain centralities within the system, but each system has only one main centre: there are no systems with two equal centres (decision D13).

Tessellation: the SLOs form a partition of the national territory. Every municipality of the reference year belongs to exactly one SLO; no municipality is left out and none belongs to two systems. It is a property of the output, not a goal to pursue: phase 3 guarantees it by construction for all the municipalities present in the travel time matrix, and the few municipalities that lack them — in MAPS two: Misiliscemi, created by separation after the matrix was built, and the Isole Tremiti, which no road connects to the other municipalities — are completed by the corrections downstream of the algorithm (section Corrections downstream of the algorithm).

Relevant contiguity: relation between two neighbouring municipalities that meet both conditions of the section Relevant contiguity. The shared administrative boundary is a necessary but not sufficient condition.

Scenario: versionable configuration file that contains everything that defines a run — year, version of each dataset, level scheme, contiguity thresholds, tie-break criteria, travel time matrix to use, distance threshold, ordering of the identifiers for the tie-breaks. The calculation engine takes the scenario and the data as input, and asks nothing of the user: with the same scenario and the same data the result is identical. The guided interface described in the drafts remains the way the scenario is composed, not the way the calculation is run.

Scope of the algorithm ​

The algorithm does not know the data that define the levels. It receives the levels already assigned and treats them as an ordinal attribute of the municipalities.

Content
Inputfor each territorial unit: an identifier, a centrality level or none, a weight; the contiguity matrix with the lengths of the shared boundaries and the perimeters; the travel time matrix; the scenario
Outputthe tessellation — each unit assigned to a system — and the classification of the systems: centres, composition, total weight, flags

The geometry does not enter the algorithm (decision D19): contiguity reaches it already computed in the matrix, and the union of the boundaries of the municipalities of each system is done downstream, in the production of the national dataset D3.4.

The weight is the dimensional attribute of the unit: it serves as the third tie-break criterion (section Tie-break chain), as the criterion of phase 4 and as the basis of the aggregations by system. In the MAPS parametrisation it is the resident population. It is an input of the algorithm, not a piece of data on services: the algorithm sums it and compares it, and does not know what it measures.

The territorial unit is the municipality, in MAPS. The rest of the appendix says «municipality» for readability, but the algorithm does not assume it: it handles a set of units with an identifier, and every ordering it needs is declared in the scenario, not derived from the form of the ISTAT code. The same implementation must be able to run on provinces, on census sections or on units of another country.

The algorithm reads nothing about services. Population, healthcare, schools and railways enter the level calculation (phase 1) and stop there: when the algorithm runs, all it knows of those data is the level that resulted from them.

The consequences of this separation are four, and they are worth writing in D3.1 because they answer foreseeable criticisms in advance.

Extending the dimensions does not require touching the algorithm. The conceptual framework of WP1 bases the proposal on the multidimensionality of daily travel, while the level calculation today uses three services: healthcare, secondary schools and railways. This is not a contradiction but a consequence of data availability, and it is overcome where it needs to be overcome — in the level calculation. On the day reliable municipal data on commercial services and leisure exist, they enter the level rules, the levels change, the algorithm runs unchanged and produces a different tessellation. No line of code of the engine changes, and the two tessellations are comparable because they are produced by the same engine.

The level scheme is a parameter, not a constant. The rules of phases 2 and 4 are expressed in relative terms — which levels can be a main centre, which levels enter phase 4 — and not in terms of fixed numbers. Adding or removing a level remains a configuration operation. It is the same principle by which the level rules are data and not code, applied one step further upstream.

Verification is split in two. The level calculation and the algorithm are two modules with two distinct contracts, and they are verified separately: the first on the correctness of the classification, the second on the properties of the tessellation. The algorithm can therefore be verified on sets of levels built by hand, without depending on the real data on services or on their state of progress.

The algorithm is reusable outside MAPS, and it is worth designing it to be so, because it is the part of the work that has value beyond the project: given a set of territorial units with a level, a weight and two matrices, it produces a tessellation. Nothing in the procedure concerns Italy, municipalities or access to services. For the property to really hold, three things must not enter the engine: the form of the identifiers, the number of units and the number of levels. It is also the natural interface of the public library «maps-slo» (deliverable D3.5): given a scenario and the two inputs, it returns the tessellation.

Phase 0 — Input data ​

Required datasets ​

DomainDatasetGranularityYear
Scope of services (SCOPE)Resident populationmunicipality2025
Scope of services (SCOPE)Healthcare facilities, with type (DEA / other)municipality2025
Scope of services (SCOPE)Upper secondary schoolsmunicipality2025
Scope of services (SCOPE)Railway stations, with RFI categorymunicipality2025
Space (SPACE)Contiguity matrix, with length of the shared boundary and perimeter of each municipalitypair of neighbouring municipalities2025
Time (TIME)Travel time matrixpair of municipalities2021, brought to 2025

The datasets of the scope of services feed the level calculation (phase 1) and the algorithm does not read them: when it runs, all it knows of the services is the level that resulted from them. The space and time datasets are inputs of the algorithm proper. The municipal boundaries serve to compute the contiguity matrix, upstream, and to build the geometries of the systems, downstream: the algorithm does not read them. The distinction matters for verification, which proceeds separately on the two modules, and for the order of work: the algorithm can be developed and tested on levels built by hand, before the data on services are complete.

The commuting matrix, foreseen in the draft of 25 August as a tie-break criterion, is no longer needed (section Commuting leaves the algorithm).

Travel time matrix ​

The calculation methodology is the ISTAT one, on TomTom graph data. The algorithm receives a travel time matrix and does not go into how it is built (decision D17). Optimal times, on an uncongested network, are used today. A variant with traffic is not a rule of the algorithm but another input matrix, which produces a second, distinct tessellation, not a correction of the first.

The matrix used is indicated in the scenario and must be recorded in the output: an SLO dataset without the indication of the matrix cannot be interpreted, and two datasets produced on different matrices cannot be compared row by row.

Times are computed from municipality to municipality, not from point to point, consistently with the requirements of WP2: most of the services considered do not have reliable point coordinates.

Bringing the travel time matrix to 2025 ​

The matrix is built on the 2021 municipal boundaries. Between 2021 and 2025 some municipalities were abolished through mergers, so the matrix contains rows and columns that in 2025 no longer have a referent, and contains no rows for the municipalities established in the period.

The conversion uses the correspondence table between historical and current municipal codes, maintained in the WP2 data lake. The case to be regulated is the merger: when two or more 2021 municipalities flow into one 2025 municipality, the matrix has several travel times for what is now a single municipality, and it must be declared which one survives. The rule is that of the GSSI draft (decision D10): the municipality that hosts the town hall of the new municipality is kept in the matrix, and it is made to correspond to the 2025 municipality.

The opposite case is the separation. Misiliscemi was created in 2021 by separation from Trapani, and in the 2021 matrix it has no travel times: it cannot be assigned by phase 3. It therefore stays out of the run of the algorithm and is assigned to the Trapani system with the downstream corrections (section Corrections downstream of the algorithm).

A municipality can lack times for another reason as well: the Isole Tremiti have no road connection with the mainland, and the matrix does not report their times. They stay out of the run and, with the downstream corrections, form a system made up of a single municipality: an archipelago tens of kilometres off the coast has no reference centre that road time can indicate.

Finally there is the change of code without change of territory: Montecopiolo and Sassofeltrio moved in 2021 from the province of Pesaro e Urbino to that of Rimini, and changed ISTAT code. The conversion treats them as a municipality that survives with the new code.

The rule and the correspondence table are versioned data alongside the scenario, and their outcome enters the run manifest: the conversion produces two lists: the converted municipalities, with the municipality that took their place, and the municipalities left without times (criterion R6). Exceptions must be countable, not implicit.

Phase 1 — The level calculation, upstream of the algorithm ​

This phase produces one of the inputs of the algorithm, and is not part of it: it assigns to each municipality a centrality level or none, and flags as incomplete the municipalities for which a piece of data on which the outcome depends is missing (section Missing data). It keeps the name «phase 1» for continuity with the drafts, but it is a module in its own right, with its own contract (section Scope of the algorithm).

What follows is therefore the parametrisation currently in use for MAPS, not a property of the algorithm. The rules are configuration data: changing them changes the levels, and the algorithm runs unchanged on different levels.

Today the data available with national coverage and at municipal granularity concern population, healthcare facilities, secondary schools and railway stations. Commercial services and leisure — two dimensions that the WP1 framework places among the main ones — do not enter the level calculation because of the absence of reliable municipal data, not by methodological choice. They may enter it in the future: it is an extension of the level rules, which does not require changes to the algorithm.

Operational definitions of the services ​

ServicePresence conditionQualified condition
Secondary schoolat least one upper secondary school in the municipalitymore than one upper secondary school in the municipality
Healthcare facilityat least one healthcare facility in the municipalityat least one facility classified as DEA (emergency department), first or second level
Railway stationat least one station of RFI category greater than or equal to Bronzeat least one station of RFI category greater than or equal to Silver

The qualified conditions are those of decision D16, which replaces D6. Where a municipality has several stations of different categories, the highest one counts.

Bronze is the lowest category of the RFI classification, so the presence condition coincides with «presence of a station classified by RFI». The Silver threshold on level 4 ensures that level 4 is distinguished from level 5 on all three services: DEA versus any facility, more than one school versus one, Silver station versus Bronze.

Level rules ​

The rules are evaluated in order, from the first to the last, and the first one that applies wins (decision D7). Population thresholds are closed on the left and open on the right.

LevelCondition
1population ≥ 250,000
2population ≥ 100,000
3population ≥ 50,000
4DEA facility present and more than one secondary school and station ≥ Silver
5healthcare facility present and secondary school present and station ≥ Bronze
6exactly two of the three services present
—none of the above: non-centrality

Two consequences of the evaluation in order, both intended:

  • levels 1, 2 and 3 depend only on population, and a municipality that meets them is not evaluated on services. A municipality of 60,000 inhabitants with a DEA hospital, several schools and a Silver station is level 3, not level 4;
  • levels 4, 5 and 6 apply by construction only to municipalities below 50,000 inhabitants, because those above have already been classified. The condition «population < 50,000» that in the draft of 25 August appeared in levels 4 to 8 becomes superfluous, and must be removed so as not to suggest that it is an active filter.

For the same reason the condition «Rank 4 = NO» that the draft placed on level 5 is superfluous.

Missing data ​

If a piece of data is missing for a municipality and the outcome of the rules depends on that data, the municipality does not receive an invented level: it remains without a level, is flagged as incomplete together with the missing attributes, and is counted in the manifest of the level calculation. If the missing data cannot change the outcome — for example the station of a municipality that already has 250,000 inhabitants — the level is assigned normally. The algorithm receives only levels, and therefore treats an incomplete municipality as a non-centrality: deciding whether a run with incomplete municipalities is acceptable is up to whoever prepares the data, and this is why the count is in the manifest.

Level 6: the three cases of the draft are a single case ​

The draft of 25 August distinguished levels 6, 7 and 8 according to which of the three services is missing: 6 without a station, 7 without a healthcare facility, 8 without a school. The numbering asserted an order of importance among the three cases, and that order then entered two concrete decisions — the tie-break of phase 3 and the merges of phase 4.

On 10 September it was clarified that there is no order among those three cases (decision D4): the three cases converge into a single level 6, defined as «two services out of three present». Which of the three is missing remains an attribute of the municipality, useful for reading the result, but it produces no difference in treatment in the subsequent phases.

The levels therefore go from eight to six. It is a change that propagates to the WP2 data schema (decision D9, section Points that remain open) and to every document that mentions eight levels.

Phase 2 — Merging of contiguous centralities ​

This phase does not reduce the centralities: it reduces the systems. When two contiguous centralities merge, both remain centralities and continue to attract municipalities in phase 3; what changes is that they no longer head two distinct systems, but only one (decision D11).

It operates only between centralities: non-centralities are not yet considered.

Relevant contiguity ​

Two neighbouring centralities are contiguous in the relevant sense when both conditions hold:

  1. the length of the shared boundary exceeds the boundary threshold of the scenario;
  2. the travel time between the two is below the distance threshold of the scenario.

The thresholds are fixed values (decision D15): 3.09% for the shared boundary and 20 minutes for the optimal travel time. They were derived once as percentiles, the 10th of the distribution of the shares of shared boundary and the 75th of that of the times, computed on the pairs of neighbouring centralities only; from that moment they are constant, and they remain the same in all phases of the algorithm.

The share of shared boundary is computed on the perimeter of the municipality that merges: Sesto San Giovanni with respect to Milano, not the other way round. The direction matters, because a 3 km boundary is half of the perimeter of a small municipality and one twentieth of that of a large one. In phase 4 the municipality that merges is the one left alone, whichever centrality then becomes the centre of the system.

The thresholds used must nonetheless be written in the output (criterion A10): if in another scenario they were again computed as percentiles, they would change at every change of the set of centralities, and two runs would be comparable only by knowing the value actually used.

Which centralities merge ​

The scenario declares which pairs of levels can merge: for each level, towards which levels one of its centralities can be merged. In the MAPS parametrisation the allowed pairs are these three rows, which take up the hierarchical rules of the GSSI drafts (decisions D5 and D14):

RuleLevel of the merged centralityLevel of the main centre
12, 3, 4, 5 or 61
24, 5 or 62
35 or 63

On all declared pairs an invariant holds, which the engine must enforce whatever the scenario says: the level of the main centre is strictly higher than that of the merged centrality. It is the reading, confirmed on 10 September, of the sentence of the draft on the elimination of the pairs «with subtraction ≤ 0»: in phase 2 no merge between equals, none downwards. Phase 4 follows a different criterion, population (section Phase 4).

The set of pairs does not reduce to the invariant, and it is worth noting because it is the point at which a hasty generalisation changes the result. In the MAPS parametrisation a level 3 centrality contiguous to a level 2 one does not merge, even though 2 is strictly higher than 3 and even though 2 is a main centre under rule 2: the pair 3 → 2 is not among those declared. Levels 2 and 3 can be merged only towards level 1. In the same way a level 4 centrality does not merge into a level 3 one, which is the main centre only for levels 5 and 6. Writing phase 2 as a single inequality — «merge towards any higher level allowed as main centre» — would produce the merge 3 → 2 and a tessellation different from the one the methodology describes.

The pairs are configuration data: adding a level to the level calculation means adding rows to this table, not rewriting phase 2.

What «merged» means: the two labels ​

The outcome of the merge is not that the lesser centrality disappears: it is that the two systems become one.

The merged centrality keeps its level and its attraction function. In phase 3 it attracts the municipalities for which it is the centrality reachable in the shortest time, exactly as before.

The way to write all this without ambiguity is to keep two distinct labels for each municipality (decision D12).

LabelWhat it isHow it is obtained
originalthe municipality's own identity: its name, and for a centrality its nature as a centrality with its own levelit is a datum of the municipality, it never changes
attractionthe system to which the municipality belongsit is obtained by resolving recursively the chain of attractions and merges, up to a centrality that is not merged into any other

The attraction label is built in two steps. The direct step is local: each non-centrality municipality points to the centrality that attracts it, each merged centrality points to its main centre. The resolution is then recursive: the chain is followed until a centrality that is not merged into any other is reached, and that one gives its name to the system.

An example. Sesto San Giovanni merges into Milano. Sesto San Giovanni keeps the original label of centrality and attracts the municipalities closest to it in time. A municipality attracted by Sesto San Giovanni points to Sesto San Giovanni, Sesto San Giovanni points to Milano, and the recursive resolution assigns it Milano as attraction label: in the Milano system it appears as Milano(Sesto San Giovanni), where the parenthesis says through which centrality it entered. Milano attracts its own municipalities, which appear as Milano. The system is one.

Hence four properties, which are the verifiable form of this section:

  • the number of centralities does not change across phase 2: none loses the original label of centrality;
  • the number of systems does not increase, and decreases by one for each merge: a merged centrality no longer heads a system of its own;
  • every municipality has exactly one resolved attraction label, and therefore belongs to exactly one system;
  • of a merged centrality only the attraction label changes. It is not downgraded to a member municipality: it remains a centrality, with its own level, and in the system it has the role of merged centre. The two forms that the attraction label takes on a centrality are the verification of this property: it differs from the original label if the centrality is merged (Sesto San Giovanni carries Milano), it coincides with it if the centrality heads its own system (Milano carries Milano).

The same semantics applies to the merges of phase 4 (section Phase 4), and so does the notation: the parenthesis always indicates a hierarchical relation, the merged centre within the main centre. The previous drafts used the hyphen for systems with two equal centres, such as Ardea-Pomezia; with decision D13 those systems no longer exist, and the hyphen notation is dropped.

Multiple merges, recursion and termination ​

If a centrality can merge into more than one main centre, the choice follows this order: highest level; for equal level, greater weight; for equal weight, lower identifier according to the ordering declared in the scenario. It is a determinism rule: the last two steps have no substantive relevance, and serve to guarantee that the outcome does not depend on the order in which the data reach the program.

The resolution of the attraction labels is recursive, and the recursion is not a textbook case: it arises from the structure of the levels. A level 5 centrality merges into a level 3 one, which in turn merges into a level 1 one. The municipality attracted by the level 5 centrality resolves, in three steps, to the system of level 1. It is the example of the GSSI draft: a level 5 centrality contiguous to Sesto San Giovanni (level 3) first takes the name of Sesto San Giovanni and then that of Milano.

The chain is however bounded by the declared pairs, and this is the property that holds together the recursion and the reasonableness of the result. The bound can be read directly from the table of the section Which centralities merge: levels 4, 5 and 6 can merge only towards 1, 2 or 3, and 2 and 3 only towards 1. The longest possible chain in phase 2 is therefore of two merges — for example 5 towards 3 towards 1 — and there is no way of chaining lesser centralities one after the other, because no pair among 4, 5 and 6 is declared. The bound of two merges holds for phase 2. Phase 4 can lengthen a chain by more than one step: a municipality left alone can point to another municipality left alone, which points to a centrality merged in phase 2; and a municipality left alone that wins on population becomes the new main centre of a system that already contains merged centres (section Phase 4). Chains remain finite, because in phase 4 every step goes from a smaller to a larger population, but their maximum length cannot be read from the table of pairs: it has to be measured at the first national run (metric V9).

The bound must be derived from the pairs and verified, not taken for granted, because it is what excludes the pathological case: if merges could form towards any higher level, a row of contiguous lesser centralities would drag into the same system a ribbon of municipalities as long as the Po valley, where contiguity is almost never interrupted. With the declared pairs the case does not arise.

If in the future merging between lesser centralities were to be allowed, the point to change is the table of pairs, not the recursive resolution — and it must be done knowing that it is that table that keeps the chain bounded.

Termination. Merges are applied until no centrality can merge further. Since the invariant requires every merge to have as destination a strictly higher level, the procedure terminates in no more iterations than there are levels, and in the MAPS parametrisation in two. The maximum number must nonetheless be declared in the scenario with an explicit error when exceeded, and the recursive resolution of the labels must be protected against cycles: a cycle cannot form with the given rules, but an error in the data or a wrong parametrisation must produce a message, not an infinite recursion.

Nesting of labels. In the three-step chain the label remains at a single level of parentheses: the municipality attracted by a level 5 centrality X, merged into Sesto San Giovanni, appears as Milano(X), not as Milano(Sesto San Giovanni(X)). The complete chain through which membership was formed goes in a separate field of the output, where it serves to explain the result without making the name unreadable.

Phase 3 — Assignment of municipalities to systems ​

Each non-centrality municipality is assigned to the centrality reachable in the shortest travel time, according to the travel time matrix indicated in the scenario.

All centralities take part in attraction, including those merged in phase 2: merging does not remove the attraction function (section What «merged» means: the two labels).

The assignment therefore produces the direct step of the attraction label — the municipality points to the centrality that attracts it — and the system is obtained by resolving the chain recursively. A municipality attracted by Sesto San Giovanni points to Sesto San Giovanni and resolves to Milano: it belongs to the Milano system with label Milano(Sesto San Giovanni).

It follows that a system has two types of members: the municipalities attracted directly by the main centre and those attracted by a merged centre. The distinction does not change membership, but it is what makes the result readable: without it the Milano system is a flat list of municipalities and the structure that phase 2 built is no longer visible.

Tie-break chain ​

It is applied in order, and each criterion intervenes only when the previous one is tied (decision D21):

OrderCriterion
1shortest travel time
2highest centrality level
3greatest weight of the centrality — the resident population, in MAPS
4lowest identifier according to the ordering declared in the scenario (determinism rule)

Contiguity and proximity are not assignment criteria: contiguity counts only between centralities, in phases 2 and 4. The third criterion replaces the commuting flows foreseen by the draft of 25 August (decision D8, section Commuting leaves the algorithm). The fourth has no substantive meaning and serves only to close the chain: without it an undetermined outcome would remain, and two runs on the same data could give different results.

A merged centrality enters the tie-break with its own level and its own population (decision D22). Sesto San Giovanni, merged into Milano, competes with its level 3 and its inhabitants, not with those of Milano. A municipality equidistant between Sesto San Giovanni and Cinisello Balsamo, both level 3, goes to the one of the two with the larger population; a municipality equidistant between Sesto San Giovanni and a non-merged level 2 centrality goes to the latter. The time too is that to the attracting centrality: to Sesto San Giovanni, not to Milano.

What the merged centrality borrows is the system, not the size. If Sesto San Giovanni wins, the municipality enters the system of Milano through Sesto San Giovanni: Milano attracts via Sesto San Giovanni, with the level of Sesto San Giovanni. This is how GSSI clarified on 14 October the concept of borrowed size mentioned in the confirmation of 12 October, which the previous version of this specification read as the level of the main centre.

Distant municipalities ​

The one-hour travel constraint, which the WP1 framework places at the foundation of the proposal, comes in here — not as a limit on assignment, but as a flagging threshold (decisions D1 and D2).

Every non-centrality municipality whose time to the centrality that attracts it (the direct step of phase 3) exceeds 60 minutes is assigned anyway to the nearest centre, and flagged as distant. The tessellation remains complete, and no municipality ends up outside every system.

The reason for this choice is that the municipalities beyond the threshold are few — on 10 September it was indicated that, borderline cases aside, there are no municipalities more than one hour from the nearest centre — and treating them as systems of their own would produce systems made up of a single municipality for a technical reason, not a territorial one.

The flag is not an implementation detail: it is a result of the project. The set of distant municipalities is the map of the territories that no centrality reaches within the given time, directly useful to the National Strategy for Inner Areas (SNAI), which the WP1 framework indicates among the intended uses. It must therefore be extractable as a dataset of its own, and not only readable as a column.

The threshold is a parameter of the scenario. The value of 60 minutes is to be understood per single trip; the WP1 framework speaks of one hour overall per day, which for a round trip would give 30 minutes per trip. Since the threshold no longer constrains assignment, the choice does not change the tessellation: it changes only how many municipalities turn out to be distant. Keeping it parametric makes it possible to produce both readings and to say how many municipalities lie beyond the one and beyond the other.

Commuting leaves the algorithm ​

The commuting flows, foreseen by the draft of 25 August as the third tie-break criterion of phase 3, are eliminated and replaced by the population of the centrality (decision D8). The decision has three effects, all favourable:

  • it removes a dependency on an input dataset;
  • it resolves an ambiguity that remained open, the one between the absolute number of commuters and the share of the total leaving the municipality, measures that on the same data give different outcomes;
  • it removes the only point at which the algorithm went back to relying on commuting for work and study, which is exactly what the WP1 framework argues it wants to move beyond. It was the point most exposed to criticism in scientific review.

It remains legitimate, and advisable, to use commuting downstream as a validation measure: the share of trips that remain within each system is the number with which the scientific community will compare the SLOs with the ISTAT Local Labour Systems (LLS).

Phase 4 — Systems made up of a single municipality ​

At the end of phase 3, some systems may turn out to be made up of the central municipality alone: no non-centrality chose them, typically because nearby centres better minimise the times of the surrounding municipalities, or because the centre is surrounded by too many centralities to attract anyone. The GSSI draft considers them a sub-optimal solution of the algorithm, and phase 4 re-aggregates them where contiguity allows.

Rules ​

The scope and the criterion of the phase are those of decision D13, which replaces the part of decision D5 on phase 4.

Which systems enter. The systems made up of a single municipality with a level 4, 5 or 6 centre. In phase 2 these centralities could not be the main centre of any merge, and phase 4 is the first moment at which their contiguity is looked at from this side. The systems made up of a single municipality with a level 1, 2 or 3 centre do not start merges: phase 2 has already evaluated their contiguity. They can receive one in a single case, described in the section Cases the draft does not regulate. Cesena, Chioggia and Messina are the examples of the GSSI draft. Which levels enter is a declaration of the scenario (criterion I4).

What they are compared with. With the centralities contiguous in the relevant sense, according to the same thresholds as phase 2 (section Relevant contiguity), of any level: another centrality left alone, the main centre of a system of several municipalities, or a merged centrality.

The criterion is population, not level. The centre of the system that results from the merge is the centrality with the larger population, even when it is of a lower level, and also between centralities of equal level. The exception is a contiguous centrality already merged into another, which does not leave its system (section Cases the draft does not regulate). The outcomes, therefore:

CaseOutcome
the contiguous centrality has a larger population than the municipality left alonethe municipality left alone merges into the system of that centrality, as a merged centre
the municipality left alone has a larger population than the contiguous centrality, and this heads its own systemthe municipality left alone becomes the main centre, and the contiguous centrality, with all the municipalities of its system, merges into it as a merged centre
the municipality left alone has a larger population than the contiguous centrality, and this is merged into anotherthe comparison has no effect: the municipality moves on to the next contiguous centrality in time, and if there is none it remains a system made up of a single municipality (decisions D23 and D26)
the municipality left alone is not contiguous in the relevant sense to any centralityit remains a system made up of a single municipality: this is a legitimate outcome, not an error. Grado and Vieste are the examples of the GSSI draft

The centre that loses remains a centrality, as in phase 2: it keeps its original label, level and attraction function, and only its attraction label changes. If a level 6 municipality left alone, with 20,000 inhabitants, is contiguous to the level 4 centre of a system of fifteen municipalities that has 15,000, the resulting system takes the name of the level 6 municipality; the level 4 centre appears in it as a merged centre, and the fifteen municipalities as attracted through it. There are no systems with two equal centres: the notation is the hierarchical one of phase 2.

The scope of the rule is limited by the thresholds of the level calculation. A level 4, 5 or 6 municipality left alone has fewer than 50,000 inhabitants, and every level 1, 2 or 3 centrality has more. A municipality left alone can therefore become the main centre only of a system headed by another level 4, 5 or 6 centrality. The case of the system of fifteen municipalities that changes name, which the GSSI draft itself calls an «absurd example», remains possible only within this scope, and is counted by metric V10.

Cases the draft does not regulate ​

Three cases are not described by the GSSI draft; the rules that follow are the answers of GSSI from 13 to 15 October.

Several contiguous centralities. The municipality left alone is compared with the contiguous centrality closest in travel time; the population comparison comes afterwards, with the outcomes of the table (decision D24, clarified by GSSI on 14 October). It moves on to the next contiguous centrality in time only when the comparison with the closest one has no effect, that is when this is a merged centrality with a smaller population than the municipality left alone (decision D26, next paragraph). For equal time it is compared with the one with the larger population, and for equal population too the identifier decides, according to the ordering declared in the scenario (determinism rule).

The contiguous centrality is merged into another. For example a municipality left alone contiguous to Abano Terme, merged into Padova in phase 2. The comparison is made with the population of Abano Terme, not with that of Padova (decision D23). If Abano Terme has the larger population, the municipality left alone enters the system of Padova as a merged centre, through Abano Terme. If instead the municipality left alone has a larger population than Abano Terme, the comparison has no effect: Abano Terme does not leave the system of Padova, because its main centre is of a much higher level. The rule differs from the one towards a centrality that heads its own system, which instead merges into the municipality left alone when it has a smaller population.

After a comparison with no effect, the next centrality is used. The municipality left alone that has a larger population than the closest merged centrality, for example Abano Terme, does not remain alone if it is contiguous in the relevant sense to another centrality: it is compared with that one, the next in travel time, and population decides with the outcomes of the table (decision D26, answer of GSSI of 15 October). In GSSI's example, a municipality X contiguous to Abano Terme and to a centrality Y that heads its own system, closer to Abano Terme and with a larger population than it: if X also has a larger population than Y, it becomes the centre of the system that was Y's, and Y enters it as a merged centre; if it has a smaller one, it enters the system of Y as a merged centre. X enters the system of Padova through Abano Terme only if it has a smaller population than Abano Terme. Two boundary cases are set as determinism rules: if the merged centralities with a smaller population than the municipality left alone are more than one, they are all skipped, in the same order of time; if after skipping them no contiguous centrality remains, the municipality remains a system made up of a single municipality.

The contiguous centrality is a system made up of a single level 1, 2 or 3 municipality. These systems do not start merges, but they can receive them, and their centre always wins (decision D25). The case arises for a single pair of levels: a level 4 municipality left alone contiguous to a system made up of a single level 3 municipality. The other pairs are already merged in phase 2, which uses the same contiguity thresholds as phase 4 (decision D14: level 1 is main centre for all the other levels, level 2 for levels 4, 5 and 6, level 3 for levels 5 and 6). Level 3 also wins on population, because it has at least 50,000 inhabitants and level 4 fewer.

Simultaneous treatment ​

The outcome must not depend on the order in which the systems made up of a single municipality are examined. The determinism rule is this: all the choices are computed on the state at the end of phase 3, and produce a direct step of the attraction label, always from the centrality with the smaller population towards the one with the larger population.

  • each municipality left alone identifies its contiguous centrality of comparison: the closest in time, skipping the merged centralities with a smaller population than its own (decision D26); if this has a larger population, the municipality left alone points to it;
  • if instead the municipality left alone has the larger population and the centrality of comparison heads its own system, it is the latter that points to it; if several municipalities left alone claim it, it points to the one with the largest population. If after the skips no centrality of comparison remains, no step is produced, and the municipality left alone remains such;
  • if a municipality left alone has its own step towards a centrality with a larger population and is also claimed by another municipality left alone with a larger population than its own, its own step prevails: the claim has no effect, and the municipality that made it remains a system made up of a single municipality, without moving on to another centrality. The municipality that loses the comparison among several municipalities claiming the same centrality also remains alone. The rule was set on 5 November 2026, after the first national run, in which it decided three cases: Castel Volturno, Conversano and Castellaneta. The alternative — the municipality whose claim is ignored moves on to the next centrality in time, as in decision D26 — touches the method, and has been put to GSSI;
  • for equal population the identifier decides, according to the ordering declared in the scenario.

Since every step goes from a smaller population to a larger one, no cycles can form. The labels are then resolved recursively, as in phase 2: a municipality left alone that points to another municipality left alone, which in turn points to a larger centrality, resolves to the system of the latter.

No iteration with phase 3 ​

Phase 4 does not modify the assignments of phase 3 (decision D13). The centralities do not change — none loses its nature as a centrality — and therefore no municipality finds a different centre nearer: each municipality remains attracted by the centrality that attracted it, and only the system to which that centrality belongs changes. Phase 3 does not need to be rerun, and the loop between phase 4 and phase 3 of the previous version is dropped (criterion A11).

The number of systems made up of a single municipality remaining at the end must be reported, broken down by level of the centre (metric V3): it directly measures the effectiveness of this phase.

Corrections downstream of the algorithm ​

Some cases may require a correction that no general rule produces. The corrections leave the algorithm (decision D18): they are few, they are applied after the run and the calibration, and they will be documented. The reason is reuse: an algorithm designed to run on another country as well must not contain the particular Italian cases. Among the corrections are Misiliscemi, assigned to the Trapani system, and the Isole Tremiti, which form a system made up of a single municipality (section Bringing the travel time matrix to 2025), and the seven merges between systems that GSSI applies by hand in its own routine (Fiumicino with Roma, Carrara with Massa, Palagiano with Castellaneta, Pozzallo with Modica, Fiumefreddo di Sicilia with Giarre, San Marcello Piteglio with Pistoia, Santa Croce Camerina with Ragusa). The merges are applied after every run, whatever the result, and for this reason they are expressed by municipality and not by system.

The way the corrections are applied, however, determines whether the published dataset remains reproducible, and the requirement moves to the national dataset D3.4: the corrections are kept in a versioned list — type of correction, municipality, destination municipality, justification — applied by a script to the output of the algorithm and published together with the dataset. The system of origin and that of destination are derived at each run and recorded, for each correction, in the outcome of the application. A correction made by opening the produced file cannot be redone by anyone; the same correction written in the list is reapplied identically at the next run, and can be counted. The number of corrections enters the validation as a measure of how well the automatic part is working.

Output ​

Table of municipalities ​

One row per municipality of the reference year present in the travel time matrix; the municipalities that lack it appear in the list of criterion R6, and enter the D3.4 dataset with the corrections.

FieldContent
municipality codeISTAT 2025 code
original labelthe name of the municipality
centrality levelfrom 1 to 6, or empty for non-centralities: it is part of the original label and never changes
missing servicefor level 6 centralities, which of the three services is missing; empty when the levels arrive already computed, as in the run with the levels supplied by GSSI
attracting centralitythe direct step: the centrality that attracts the municipality, or the main centre into which the centrality is merged
attraction labelthe system, obtained by resolving the chain recursively: Milano
full labelsystem and attracting centrality: Milano(Sesto San Giovanni) for a municipality attracted by Sesto San Giovanni and for Sesto San Giovanni itself, which entered it as a merged centre; only the system, Milano, for the main centre and for the municipalities it attracts directly
attraction chainthe complete resolved sequence, where it serves to explain a case: for a municipality attracted by a level 5 centrality X merged into Sesto San Giovanni, X → Sesto San Giovanni → Milano
role in the systemmain centre, merged centre, or attracted municipality
time to the attracting centralityminutes, according to the travel time matrix used, from the municipality to the centrality; for a centrality claimed in phase 4, the time from the municipality that claims it to the centrality, that is in the direction in which contiguity was evaluated
distanttrue when the time to the attracting centrality exceeds the threshold of the scenario; it concerns only non-centralities
assignment phase2, 3 or 4: from which step the direct step of the municipality derives. An attracted municipality carries 3 even when its centrality changes system in phase 4: the attraction chain explains it
rule appliedwhich rule produced the assignment (main centre, merge of phase 2, nearest centrality of phase 3, outcomes of phase 4); the rule that produced the level is in the output of the level calculation

The last two fields are what makes the result explainable: without them, the question «why is this municipality in this system» cannot be answered except by re-running the calculation.

Table of systems ​

Identifier, name, main centre, number of merged centres (broken down between phase 2 and phase 4), total population, number of municipalities. The geometry as the union of the member municipalities is added downstream, in the production of the D3.4 dataset.

Run manifest ​

The scenario used, the code version, the fingerprint of each input dataset, the year of the boundaries, the thresholds actually used, the indication of the travel time matrix, the lists of converted municipalities and of municipalities without times, the number of systems that change centre in phase 4, the machine and the software versions used, date and time. It is the object that accompanies the dataset when it is published.

Points that remain open ​

D9 — alignment with the WP2 data schema. The table gold.dls_attractors, described in the Documento di Progettazione Tecnica Data-Lake (Data Lake Technical Design Document) of WP2, was designed on assumptions that this specification does not confirm. The deviations known today:

  • four attractiveness levels with an integrity constraint that enforces them, against the six of the current parametrisation. The number must be corrected, but the real point is the constraint: if the level scheme is a parameter, an integrity constraint that fixes how many levels exist must be removed, not updated from four to six. Otherwise extending the level calculation requires a database migration;
  • a continuous score from 0 to 100 per municipality, which is no longer foreseen: decision D4 unified the three levels instead of weighting them;
  • four service categories, including commercial services. They are not an error of the schema: they belong to the level calculation, not to the algorithm, and can remain as a provision for what will enter when the data exist. It must however be made clear in the document that those columns describe the input of the level calculation and not an attribute that the algorithm reads;
  • no field for flagging distant municipalities (section Distant municipalities), which must be added;
  • no field indicating the travel time matrix used (section Travel time matrix), which must be added because two tessellations produced with different matrices can coexist.

On 10 September the reading of the schema and the integration of what has changed were taken on by the development of the modules. The WP2 document has already been delivered: the revision must be tracked as a new version, not overwritten.

The determinism rules are set by the specification and do not touch the method: the order of choice among several possible main centres in phase 2 (section Multiple merges, recursion and termination), the last tie-break on the identifier (section Tie-break chain) and the simultaneous treatment of phase 4 (section Simultaneous treatment), including the rule on the municipality left alone that chooses and is claimed, set on 5 November and to be communicated to GSSI.

The licence of the travel time matrix (section Travel time matrix). The TomTom graph is commercial data, and the ISTAT matrix is a derived product of it. Three project deliverables publish downstream of that matrix: D3.4, the national geospatial dataset; D3.5, the public library under the MIT licence; and the open data publication foreseen by WP6. The point to be clarified is not the use of the matrix in the calculation, which is undisputed, but whether the result can be redistributed without restrictions and whether the matrix itself can be attached as input to a reproducible run. If it cannot, the reproducibility declared by criteria R1-R3 holds for those who have access to the data and not for a third party, and this must be written in the documentation of the dataset instead of being discovered after publication. The check must be made with ISTAT on the conditions under which the matrix is made available, not inferred from the TomTom licence.

The contiguity thresholds (section Relevant contiguity) are very permissive by construction: the 10th percentile discards only the decile of the shortest boundaries, the 75th on times keeps in three quarters of the pairs. With the fixed values of decision D15 the point remains the same: it is the first thing to measure as soon as the data are available, namely how many pairs of neighbouring centralities pass the two filters. If almost all of them do, the merges of phase 2 are triggered almost always and the result of phase 1 counts for little.

Orography is cited by the draft of 25 August among the reasons why not all boundaries count in the same way, but it does not enter any calculation: there is no variable representing the barrier. The condition on travel time (second condition of the section Relevant contiguity) captures it in part, because two municipalities separated by a mountain have a high time despite being neighbours. If this is considered sufficient, it is worth saying so explicitly in D3.1 and removing the reference to orography as a criterion in its own right.