410.67 Wiring.
(A) General. Conductors that have insulation suitable for the temperature encountered shall be used.
(B) Circuit Conductors. Branch-circuit conductors that have an insulation suitable for the temperature encountered shall be permitted to terminate in the luminaire (fixture).
(C) Tap Conductors. Tap conductors of a type suitable for the temperature encountered shall be permitted to run from the luminaire (fixture) terminal connection to an outlet box placed at least 300 mm (1 ft) from the luminaire (fixture). Such tap conductors shall be in suitable raceway or Type AC or MC cable of at least 450 mm (18 in.) but not more than 1.8 m (6 ft) in length.

This has been in the Code in one form or another for quite a while. The placement of the outlet box one foot away was for maintenance.
The 6 feet (used to be 4-6 feet)of suitable raceway allowed you to drop the can out of the ceiling and get it out of your face to get in to the J box one foot away to service the branch circuit conductors. Another theory was the (4) to 6' that used to be required (before pre-wired fixtures I think 1996 or 99) allowed the fixture wires to cool before they contacted the old 60 degree Cel. wiring at the branch circuit J box . The old recessed cans used to come with a snap on J box no pre wire no fixture wire.


BTW unless otherwise listed your installation should be acceptable
Charlie

[This message has been edited by cpal (edited 11-30-2004).]