Skip to content

Transmission FY26 2nd review - #614

Open
castelao wants to merge 10 commits into
mainfrom
transmission_FY26_2nd_review
Open

castelao wants to merge 10 commits into
mainfrom
transmission_FY26_2nd_review

Conversation

@castelao

Copy link
Copy Markdown
Member

Another round of improvements to Transmission extraction.

Align the transmission schema with the post-#487 output pattern by
requiring a verbatim ordinance_text excerpt on every row, using the
same field description as the GHP schema.
Require ordinance_text to keep the electric facility class, voltage
qualifier, conditions, and exceptions, including any passage that ties
the row to electric transmission.
Keep the ordinance's original unit wording in ordinance_text instead of
summary, while units stays standardized.
Have explanation reference the verbatim ordinance_text evidence instead
of summary, and cite the electric-facility wording that ties the row to
electric transmission.
Cite shared setback clauses and keep verbatim noise wording in
ordinance_text instead of summary.
Keep electric items and encompassing wording verbatim in ordinance_text,
start summary with the same term, and bar adding transmission terms to
either field.
Summary restates the requirement in own words using the ordinance's term
for the regulated electric infrastructure, ordinance_text carries the
verbatim excerpt and its electric transmission tie, and explanation
justifies the feature match and value selection.
Franchise rows carry an array of named electric grantees in value, listed
once each, while other qualitative features keep value null. The system
prompt moves the granting clause to ordinance_text.
Require non-empty ordinance_text on every row and verify grounding
against the ordinance_text excerpt instead of quotations in summary.
@castelao castelao self-assigned this Nov 20, 2026
@castelao castelao added the enhancement Update to logic or general code improvements label Nov 20, 2026
@castelao
castelao requested a review from ppinchuk as a code owner November 20, 2026 17:33
Copilot AI balanced review requested due to automatic review settings November 20, 2026 17:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Conflicting instructions and examples can cause missing or misplaced evidence, while section-restricted validation can reject valid evidence grounded across multiple sections.

2 open issues
What changed in this PR

This PR refines COMPASS transmission extraction by separating verbatim ordinance evidence from requirement summaries and tightening qualitative output rules.

Changes:

  • Advances the schema to version 0.3.0 and requires ordinance_text for source evidence.
  • Clarifies summary, explanation, and qualitative-value requirements.
  • Aligns the franchise prompt with the new evidence field and grantee-list format.
File Description
compass/​extraction/​transmission/​transmission_schema.json5 Adds the evidence field and refines extraction, grounding, and franchise rules.
compass/​extraction/​transmission/​plugin_config.yaml Updates franchise instructions to separate grantee summaries from verbatim evidence.

Review effort: Balanced

"summary": {
"type": "string",
"description": "A short summary of the relevant ordinance requirements."
"description": "A short restatement of the requirement in your own words. Name what it applies to using the ordinance's own term for the regulated electric infrastructure, including any voltage qualifier (for example 'electric transmission lines over 69 kV', 'electric utility lines', or 'public utility substations'); never replace that term with 'transmission', 'electric transmission', or any other wording the ordinance does not use. Keep every specific that shapes the requirement: voltage tiers, overhead or underground placement, the point a distance is measured from (such as the centerline, easement edge, or tower base), zoning districts, exceptions, and expiration dates. When the ordinance sets several values for this feature, state the value selected for this row and list each other value with the condition it applies under. For qualitative features, state the full requirement, because this text is written to the output value column; for 'franchise', list every electric grantee by its verbatim legal name. Leave quotations to ordinance_text and reasoning to explanation. Must be a non-null, non-empty string and must not use absence placeholders."
"Every row must have non-null, non-empty strings for summary and explanation.",
"Verify grounding before emitting each row: every quoted phrase in summary must be locatable verbatim in the cited section's source text, and any occurrence of 'transmission' or a feature keyword in the summary must actually appear in that source; if it does not, remove the fabricated text or drop the row.",
"Every row must have non-null, non-empty strings for summary, ordinance_text, and explanation.",
"Verify grounding before emitting each row: every character of ordinance_text outside the ellipses must be locatable verbatim in the cited section's source text, and any occurrence of 'transmission' or a feature keyword in summary or ordinance_text must actually appear in that source; if it does not, remove the fabricated text or drop the row.",
@castelao
castelao force-pushed the transmission_FY26_2nd_review branch from 8e0e3ae to 783b960 Compare November 20, 2026 17:48

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Update to logic or general code improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants