Repository navigation
Conversation
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.
ppinchuk
approved these changes
Nov 20, 2026
Contributor
There was a problem hiding this comment.
🟡 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_textfor 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
force-pushed
the
transmission_FY26_2nd_review
branch
from
November 20, 2026 17:48
8e0e3ae to
783b960
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Another round of improvements to Transmission extraction.