Skip to content

Перешардирование - #100

Merged
alexey-milovidov merged 7 commits into
masterfrom
METR-18510
Sep 1, 2016
Merged

alexey-milovidov merged 7 commits into
masterfrom
METR-18510

Conversation

@ghost

@ghost ghost commented Sep 1, 2016

Copy link
Copy Markdown

No description provided.

@ghost ghost assigned alexey-milovidov Sep 1, 2016
@alexey-milovidov
alexey-milovidov merged commit ee77080 into master Sep 1, 2016
@Felixoid
Felixoid deleted the METR-18510 branch February 16, 2022 15:54
fuwhu pushed a commit to fuwhu/ClickHouse that referenced this pull request Feb 12, 2026
fuwhu pushed a commit to fuwhu/ClickHouse that referenced this pull request Feb 12, 2026
[ClickHouse#100] Collect the where and group by columns from the query

See merge request datacenter/clickhouse!413
jischeng added a commit to jischeng/LeoGraph that referenced this pull request Jul 4, 2026
- learnings.md: archive 11 historical entries into ## Archived section;
  merge ClickHouse#94 into ClickHouse#95; mark ClickHouse#65 as superseded; rewrite ClickHouse#100 to forbid
  SQL string construction; add top-level active-path entry
- gql_refactor_status.md: add historical-context header; mark *Lowering
  naming and PlanEnvironment/RootLowering/MatchSourceFactory as
  deprecated; change dispatch to InterpreterGQLQueryAnalyzer
- README.md and parser/README.md: fix references to deleted docs,
  point to docs/graph/match_execution/
alexey-milovidov added a commit that referenced this pull request Nov 22, 2026
A re-apply is attributed in two ways: as the link on an entry it brought
back, and, when it carries a change of its own, on a bullet of its own. The
verifier treated any attribution as "has an entry", which was wrong in both
directions.

An annotation was taken as evidence of an own entry. A plain re-apply `#300`
of `#100` was promoted out of `cancelling` by its link on the bullet of
`#100`, so when `#100` was reverted again, removing that bullet was rejected
and giving `#300` a bullet for the reverted feature passed.

And the own entry was not kept apart from the annotation. A re-apply on both
the feature bullet and its own fix bullet had only the first of them recorded
by `revert_licensed_deletions`, so after a revert and a revert of that revert
the feature came back and the fix was lost, with the verifier satisfied by
the link on the feature bullet. Losing the fix bullet while the link stayed
was not noticed either.

`analyze_reverts` now returns `brought_back`: for each revert, the pull
requests whose entries it can annotate (the ones below it in a chain, except
its direct targets). A bullet of a re-apply that also attributes one of them
is an annotation, any other is its own (`own_bullets`), and `entry_placement`
skips the annotations. With that:

- a re-apply counts as having an entry of its own when it has a bullet of
  its own in the section, a recorded deletion of one, or a strict raw entry
  today - not for a link on an entry it brought back;
- deletions record the own bullet, and restorations, their category, the
  re-apply links on them and the bullets a revert may annotate are all asked
  of the own bullet;
- an own entry that disappears while its pull request stays attributed is
  reported, and a re-apply gets one bullet of its own.

Regressions: a plain re-apply followed by a second revert of the original
and its restoration, a re-apply with a fix of its own through acceptance,
removal, recording and restoration of both bullets, and the fix staying when
only the original is reverted again.

Review: #133259 (comment)
Review: #133259 (comment)

Co-Authored-By: Claude Fable 5.2 <[email protected]>
alexey-milovidov added a commit that referenced this pull request Nov 22, 2026
…tion

A re-apply with an entry of its own can be reverted on the night it arrives,
before any edit has placed that entry: `#100` and its re-apply `#300` carry
the same `Bug Fix` entry, `#200` reverts `#100`, and `#600` reverts `#300`.
Both raw entries are deleted and recorded as `raw`. When `#700` reverts
`#600`, the restoration demanded a bullet of `#300`'s own, so one bullet
attributed to `#100`, `#300` and `#700` was rejected as missing `#300` while
two duplicate bullets passed. On arrival the same entry may be merged into
the one it brought back.

A recorded deletion of a re-apply is now one of two things. A `section`
record is a bullet of its own that an edit had accepted: it comes back as a
bullet of its own, as before. A `raw` record is an entry that was never
placed (`unplaced`): it is restored on the run that brings the re-apply back
(the one whose raw blocks hold the revert of its reverter), and then either
placement restores it, a bullet of its own or its link on the entry it
brought back. On later runs the section says which it was, and the record
asks for nothing: a merged one is a plain re-apply again, whose link goes
when the original is reverted once more. When nothing it brought back ships
on the run that brings it back, it is offered instead of required.

The prompt tells the agent to place such an entry the way it would on
arrival.

Regressions: raw deletion and merged restoration of a repeating re-apply
entry, the next run, and a second revert of the original; the same with
nothing to merge into; and the offered case.

Review: #133259 (comment)

Co-Authored-By: Claude Fable 5.2 <[email protected]>
alexey-milovidov added a commit that referenced this pull request Nov 22, 2026
…ck ships

A raw entry of a re-apply that is placed on a run (arriving under a strict
category, or unplaced and brought back) was kept because the re-apply puts
something back. That does not hold when the original change is out again.

On arrival: `#100`, `#200` reverting it, `#300` re-applying it with the same
`Bug Fix` entry, and a second revert of `#100`, all on one night. The fix is
not in the release, but deleting both repeated entries was rejected
("Entries disappeared ... ['300']") and a standalone `#300` bullet for the
reverted fix passed.

On restoration the decision already existed, but it looked at every pull
request the re-apply sits above in the chain. A plain re-apply in between
(`#300` re-applying `#100`, later re-applied in turn by `#700`) stands and
is not in `credits`, yet it carries no entry, so the repeating raw entry of
`#700` stayed required after `#100` was reverted again.

Both are now one decision. `carries_entry` says whether something a re-apply
brought back is in the release as an entry its link can stand for: an
original change that no standing revert takes out, or a revert with an entry
of its own that the release keeps. A re-apply placed on this run with no
such entry below it is `optional`: exempt from retention like a cancelling
revert, and allowed a bullet of its own unlike one, since whether its entry
describes an independent change is the agent's judgement. Decided in
ascending order, so an optional re-apply is not an entry for a later one to
stand on. The prompt lists the arriving ones separately, and the skill
describes the case.

Regressions: the four-PR arrival case and the later return of the original,
the longer chain with a plain re-apply in between (offered with the second
revert of the original, required without it), and two repeating re-applies
of an original that is out again.

Review: #133259 (comment)
Review: #133259 (comment)

Co-Authored-By: Claude Fable 5.2 <[email protected]>
alexey-milovidov added a commit that referenced this pull request Nov 22, 2026
`carries_entry` decides whether a re-apply's raw entry is required, by
asking whether something it brought back is an entry its link can stand for.
It still counted two kinds of pull requests that cannot carry a link:

- A `cancelling` revert that came under a strict category. `#200` reverts
  `#100` with a `Bug Fix` entry, `#300` re-applies `#100` without one, and
  `#600` reverts `#300` with a `Bug Fix` entry, all on one night. What `#600`
  restores is the revert `#200`, whose bullet has to go, but its strict raw
  entry made it a carrier, so deleting all four bullets failed with
  "Entries disappeared ... ['600']".
- An original change published in an earlier release. `#200` reverts `#50`
  from a released section and `#300` reverts `#200`. The entry of `#50`
  cannot be amended and nothing changed for users, but `#50` counted as a
  carrier, so deleting both descriptions failed with
  "Entries disappeared ... ['300']".

A carrier is now an entry that stays in the in-progress section: an original
change of this cycle that no standing revert takes out, or a revert with an
entry of its own that is neither `cancelling` nor `optional`. In both cases
above the entry becomes optional: it may go, and a bullet for an independent
change may stay. The prompt and the skill name the three reasons a revert of
a revert can have nothing of the release to put back.

Review: #133259 (comment)

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant